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

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "regarding form submit" Watch "regarding form submit" New topic

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.
maha anna
Ranch Hand

Joined: Jan 31, 2000
Posts: 1467
I think this prior discussion may be helpful to you.
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
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 .
I agree. Here's the link: http://aspose.com/file-tools
subject: regarding form submit
Similar Threads
Is it a POST or GET request?
form submit
How to put loading... when page is loading?
streaming output
Help with JSP and Form INput