Re: Q: Redirect to a new page from a component
Re: Q: Redirect to a new page from a component
- Subject: Re: Q: Redirect to a new page from a component
- From: Michael Engelhart <email@hidden>
- Date: Mon, 9 Aug 2004 10:14:37 -0500
One thing to keep in mind with WOLongResponsePage that I'm running into
is that it fills your page cache with copies of the "Please Wait" page
if your refresh interval is set low.
Also there doesn't appear to be anyway to clear the browsers history so
if a user hits the browser back button to go back and modify their
search or whatever they're trying to do, they just go back to a Please
Wait page that never goes anywhere.
If anyone has a workaround for this I'd love to know.
In general, is there any alternative to using a WOLongResponsePage
without resorting to sticking all your instance variables into URL
parameters and calling a direct action?
Mike
On Aug 6, 2004, at 10:23 PM, Robert Walker wrote:
I suppose you could simply use a meta refresh tag, if you just want
the page to redirect after a set time limit. You could just have this
redirect to a direct action that displays the final destination page.
But, I'd day that the WOLongResponsePage is what you really need.
It's a more flexible solution I would think. This way the page will
wait as long as your operation takes then direct to a result page once
the operation has completed.
You can even put a nifty progress bar on the page, if you have a good
way of measuring progress in your long operation.
I've used the long response page successfully for several long
operations and it seems to be the best solution.
On Aug 6, 2004, at 4:05 PM, Kaj Hejer wrote:
Maybe WOLongResponsePage is what you need.
See the example project LongRequest (on osx:
/Developer/Examples/JavaWebObjects/LongRequest)
-Kaj :)
At 15:31 -0400 06-08-04, Zak Burke wrote:
com.webobjects.appserver.WORedirect looks like it has methods to
handle this, but I haven't worked with it myself.
zak.
Nick Yang wrote on 8/6/04 2:17 PM:
Dear WO gurus,
Can somebody give me some pointers on how to accomplish the
following. I have all the WO books and can't find much information
on how to redirect. This is what I want to do:
I would like to display a page telling the user please be patient
for a long operation (don't click the Back button.) And then
redirect to a new page without the user click on any button or
link. What do I do to have the page redirect to another page by
itself? I know this must be very simple to do, but I can't seem to
find out after looking through all my books and search through
websites. :(
Please let me know how this can be done. Thank you very much.
Regards,
Nick
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.
--
Robert Walker
www.robertwalker1.com
"There are 10 kinds of people in the world. Those who think binary
and those who don't."
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.