You can try specifying rules for every monthbean monthBean[0].dayBeans,
monthBean[1].dayBeans as your indexed list property.
or you can extend the validate method and call the validations on each
MonthBean yourself
ActionErrors errors = super.validate(.
Andy,
Its possible but you have to extend the commons validator, override the
validate method and add the form fields (validation resources not action
form) as a resource under formFieldsKey.
Extend the ValidatorActionForm and use your version of the validator.
Default method parameters are
Try applying a simple validator like required to one of your form fields, if
it does not work verify the following.
1. name used in the validation resource file matches the name in your action
mapping
2. validate set to true in your action mapping
3. your form extends ValidatorActionForm, and if
I found the following note in tiles user guide about the shared definitions
factory
This plugin creates one single shared factory even if you have
several modules. The plugin first read factory parameters from web.xml and
then overload them with parameters from the first
from regexp javadoc at http://jakarta.apache.org/regexp/apidocs/
\w Matches a word character (alphanumeric plus
_)
You probably need letters of latin-1 supplement (U+00C0 - U+00FF), refer to
http://www.unicode.org/charts/ for more details.
specify this range of
of how the Tiles config files should
behave and look like in the case of modules are welcome.
Cedric
Padma Ginnaram wrote:
I found the following note in tiles user guide about the shared definitions
factory
This plugin creates one single shared factory even if you have
several
If you are using struts 1.1 and validator framework,
StrutsValidator.validateDate converts the string to a java.util.Date and
returns this Date. This returned value gets saved on the validationResults
in the ValidatorForm.
ValidatorForm.getResultValueMap() returns a HashMap containing these
-Original Message-
From: Padma Ginnaram
Sent: Tuesday, October 15, 2002 10:04 AM
To: '[EMAIL PROTECTED]'; 'David Winterfeldt'
Subject: RE: Struts forms best practice
I was going thru the new version of the validator framework used in struts
1.1
-Original Message-
From: Padma Ginnaram
Sent: Tuesday, October 15, 2002 10:04 AM
To: '[EMAIL PROTECTED]'; 'David Winterfeldt'
Subject: RE: Struts forms best practice
I was going thru the new version of the validator framework used in struts
1.1
I tried posting this to struts-user group, trying one more time.
-Original Message-
From: Padma Ginnaram
Sent: Tuesday, October 15, 2002 4:43 PM
To: '[EMAIL PROTECTED]'
Subject: RE: Struts forms best practice
-Original Message-
From
Check if your float validator depends on required. Removing this dependency
should solve your problem.
-Padma
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 01, 2002 8:24 PM
To: [EMAIL PROTECTED]
Subject: Struts Validation Required and
this
bug few days ago, but forget to update distribution ;-(. The same thing
should be done with role !
Thanks for this bug report, and its fixe, even if we have found it
nearly in the same time ;-) I will update distribution asap.
Cedric
Padma Ginnaram wrote:
Cedric,
I am trying
I did not use the nested tag but you should be able to validate indexed
fields by specifying indexedProperty and indexedListProperty (the version of
the struts validator framework I use never uses the indexedProperty).
field property=street
indexedProperty=address
According to this post
http://www.mail-archive.com/struts-user@jakarta.apache.org/msg12490.html
the browser uses the charset specified in the meta
http-equiv=content-type content=text/html; charset=utf-8 to send form
data.
If the user changes the charset, it is probably used but you can look
You need both, refer to
http://www.mail-archive.com/struts-user@jakarta.apache.org/msg12490.html for
details.
-Original Message-
From: santhosh [mailto:[EMAIL PROTECTED]]
Sent: Saturday, August 17, 2002 3:01 AM
To: 'Struts Users Mailing List'
Subject: encoding problem
In my jsp i have
Try this
logic:iterate id=tempStr name=SampleRowForm property=tempsud
.
bean:write name=tempStr/
.
In your example you named indexed attribute is same as the name of the bean
containing the array you are iterating through which probably confused you.
In the iterate tag you
Title: RE: Problem integrating STRUTS and WEBLOGIC 6.0
The problem is in weblogic6.0. Read these messages for details.
http://www.mail-archive.com/jakarta-commons@jakarta.apache.org/msg02086.
http://www.mail-archive.com/struts-dev@jakarta.apache.org/msg02611.html
-Padma
-Original
Title: RE: Display JSPs based on language/country/variant
You can support this by using tiles. This framework supports a concept called definition that can be localized. It also supports forwarding struts actions to these definitions.
Write an action that forwards the request to a
Title: RE: JUNIT and Struts
Is there a sample available for testing struts with j2eeunit
Thanks,
Padma
-Original Message-
From: Vincent Massol [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 02, 2001 5:27 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re:
Title: RE: JUNIT and Struts
Is there a sample available for testing struts with j2eeunit
Thanks,
Padma
-Original Message-
From: Vincent Massol [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 02, 2001 5:27 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re:
something
different?
Maya
Padma Ginnaram wrote:
I need to display an indicator for the fields that result in error
and display all the errors on the top of the page. Using the error tag I can
display all the errors at one location, but I am not able to figure out how
21 matches
Mail list logo