Re: indexed property validation: how to keep the value the user entered

2006-03-30 Thread Carl Smith
Your comments make great sense... I moved the initializing part from the displayAction to the reset method in the form bean as you suggested and it works as expected. Thanks. Laurie Harper <[EMAIL PROTECTED]> wrote: OK, so when validation fails Struts forwards to displayTesting w

Re: indexed property validation: how to keep the value the user entered

2006-03-29 Thread Laurie Harper
OK, so when validation fails Struts forwards to displayTesting which, in turn, forwards to /displayAction. In your DisplayAction class, you're overwriting the values of your form bean property, destroying the information Struts set there. You'll need to check if the property has already been i

Re: indexed property validation: how to keep the value the user entered

2006-03-27 Thread Carl Smith
First of all Thank you Laurie, you are the only one anwering my questions :): Here are my struts-config.xml entries for the actions and formbean ( I neglected the path and anything). Laurie Harper <[EMAIL PROTECTED]> wrote: We'll need to see

Re: indexed property validation: how to keep the value the user entered

2006-03-25 Thread Laurie Harper
We'll need to see the relevant parts of your struts-config.xml too (specifically, the form bean and action mapping definitions). L. Carl Smith wrote: I have a jsp containing an indexed test box field, and I need to validate the user enter a value into all the text boxes when clicking on the s

indexed property validation: how to keep the value the user entered

2006-03-24 Thread Carl Smith
I have a jsp containing an indexed test box field, and I need to validate the user enter a value into all the text boxes when clicking on the save button. Validation is done OK, but there is an issue. Let me give you an example illustrating the issue: if there are three text boxes, the user ente