Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Pressing a hyper link doesn't update a form bean

Status
Not open for further replies.

Tanisha

Programmer
Apr 8, 2006
1
0
0
US
I have a jsp page with some<b> required fields</b> which are validated using <b>Validator framework</b> and a <b>hyper link</b> "Add " (which fires an action) which takes us to a new page in the parent window(no pop up) and a <b>"Submit" button</b>(which takes me to some other page).
<b>WHAT I NEED IS:</b>
As soon as I press "add" link it should take me to the new page and once we are through with filling fields in second jsp and press a return button , I come back to my first page with the some new information(which was entered in second page) being displayed in first page in a summarized form and now if i press "submit" button , then validations should take place.
<b>WHAT ACTUALLY IS HAPPENING:</b>
As soon as i press the hyper link,the validator framework is activated and since the form bean is not updated (because submit button not clicked as yet) it says that required fields are not entered(even though i enter data in it)and i can't get past the first page.

Can you suggest a way that starts validating only when submit button is clicked?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top