• Post Reply Bookmark Topic Watch Topic
  • New Topic

JSP Examples

 
Saurabh Saha
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Please send me some good links for jsp examples, I tried in google but could not find any good link. I had theoretical knowledge of jsp, want to code some pages to command on jsp.

Thanks & Regards
Vivek Mishra
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You couldn't find any?
Did you try searching google with keywords like "JSP EXAMPLES"?


http://www.google.com/search?hl=en&q=JSP+EXAMPLES&btnG=Google+Search
 
Saurabh Saha
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

Thanks & Regards
Vivek Mishra
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

Good-Luck and let us know how you make out.
-Ben
 
Jayaraj Sekaran
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please try jsptut.com It's a good link for beginners.
 
Saurabh Saha
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

Thanks & Regards
Vivek Mishra
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!