This solution is also good. If later on you find the filter code block
is taking more time and creating some performance issues in that case
you can easily remove it. By making few changes in web.xml. 

Even the URL pattern can help you more to apply it for specific pages
rather than applying it to all pages. 

Nitin 

-----Original Message-----
From: Chetan Pandey [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, November 08, 2006 11:57 PM
To: 'Struts Users Mailing List'
Subject: RE: Last Page Regenration

Use Filters.

On every page a User visits make it visit a Filter.

Record the page when it is visited and store it in the DB.

That what when he logs in fetch this value and send User to this page.

Make sure you put your Filter Info in web.xml in the following manner:

<filter>
        <filter-name>myFilter</filter-name>
        <filter-class>complete.path.to.Filter</filter-class>
        </filter>
        
        <filter-mapping>
        <filter-name> myFilter </filter-name>
        <url-pattern>*.do</url-pattern>
        </filter-mapping>

Just Remember Writing Filters is trivial.

Chetan

-----Original Message-----
From: Balwinder [mailto:[EMAIL PROTECTED] 
Sent: Thursday, November 09, 2006 2:56 PM
To: Struts Users Mailing List
Subject: Last Page Regenration

Hi All !!

I have a situation in my application, i want to implement a 
functionality that does, if a user accidentally close his browser 
window, on his next request(in new window) to the application he should 
be displayed with the last page he visited this should happen after 
login(authentication). I want this to implement without cookies.

Any help would be highly appreciated.

Thanks and Regards,
Balwinder Kumar

---------------------------------------------------------------------
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]

Reply via email to