• Post Reply Bookmark Topic Watch Topic
  • New Topic

pass data from JSP-JSP-SERVLET-DATABASE

 
Pandurang Shenoy
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello all,
I am collecting user data entered in a form , then i display another JSP page for confirmation from the user and only then i want to insert the form data into the data base. So the data should go from the form to Confirm page and then to the servlet for storing into the database. my form contains really large amount of textual data ...
So,is there any solution to this..?
regards
Pandurang
 
Andres Gonzalez
Ranch Hand
Posts: 1561
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
my form contains really large amount of textual data ...

how large....? can you use a JavaBean for that? put all you form info in the bean...
 
Chris Stewart
Ranch Hand
Posts: 184
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use a form on the first page, which when submitted, fills a JavaBean with your data. Then redirect to the next jsp page and give the user a confirm or deny option. If they choose the confirm, redirect to your servlet which handles the database code to update/insert a record to your database. That's probably the easiest way to do this (and do it well).
 
Thomas Harrington
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
if you are using mysql as the database, a good example is included in "begenning jsp web development" by wrox press. get the jconnector, it will have everything you need to connect to the database. the paramenters can be passed from webpage to webpage, and when the user clicks to confirm the data, then you can use the bean to send the data to the database.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!