• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

no text loss

 
Ranch Hand
Posts: 100
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Set them in the value attribute of the input element.
For radio buttons and checkboxes, use the 'checked' attribute.
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Always! Wait. Never. Shut up. Look at this tiny ad.
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic