You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Balwinder <ba...@saigun.com> on 2006/11/09 07:55:43 UTC
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: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Last Page Regenration
Posted by pavan kumar <m....@gmail.com>.
Hi,
Can i know how to unregister from this site
On 11/9/06, Balwinder <ba...@saigun.com> wrote:
>
> 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: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
--
Pavan
Re: Last Page Regenration
Posted by Balwinder <ba...@saigun.com>.
Nitin M. Mandolkar wrote:
>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:cpandey@bluesingapore.com]
>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:balwinderk@saigun.com]
>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: user-unsubscribe@struts.apache.org
>For additional commands, e-mail: user-help@struts.apache.org
>
>
>
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>For additional commands, e-mail: user-help@struts.apache.org
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>For additional commands, e-mail: user-help@struts.apache.org
>
>
>
Hi Nitin and Chetan Pandey,
Thanks for your help. For some reaon iam currently giving up this
feature in our web app.
any way thanks a lot.
Thanks and Regards,
Balwinder Kumar
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
RE: Last Page Regenration
Posted by "Nitin M. Mandolkar" <ni...@gmail.com>.
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:cpandey@bluesingapore.com]
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:balwinderk@saigun.com]
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: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
RE: Last Page Regenration
Posted by Chetan Pandey <cp...@bluesingapore.com>.
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:balwinderk@saigun.com]
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: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org