I need to automatically generate a ticket_id number, so I did just that in a jsp file.
Then I want to display that randomly generate ticket number in the Ticket ID text field on my html page.
Then I am going to get that ticket number from the text field and insert it into my database through the jsp again.
Am I complicating things? Why doesn't the below code work?
Should I just execute the random ticket number when the user clicks the submit button on the html form and show a box with the ticket number?
Please help and thank you if you do. Any advice is very helpful.