wood burning stoves 2.0*
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 Murach's Java Servlets and JSP this week in the Servlets 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: 60732
    
  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]
 
jQuery in Action, 2nd edition
 
subject: keeping the data in fields as itis even worng validations
 
Similar Threads
TabIndex problem using JSF and Ajax4jsf for ajax request
TabIndex problem using JSF and Ajax4jsf for ajax request
basic doubt
JSF validation components !!
JSF custom validation message