<%
ReturnVO e = (ReturnVO)request.getSession().getAttribute("retVO");
if(e!=null)
{
Enumeration c = session.getAttributeNames();
while(c.hasMoreElements()){
%>
<%
String name = (String)c.nextElement();
out.print(name);
%>
<%
}
List retVOList = (List)e.getretVO();
if(e.getretVO()!=null)
{
%>
<%
out.print("e.getretVO(): "+retVOList.size());
}else{
out.print("successful: ");
%>
<%}}%>
JSP迭代SESSION对象
最新推荐文章于 2019-02-09 21:10:33 发布
本文介绍了一段关于JSP中使用会话管理和通过session返回数据的具体实现方式。示例代码展示了如何在JSP页面中获取session属性,并进一步处理这些数据。此技术常用于Web应用程序的状态维护和数据传递。
571

被折叠的 条评论
为什么被折叠?



