This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Servlets and the fly likes set the values Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Servlets
Reply Bookmark "set the values" Watch "set the values" New topic
Author

set the values

madhuchilipi reddy
Greenhorn

Joined: Feb 09, 2007
Posts: 17
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
suravarapu sridhar
Greenhorn

Joined: Oct 29, 2002
Posts: 26
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: set the values
 
Similar Threads
problem with the request dispatcher
RequestDispatcher Problem
  html code in PostgreSQL table
Reoccurring HTML Block
best approach