Hi,
I am new to the Struts2 and facing the similar issue ,
u said u have managed to get the data from the dynmically generated fields
to the action , can u share how it can be done...a sample will be of
great help...
my requirment is my form is dynamically generat the fileds for name dat
If you want to validate generated fields, i mean a Collection you can do
something like this.
* Action class
private List collection;
public void setCollection(String collection) {
this.collection = collection;
}
public String getCollection() {
r
9:59 AM
Para: user@struts.apache.org
Asunto: Re: Struts2 Collection validation
I hope there exists a simpler solution, but here is my workaround: use an
expression validator.
This idea was taken from
http://www.opensymphony.com/webwork/wikidocs/collection%20validator.html
webwork wiki: collect
I hope there exists a simpler solution, but here is my workaround: use an
expression validator.
This idea was taken from
http://www.opensymphony.com/webwork/wikidocs/collection%20validator.html
webwork wiki: collection validator (it seems that the collection validator
is not yet available in str
is transmission.
> Date: Thu, 16 Oct 2008 10:19:05 -0300
> From: [EMAIL PROTECTED]
> To: user@struts.apache.org
> Subject: Re: Struts2 Collection validation
>
> You may want to look at type conversion [1] and VisitorValidator [2]
> to validate those form fields.
>
> Also, pl
You may want to look at type conversion [1] and VisitorValidator [2]
to validate those form fields.
Also, please note that collection indexing is done with [square]
brackets, like in: "persons[2].name"
[1]
http://struts.apache.org/2.1.2/docs/type-conversion.html#TypeConversion-Anadvancedexamplef
May I didn't explain myself correctly. What I would like to know is how to
validate multiple fields. I'll write an example. I have a form in a JSP which
generate the field dynamically. E.g:
ID
First Name
Last Name
7 matches
Mail list logo