File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Java » JSP
Bookmark "Preview Page before Submission" Watch "Preview Page before Submission" New topic

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.

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

Joined: Jan 10, 2002
Posts: 63844

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] [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.

I agree. Here's the link:
subject: Preview Page before Submission
It's not a secret anymore!