I have an indexed property which is a tipical list of textboxes, I have a
requirement to validate that the user need to at least enter values into one
text box. How can you configure this using Struts "required" validator? Thanks
in advance.
will call setValue on the bean, and that's all
Hope this helps
-Message d'origine-
De : Carl Smith [mailto:[EMAIL PROTECTED]
Envoyé : mercredi 12 avril 2006 00:21
À : Struts Users Mailing List
Objet : Re: indexed property validation
error:java.lang.reflect.InvocationTarge
Interestingly if I change the config for testingForm to be of scope session,
then it works. However I can't use session scope so still need the answer for
my original question, can some one help? Thanks.
Carl Smith <[EMAIL PROTECTED]> wrote:
I have a jsp containing three text fields which
I have a jsp containing three text fields which are indexed property, I needs
to validate all the text box contains a value other than null or empth string.
When I click on save I got the error (see the bottom). Your helps are highly
appreciated!
jsp:
(1) indexed property - text box
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
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
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
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
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
9 matches
Mail list logo