1 不知道你这样做有什么意图。把bean名告诉用户?这样做不合理,不知道你要做什么,不能提供解决方法2 基本正确3 跟服务器无关
通过以下方式指定
HttpSession cusession=request.getSession(true);
cusession.setMaxInactiveInterval(3600*24) //24小时
通过以下方式指定
HttpSession cusession=request.getSession(true);
cusession.setMaxInactiveInterval(3600*24) //24小时
用request好一点
<mytag:UserList query="<%=QueryBean%>">
<mytag:ItemsPage>
<tr>
<td><mytag:UserAttribute attributeName="UserNumber"/></td>
<td><mytag:UserAttribute attributeName="UserName"/></td>
<td><mytag:UserAttribute attributeName="LoginName"/></td>
<td><mytag:UserAttribute attributeName="UserDept"/></td>
<td><mytag:UserAttribute attributeName="UserTel"/></td>
</tr>
</mytag:ItemsPage>
<tr>
<td colspan="5"><mytag:PageTag pageUrl="<%=pageStr%>"/></td>
</tr>
</mytag:UserList>
上面的几个tag实现了按条件查询、结果显示、分页导航链接输出等功能,你看tag方便吗?