hello,
i have created a
jsp page displaying a form that have a field Booking ID, that should be an unique field(PK) in the BookingDetails table.
Now i want to generate a number that get displayed in the Booking ID text automatically and increase by 1 on every time the page is called, i.e., first time the Booking Id will be say 001, then 2nd time 002 and so on.....
I have written a class for that (which is not working)..
it is displaying "B00-9999" each time.
how could i get the number starting from 0001 and increment it on every page call. I don't have any idea.
Some one help please..