i am working on a application where i am using a
jsp page(first.jsp) which contains some text fields the values that are entered in my text fields ,radio buttons and check boxes.now i had entered some values in those boxes.after clicking next page i found that values entered one of the text box in that first.jsp mismatches my database records .say for examples if the i am preparing for an online
test where i have to enter my name, exam code, and i have easy test,advanced test where in easy east i have multiple choices or text answering etc . and in these fields where i have to enter the number of questions i needed for the test . so in this example if entered some value in any one of the text, the vlues are checked from database say if one text box contains limitation of the questions but i have entered more questions than in database so it gives me warning message at front end . after i click ok to that warning message i am lossing all the values that i had entered in my all text fields before warning message is lost .
how can i prevent from losing my information?