This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes JSP and the fly likes keeping the data in fields as itis even worng validations Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "keeping the data in fields as itis even worng validations" Watch "keeping the data in fields as itis even worng validations" New topic
Author

keeping the data in fields as itis even worng validations

suman vasireddy
Greenhorn

Joined: Nov 17, 2008
Posts: 12
hai all..

At present i am working on a jsp page which will contain number of fields.and i am validating the fields.when ever i submitted the data with wrong validations the fields are refreshing as well hence i am losing the data and need to re enter the data... so please help me out i just don't want to re fresh the page...


thanks in advance.
Seetharaman Venkatasamy
Ranch Hand

Joined: Jan 28, 2008
Posts: 5575

Use request scope to retain the datas
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61084
    
  66

Use the value attributes of the controls to set teh values back into the fields.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
 
subject: keeping the data in fields as itis even worng validations