【发布时间】:2015-08-25 14:27:25
【问题描述】:
我的应用程序正在使用 Struts 1,并且我在 web.xml 中将会话超时配置为 60。我正在使用框架,我的视图左侧的菜单树(链接)始终保持不变,右侧显示点击时的相应页面。超时时,大多数链接都显示登录页面。但很少有人不是,他们仍然在同一个流程中。不超时的链接请在下方查找配置和jsp sn-ps。
web.xml
<session-config>
<session-timeout>60</session-timeout>
</session-config>
<login-config>
<auth-method>FORM</auth-method>
<realm-name>default</realm-name>
<form-login-config>
<form-login-page>/login.jsp</form-login-page>
<form-error-page>/do/login</form-error-page>
</form-login-config>
</login-config>
什么不起作用
struts-config.xml
<action path="/Report" scope="request" name="form.Report" type="com.mypack.ReportAction" input="/Data.jsp">
<forward name="show" path="/Data.jsp" />
</action>
menu.jsp
<tr>
<td height="24"><b><font size="2">
<html:link forward="/Report" target="main">Reports</html:link></font></b>
</td>
</tr>
【问题讨论】:
标签: java jsp session-timeout struts-1