This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JSP and the fly likes Preview Page before Submission 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 » JSP
Bookmark "Preview Page before Submission" Watch "Preview Page before Submission" New topic
Author

Preview Page before Submission

naro pad
Ranch Hand

Joined: May 07, 2008
Posts: 58

Ok I want to ask something

I have a jsp web page where I have a form to be filled.When is submitted all the data entered are saved immediately. Now I have think about if there is any way when I submit the form to display page of the enter data and the user can preview it or edit before save them. Can this be done only on the client side without the need of the server side to 'catch' the enter data and send it back again?

I hope you understand me...
Jilesh Lakhani
Ranch Hand

Joined: Jul 26, 2006
Posts: 49

Please clear what do you mean by client side
1) You don't wish to communicate with your database.
2) You don't wish a call to be made to your webServer.
3) Your customer should feel that the page is not refreshed but then you wish to validated stuff with your Database.


-Jilesh
Universe and Knowledge has no bounderies
naro pad
Ranch Hand

Joined: May 07, 2008
Posts: 58

I want when I submit the form to open let say a new window or to create a new web page that will have all the data that the user has enter without the need of sending them to server and wait for the server to send them back for preview. The operation to be done only to the client side. And after preview them then submit the form normally to the server.

Is it possible to be done without sending the form parameters to the server and then the server to process them and send them back again to the client and display them.

Hope you understand me...
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60785
    
  65

Sure it could be done with a lot of JavaScript, but for what purpose? What possible benefit to doing this would there be?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
naro pad
Ranch Hand

Joined: May 07, 2008
Posts: 58

Ok you have right... I will do it with the normal way.

Thanks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Preview Page before Submission
 
Similar Threads
Verfiy/ Preview form data before submitting.
validating html form data in JSP
Unable to get form data in pop up window in struts
html file with multiple form elements
display images in preview form.