Thanks, this is very much appreciated. Is this something that is going to make
it into a Struts Base release?
-Original Message-
From: Niall Pemberton [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 22, 2006 11:15 AM
To: Struts Users Mailing List
Subject: Re: newbie question on indexed
You can do this:
http://www.niallp.pwp.blueyonder.co.uk/strutsvalidatorextends.html
Niall
On 6/15/06, Givler, Eric <[EMAIL PROTECTED]> wrote:
I was following this article (MS Powerpoint presentation by James Turner) here:
http://www.strutskickstart.com/IndexedPropertiesandValidation.ppt
When,
lto:[EMAIL PROTECTED]
Sent: Friday, June 16, 2006 8:32 AM
To: Struts Users Mailing List
Subject: RE: newbie question on indexed properties and validation
I can provide a zip of the workspace I was doing for this if that would help.
I just can't seem to get the multiple errors. Can th
[mailto:[EMAIL PROTECTED]
Sent: Thursday, June 15, 2006 9:44 AM
To: Struts Users Mailing List
Subject: newbie question on indexed properties and validation
I was following this article (MS Powerpoint presentation by James Turner) here:
http://www.strutskickstart.com/IndexedPropertiesandValidati
I was following this article (MS Powerpoint presentation by James Turner) here:
http://www.strutskickstart.com/IndexedPropertiesandValidation.ppt
When, I tried to cobble this all into a working example, if I left out multiple
values (in a four record grid), I'd get one struts validation error bac
|
| cc:
|
| Subject: Re: newbie question on indexed properties
|
>--|
You will need to add indexed getters and s
Rick Reumann wrote:
Bill Siggelkow wrote:
Okay -- now I am confused -- if I use your approach I get ...
javax.servlet.ServletException: Cannot find bean esami in any scope
I have to specify the name of the form as the value for the 'name'
atrribute of logic:iterate
Are you sure you have the itera
Bill Siggelkow wrote:
Okay -- now I am confused -- if I use your approach I get ...
javax.servlet.ServletException: Cannot find bean esami in any scope
Is because you have to declare it on the struts-config.xml file
but read below I wrong...
I have to specify the name of the form as the value f
Bill Siggelkow wrote:
Okay -- now I am confused -- if I use your approach I get ...
javax.servlet.ServletException: Cannot find bean esami in any scope
I have to specify the name of the form as the value for the 'name'
atrribute of logic:iterate
Are you sure you have the iterate taking place insid
Okay -- now I am confused -- if I use your approach I get ...
javax.servlet.ServletException: Cannot find bean esami in any scope
I have to specify the name of the form as the value for the 'name'
atrribute of logic:iterate
Davide Gurgone wrote:
Bill Siggelkow wrote:
Davide,
Maybe I am doing some
Bill Siggelkow wrote:
Davide,
Maybe I am doing something wrong but I have had problems getting indexed
=true to work for arrays on the form -- it works correctly for arrays of
a nested property of form.
For example, if I were to use what you suggested I get something like:
Davide,
Maybe I am doing something wrong but I have had problems getting indexed
=true to work for arrays on the form -- it works correctly for arrays of
a nested property of form.
For example, if I were to use what you suggested I get something like:
When what I want is
Bill Siggelkow wrote:
You will need to add indexed getters and setters --
public String getAnswer(int index);
public String setAnswer(int index, String value);
’/>
Better :)
[CUT]
[CUT]
it render a property named property[0], property[1], etc
You will need to add indexed getters and setters --
public String getAnswer(int index);
public String setAnswer(int index, String value);
’/>
[EMAIL PROTECTED] wrote:
I have a form bean with a string array defined as a property, with a
corresponding set/get like this:
private String[] an
I have a form bean with a string array defined as a property, with a
corresponding set/get like this:
private String[] answers = { "Answer 1","Answer 2","Answer 3","Answer
4","Answer 5" };
public String[] getAnswers() { return (this.answers); }
public void setAnswers(String[] value) { this.an
15 matches
Mail list logo