This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes JSP and the fly likes retaing values Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "retaing values" Watch "retaing values" New topic
Author

retaing values

ramesh poorella
Ranch Hand

Joined: Jul 19, 2011
Posts: 60
hai

i am using text field value like this..
<input type="text" size="40" name="irefnum" value="<%= request.getParameter("irefnum")%>" />

after submitting form it will retaing that value its not a problem. but before submiting the text field value showing null...
but i dont want null... i want empty field..
Tarun Bolla
Ranch Hand

Joined: Jun 20, 2011
Posts: 89
Try this....
ramesh poorella
Ranch Hand

Joined: Jul 19, 2011
Posts: 60
Hey thanks yaar...
its working nicely..........
Tarun Bolla
Ranch Hand

Joined: Jun 20, 2011
Posts: 89
You are welcome...ramesh
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: retaing values
 
Similar Threads
how to use setTimeout function
TextField Readonly issue
How do you get the text field value from another java file
capturing variable in "value" field of the form
after refreshing values should remain same