File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSP and the fly likes no text loss Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "no text loss" Watch "no text loss" New topic

no text loss

shyamkumar bopannachengalaiah
Ranch Hand

Joined: Dec 30, 2008
Posts: 100
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 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

Joined: Oct 08, 2006
Posts: 2458
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

Joined: Mar 22, 2000
Posts: 12931
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.

I agree. Here's the link:
subject: no text loss