Hi Ben, I found these links on the google, but I was searching a link through that I can learn, how to make a multi page form, that submit all the form values at the last page, please help me in searching a best links that can solve my problem.
I don't know of any example of this but the easiest way, I can think of would be to create a session scoped bean that has properties for each field in the form and a write() method.
You can break the form up into as many pages as you like. Each one writes a different set of properties to the bean. When the user submits the last form, check to see that all the required fields are filled out and call the write method to do whatever it is that you plan on doing with the data.
The only gotcha that I can think of with this approach would be if the user fills out some of the pages and then waits long enough for the session to expire. They would then need to start all over again. SessionListener's are the perfect answer for this problem. If there is a partially filled out bean when the user's session expires, serialize the bean to disk or store or write the data to a database.
If you already understand the fundamentals of JSP/Servlet programming, this should be enough to get you going. If not, then I wouldn't look for an exact example. I would go through the tutorials that you did find until all of this stuff is clearer.
Please try jsptut.com It's a good link for beginners.
SCJP 1.4<br />SCWCD 1.4<br />WSAD 5.0
posted 13 years ago
Hi Ben & Jayaraj Thanks for helping me, I think i need to give some more time to understand session. thanks Jayaraj, jsptut.com will help me to understand jsp working. Ben I want to learn the working of session, I'll try in google but if you know any site that give me good examples to learn session, please send me that will help me lot.