Re: how to apply time constraints to JSP page
- From: Owen Jacobson <angrybaldguy@xxxxxxxxx>
- Date: Tue, 7 Oct 2008 22:30:17 -0700 (PDT)
On Oct 8, 12:37 am, snehapshi...@xxxxxxxxx wrote:
On Oct 6, 9:26 pm, Wojtek <nowh...@xxxxx> wrote:
snehapshi...@xxxxxxxxx wrote :
I have created a timer thread on the server machine. Whenever the
particular time is reached all the users should be redirected to
another page. How can this timer thread be interfaced with oher
servlet classes. Should I pass the HttpSevletResponse object to the
thread class constructor and then in the run method redirect the page
using response object (I tried with it but it is not working) or there
is some other way of doing it. Plz help!
Use the HTTP Meta tag refresh and point the refresh to the other page.
Google "http refresh"
--
Wojtek :-)
Thanks for that! It is quite useful information for me. But still
there is some problem. As soon as the the page redirects to the
another page, the user should not be able to go back to previous page.
How can I prevent that.
You can't. You *can* stop them from loading a new version of that
page by having the server refuse to serve the page any more, but you
can't retroactively remove the already-downloaded copy from their
browser.
How you go about blocking access is up to you; I'd recomment a filter
(servlet filter, if you're just using the servlet API, or whatever
filtering or interception capabilities your framework offers
otherwise), so that the logic can be applied to any page or servlet
without having to modify the page itself.
-o
.
- Follow-Ups:
- Re: how to apply time constraints to JSP page
- From: Wojtek
- Re: how to apply time constraints to JSP page
- References:
- how to apply time constraints to JSP page
- From: snehapshinde
- Re: how to apply time constraints to JSP page
- From: Wojtek
- Re: how to apply time constraints to JSP page
- From: snehapshinde
- how to apply time constraints to JSP page
- Prev by Date: Re: Problem while sorting an ArrayList
- Next by Date: Re: Using a method to return a value, that uses a modal dialog
- Previous by thread: Re: how to apply time constraints to JSP page
- Next by thread: Re: how to apply time constraints to JSP page
- Index(es):
Relevant Pages
|