• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

pass data from JSP-JSP-SERVLET-DATABASE

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 1561
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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...
 
Ranch Hand
Posts: 184
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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).
 
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Politics n. Poly "many" + ticks "blood sucking insects". Tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic