• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

set the values

 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi
my problem is first i taken one html form.in that i taken 5 feilds.in these fieds store in database through servlet.means html forward to servlet.after that servlet to forward one jsp page.
my aim is
in that html is application form when ever i am giving all details it will store and to display reciptform(jsppage).in that jsp page automatically increment the recipt no.
how it is possile
 
Greenhorn
Posts: 26
Oracle Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am guessing the receipt no is the primary key in your database table. which might be an auto increment ?
In your servlet you are storing the data in the DB right. once you are done with that task simple query the DB again for the receipt no.

now that you have the receipt no and the data you can show then in the next JSP.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic