当前页面: JAVA 编程资料牛鼻论坛 → J2ee & 企业开发技术区→关于jsp问题? |
String str = "";
for(int i = 1; i < n; i ++) //n就是你Session中s1---sN的数量
{
if(session.getAttribute("s" + i.toString())!=null)
{
str=(String)session.getAttribute("s1");
out.print(str + "<br>");
}
}