This is the select box tag on the jsp page:
<html:select property="ewrStaaten">
<html:options property="ewrStaatenValue" labelProperty="ewrStaatenLabel"/>
</html:select>
These are the getter and setter methods in the ActionForm class:
public String getEwrStaaten() {
return (ewrStaaten);
}
public void setEwrStaaten(String ewrStaaten) {
this.ewrStaaten = ewrStaaten;
}
public Vector getEwrStaatenLabel() {
return (ewrStaatenLabel);
}
public void setEwrStaatenLabel(Vector ewrStaatenLabel) {
this.ewrStaatenLabel = ewrStaatenLabel;
}
public Vector getEwrStaatenValue() {
return (ewrStaatenValue);
}
public void setEwrStaatenValue(Vector ewrStaatenValue) {
this.ewrStaatenValue = ewrStaatenValue;
}
These things work fine because on when the jsp page is first requested the
select box properties are displayed. But the second time this page is
displayed (after validate() - when the error occurs!) the property
Vector ewrStaatenLabel is not displayed and obviously not available in the
ActionForm object.
----------------------------------------------------------------------------
-----------------------------------------Thomas
[EMAIL PROTECTED]
----- Original Message -----
From: "Jean-Baptiste Onofr�" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Tuesday, July 23, 2002 2:15 PM
Subject: Re: problem with ActionForm object
>
> Your ActionForm contains all accessors to the fields of html form ? For
> exemple, if you have a text field name "things", you must have a
> attributes String things in your ActionForm.
>
> Do you use the tag <html:form> or directly the html <form> tag ?
>
> --
> Jean-Baptiste Onofr� (Nanthrax)
> Membre fondateur de phpFR.org
> http://www.phpfr.org
> [EMAIL PROTECTED]
> Membre fondateur du LUG B�ziers
> http://lug-beziers.org
> [EMAIL PROTECTED]
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>
>
>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>