Hi,

I search the archive but could not find the answer.

I'm getting IllegalArgumentexception when struts try to populate the
DynaValidatorForm properties.

Jsp File snippets:

Blah----
<html:image src="images/btn_addto.gif" property="addImageButton" border="0"
altKey="add" />
Blah---

snippets from struts-config.xml file

    <form-bean      name="registrationForm"
                    type="org.apache.struts.validator.DynaValidatorForm"
                    dynamic="true">
      <form-property name="firstName" type="java.lang.String"/>
      <form-property name="lastName" type="java.lang.String"/>
      <form-property name="addImageButton"
type="com.cgmp.qualdocs.util.ImageButtonBean"/>
      <form-property name="cancelImageButton"
type="com.cgmp.qualdocs.util.ImageButtonBean"/>
    </form-bean>

ImageButtonBean.java

public final class ImageButtonBean {
    private String x = null;
    private String y = null;

    public String getX() {
        return (this.x);
    }
    public void setX(String x) {
        this.x = x;
    }
    public String getY() {
         return (this.y);
    }
    public void setY(String y) {
        this.y = y;
    }
    public boolean isSelected() {
          return ((x!=null) || (y!=null));
    }
} // End ImageButtonBean

Deepak


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to