Struts is getting confused by:
public List getSkills() {
return skills;
}
public void setSkills(Product skill) {
this.skills.add(skill);
}
The getter and setter should be consistent.
-
Hmm... I just looked at the link you sent and it looks l
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
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
setter and getter methods are
required. Your Collection of emails should be a ordered collection like a
List.
-Original Message-
From: Evgeniy Strokin [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 15, 2004 3:38 PM
To: Struts Users Mailing List
Subject: RE: indexed property is not
PROTECTED]
Sent: Wednesday, December 15, 2004 11:42 PM
To: 'Struts Users Mailing List'
Subject: RE: indexed property is not updated after submit
Could be done like this:
<%@ taglib uri="/WEB-INF/struts-nested.tld" prefix="nested" %>
-Original Mes
CTED]
Sent: Wednesday, December 15, 2004 2:40 PM
To: Struts Users Mailing List
Subject: RE: indexed property is not updated after
submit
Thanks,
I think I'm getting close))
But your example gives me this exception:
---
Invalid argument looking up property
model.currentP
ing getEmailAddress() {
> > return emailAddress;
> > }
> >
> > /**
> > * @param string
> > */
> > public void setEmailAddress(String string) {
> >emailAddress = string;
> > }
> >
> >
> >
>
t;
> /**
> * @param string
> */
> public void setEmailAddress(String string) {
>emailAddress = string;
> }
>
>
>
> -Original Message-
> From: Evgeniy Strokin
> [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, December 15, 2004 2:40 PM
> To: Struts Users Mailing List
setEmailAddress(String string) {
emailAddress = string;
}
-Original Message-
From: Evgeniy Strokin [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 15, 2004 2:40 PM
To: Struts Users Mailing List
Subject: RE: indexed property is not updated after submit
Thanks,
I think I'm getting
Thanks,
I think I'm getting close))
But your example gives me this exception:
---
Invalid argument looking up property
model.currentPerson.contactInfo.emails[0].emailAddress
of bean form
---
Could you clue me in why is what?
Thanks,
Eugene
--- "Kand
Evgeniy Strokin wrote:
Thanks,
but the server doesn't respond. Could you sent the pdf
or copy and past the page from pdf.
I'm really stack with this problem and appreciate any
help.
--- Sebastián Gorgo <[EMAIL PROTECTED]> wrote:
Evgeniy Strokin wrote:
Hi,
I have a problem:
Struts config file has:
Could be done like this:
<%@ taglib uri="/WEB-INF/struts-nested.tld" prefix="nested" %>
-Original Message-
From: Evgeniy Strokin [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 15, 2004 10:04 AM
To: [EMAIL PROTECTED]
Subject: indexed property is not updated after submit
Thanks,
but the server doesn't respond. Could you sent the pdf
or copy and past the page from pdf.
I'm really stack with this problem and appreciate any
help.
--- Sebastián Gorgo <[EMAIL PROTECTED]> wrote:
> Evgeniy Strokin wrote:
> > Hi,
> > I have a problem:
> > Struts config file has:
> >
> >
Evgeniy Strokin wrote:
Hi,
I have a problem:
Struts config file has:
On JSP I have:
property="model.currentPerson.contactInfo.emails"
name="form" >
It generates folowing HTML:
But when I submit the form actual values in a bean are
not updated. They are still the same.
This is my Bean:
p
Maybe you should expose your problem with some more details ;o)
RamKumar wrote:
Hi,
Indexed property methods are not getting called if i use expression language in
html:multibox tag. Why is this?. I am using tomcat 5.0.
Any clues,
thanks,
Ramkumar
---
19 matches
Mail list logo