Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

no text loss

 
shyamkumar bopannachengalaiah
Ranch Hand
Posts: 100
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Bauke Scholtz
Ranch Hand
Posts: 2458
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Set them in the value attribute of the input element.
For radio buttons and checkboxes, use the 'checked' attribute.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13047
6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A suggestion for writing questions to the forums:

Use Paragraphs.

Break up your post into logical groups of sentences - this is key for any kind of technical writing so you might as well practice it here.

Bill
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic