wood burning stoves 2.0*
The moose likes Servlets and the fly likes regarding form submit Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "regarding form submit" Watch "regarding form submit" New topic
Author

regarding form submit

daman sidhu
Ranch Hand

Joined: Aug 19, 2000
Posts: 184
Hi Guys,
I have a query, i want a functionality that when i submit the form and the requset goes to the servlet, i want a message like your request is being processed to be displayed to the user while the request is being processed in the background by the servlet and when the request has been processed then show the user the respective jsp.HOw is that possible, please advice me.
Regards,
Daman
maha anna
Ranch Hand

Joined: Jan 31, 2000
Posts: 1467
I think this prior discussion may be helpful to you.
http://www.javaranch.com/ubb/Forum7/HTML/002672.html
regds
maha anna
Maky Chopra
Ranch Hand

Joined: Apr 11, 2001
Posts: 149
you could performs your work in a low-priority background thread, returning only the results you have so far or maybe just a "processing..." statement.
If these results are not complete, send a Refresh header instructing the browser to ask for new results a little while later.
Phil Hanna
Ranch Hand

Joined: Apr 05, 2001
Posts: 118
Here is an example of what you describe, taken from Chapter 14 of my book. You can download the entire source code from my website if that is more convenient: http://www.philhanna.com


------------------
Phil Hanna
Sun Certified Programmer for the Java 2 Platform
Author of :
JSP: The Complete Reference
Instant Java Servlets


Phil Hanna<BR>Sun Certified Programmer for the Java 2 Platform<BR>Author of :<BR><A HREF="http://www.amazon.com/exec/obidos/ASIN/0072127686/electricporkchop/107-3548162-1137317" TARGET=_blank rel="nofollow">JSP: The Complete Reference</A><BR><A HREF="http://www.amazon.com/exec/obidos/ASIN/0072124253/electricporkchop/107-3548162-1137317" TARGET=_blank rel="nofollow">Instant Java Servlets</A>
daman sidhu
Ranch Hand

Joined: Aug 19, 2000
Posts: 184
Hi,
Thanks to all of you guys specially phil and anna , i now have the soln to the problem, This is indeed the perfect soln for my reqmt. thanks again guys .
Daman
 
 
subject: regarding form submit