Hi, Alternatively the more standard way is to have a custom tag that you can include in page within <head> tag or before any other tag of the page is executed. And check for the session validity in the tag handler class you can find this implementation in struts-example application.
V.K.Ram www.m7.com NitroX for Struts -----Original Message----- From: Rajat Pandit, Gurgaon [mailto:[EMAIL PROTECTED] Sent: Monday, June 14, 2004 9:56 PM To: 'Struts Users Mailing List' Subject: RE: session time out Hello Lokanath, I am not sure if this is the best way to go about it, but yes maybe you could give it a shot, in the action where you are checking for the session object (could be a login bean or something) make sure that you throw a custom exception and using the global exception handler in the struts-config.xml you can use GlobalForward to forward it to a particular page, say a login page or something. Do tell me if this worked out for you, because I might have to implement it at a later stage, I am currently documenting the specs for my project. Regards rajat -----Original Message----- From: Lokanath [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 15, 2004 9:56 AM To: Struts Users Mailing List; [EMAIL PROTECTED] Subject: session time out hi all , can anyone tell me how to reach a page automatically when session expires in a stusts application lokanath -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, June 11, 2004 3:04 PM To: Struts Users Mailing List Subject: RE: session problem The servlet container will try to encode this sessionId in a cookie if it can (saving the need to rewrite links) so you may wish to check the browser settings to see if cookies are enabled. (Its best to make sure you use the html:rewrite tag (or equivelent) for your links though so that your app will support users when they have cookies disabled). -----Original Message----- >From: nikhil walvekar [mailto:[EMAIL PROTECTED] Sent: Friday, 11 June 2004 17:34 To: Struts Users Mailing List Subject: Re: session problem Hi, same thing i have experienced with IE 6.0, it will work with mozilla Problem is that with each request session id is not passed. You need to explicitly pass it as url parameter. http://dbomis.com/anyLink;jsessionid=A0698B81A1F1AA2B1ECDA19B0ACFD6E2 Nikhil Shailender Jain <[EMAIL PROTECTED]> wrote: I am using session object in my application to validate whether the user is valid or not. I am doing this in the processPreprocess() method of RequestProcessor. But in I.E. 6.0 update version: SP1, the session object becomes null. So once user click at any link in the application he gets logged out. The system admin has also done the following configuration 1. I installed the application on a machine having the IP (10.1.252.41). The system admin made a virtual IP (10.1.252.42) and gave me a DSN "dbomis.com" which can be used to access the application. This DSN points to virtual IP. 2. Now when i access the application using http://10.1.252.41/ or "http://10.1.252.42/" in IE 6.0 SP1 then it works ok. 3. When i use the "http://dbomis.com/" then the login page come. User is able to login (processPreprocess() method does not check for session while user is logging in). But when the user clicks on any link the session becomes null so the user is logged out of the application. This problem happens only on I.E. update version SP1. On I.E 5.5 this url works ok. Anyone has got any idea why this must be happening Yahoo! India Matrimony: Find your partner online. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]