Hi, I have a action mapping as below, <action path="/pages/sessioninvalid" type="com.myapp.action.SessionInvalidAction" scope="request"> <forward name="success" path="/pages/index.jsp" redirect="false" /> </action> Then i have jsp called include.jsp in "pages" folder with following line of code String user = (String)session.getAttribute("user"); if (user == null) { System.out.println("there is no user so invalid session"); request.getRequestDispatcher("sessioninvalid.do").forward(request, response); }
Then I include this jsp in all my pages to check if the session is valid or not, I have some jsp in folder "pages" and some jsp in subfolder in side pages (say "planning") now the code in include.jsp works very well in all the jsp in "pages" folder, but it does not work in jsp in subfolders, i get the following error 2002-10-02 18:06:44,078 INFO [HttpProcessor[8080][3]] action.RequestProcessor (RequestProcessor.java:217) - Processing a 'GET' for path '/pages/planning/sessioninvalid' 2002-10-02 18:06:44,078 ERROR [HttpProcessor[8080][3]] action.RequestProcessor (RequestProcessor.java:645) - Invalid path /pages/planning/sessioninvalid was requested so what is wrong if i have to make it work how can i do it.. thanx in advance ===== A$HI$H __________________________________________________ Do you Yahoo!? New DSL Internet Access from SBC & Yahoo! http://sbc.yahoo.com -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>