This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread 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 Android Security Essentials Live Lessons this week in the Android 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: 60785
    
  65

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]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: keeping the data in fields as itis even worng validations
 
Similar Threads
basic doubt
JSF validation components !!
JSF custom validation message
TabIndex problem using JSF and Ajax4jsf for ajax request
TabIndex problem using JSF and Ajax4jsf for ajax request