会话超时问题
这是超时页面重新登录的jsp 不知道路径咋么写 大家帮帮忙吧!
<%@ page contentType="text/html;charset=UTF-8"%>
<%@taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@ page import="com.ctp.core.config.ApplicationContext"%>
<%
   String path = ApplicationContext.singleton().getValueAsString("ctp.default.web.httpAddr");    
%>
<script type="text/javascript">
function logout(){
		window.location="http://localhost:8001/";
	}
</script>
<html>
  <head>
   <title>会话超时</title>
    <script language="JavaScript" src="../public/js/commutils.js">
    </script>
    <script Language="JavaScript" src="../public/calendar/calendar.js">
    </script>
    <link href="../public/css/dishui1.css" rel="stylesheet" type="text/css"/>
  <head>
  <body leftmargin="0" topmargin="6" marginwidth="0" marginheight="0">
   <form name="timeoutForm" target="_top" action="<%=path%>">
   <table width="100%" border="0" cellpadding="0" cellspacing="0">
    <tr>
     <td  class="tdbg0">
      <div align="center"><p> </p>
       <h4>
        您的会话已经超时,请点击《重新登录》按钮重新登录。
       </h4>        
       <input name="back" type="submit" class="button" value="重新登录"onclick="logout"/>
       <!--         
       <a href="logout.jsp">重新登录</a>
       <input name="back" type="submit" class="button" value=" 重 新 登 录 "/>
        -->
      </div>
     </td>
    </tr>
   </table>
   </form>
  </body>
</html>
------解决方案--------------------
404说明找不到页面
alert("<%=path%>" + "/logout.jsp");看看是什么
保证logout.jsp存在。
window.location="<%=path%>" + "/logout.jsp";
==〉
window.location="<%=request.getContextPath()%>" + "/logout.jsp";