isRequestedSessionIdValid is returning false for the first time
Hi, I am in the process of converting a webapp written using servlets in to struts actions. When I open the browswer and when I enter into an action class for the first time, then my 'request.isRequestedSessionIdValid' is returning false Before calling the request.isRequestedSessionIdValid(), I perform request.getSession(); Subsequent times, it is returning true What is going on here with request.isRequestedSessionIdValid()? Thanks -Aswath Following is some simple code I am using for testing purpose public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { String redirectPage = GLOBAL_VIEWMANAGER_PAGE; // After successful User Login HttpSession session = request.getSession(); session.setAttribute(test, test); System.out.println (isNew = + session.isNew()); System.out.println (isRequestedSessionIdValid() = + request.isRequestedSessionIdValid()); return mapping.findForward(redirectPage); } } __ Do you Yahoo!? Yahoo! Mail - 250MB free storage. Do more. Manage less. http://info.mail.yahoo.com/mail_250 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
isSessionValid request tag is false
Hi, I am using the following request tags from jakarta taglibs in my JSP req:isSessionValid value=false jsp:forward page=/SessionExpired.jsp / /req:isSessionValid I am checking in my action class and the session is available and I forward to the JSP containing the above lines. Why does it always get forwarded SessionExpired.jsp -Aswath __ Do you Yahoo!? Yahoo! Mail - 250MB free storage. Do more. Manage less. http://info.mail.yahoo.com/mail_250 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: isSessionValid request tag is false
Hi, And this happens only for the first time I open the browser and perform the action. Thanks -Aswath --- ans [EMAIL PROTECTED] wrote: Hi, I am using the following request tags from jakarta taglibs in my JSP req:isSessionValid value=false jsp:forward page=/SessionExpired.jsp / /req:isSessionValid I am checking in my action class and the session is available and I forward to the JSP containing the above lines. Why does it always get forwarded SessionExpired.jsp -Aswath __ Do you Yahoo!? Yahoo! Mail - 250MB free storage. Do more. Manage less. http://info.mail.yahoo.com/mail_250 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Send holiday email and support a worthy cause. Do good. http://celebrity.mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]