This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara 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 OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA 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: 61103
    
  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]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: keeping the data in fields as itis even worng validations