如何指定tomcat中session过期时间 1. 在server.xml中定义context时采用如下定义: xml 代码 <Context path="/livsorder" docBase="/home/httpd/html/livsorder"   defaultSessionTimeOut="3600" isWARExpanded="true"   isWARValidated="false" isInvokerEnabled="true"   isWorkDirPersistent="false"/> 2. 在web.x ...
2008-07-17

Tomcat的Session设置

关键字: tomcat session
1、为单个WEB设置SESSION 在WEB.XML中添加 xml 代码 <session-config> <session-timeout>15</session-timeout>//单位为分钟 </session-config> 2、为单个Servlet指定会话超时时间 xml 代码 <servlet> <servlet-name>Servlet名称</servlet-name> <servlet-class>Servlet类路径</servlet-class> ...
  • 09:37
  • 浏览 (29)
  • 评论 (0)
2008-06-12

struts 利用javascripe提交到action ,但是提示不可用

关键字: 利用javascript不能提交
在我的form表单中有个按钮,点击的时候就提交到对于action中的onenet方法中去,但是提示The requested resource (/webinfo) is not available. javascript是这样写的: function onenet() { document.webinfoForm.action="/webinfo?action=onenet"; document.webinfoForm.submit(); } 在webinfoForm表单中的submit是<html:form action="/webinfo?action ...
yq1267
搜索本博客
最近加入圈子
最新评论