struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jean Bernard DUGIED" <std...@oieau.fr>
Subject Nested bean : No getter method
Date Fri, 25 Jul 2003 10:48:49 GMT
Hi

I am trying to reuse a class generated by some tool.
Class look like this :
/***********************************************************************
 * Module:  T_ADreglev2.java
 ***********************************************************************/

package org.oie.model;

import java.util.*;

public class T_ADREGLEV2
{
   /** District */
   public int ADR2CODE;
   /** FK text code du state */
   public int R2ADR1CODE;
   // other properties...

   public int getADR2CODE()
   {
      return ADR2CODE;
   }
   public void setADR2CODE(int newADR2CODE)
   {
      ADR2CODE = newADR2CODE;
   }
   // other methods...

  public int getR2ADR1CODE() {
    return R2ADR1CODE;
  }
  public void setR2ADR1CODE(int R2ADR1CODE) {
    this.R2ADR1CODE = R2ADR1CODE;
  }
}

I put this class in a Reglev2 business class as a nested bean. When
accessing the R2ADR1CODE field from a a jsp with :
      <html:text property="bean.R2ADR1CODE" size="50"/>

... I get :
org.apache.jasper.JasperException: No getter method for property
bean.R2ADR1CODE of bean org.apache.struts.taglib.html.BEAN

The fact that the property name's initial is in uppercase. Maybe it is the
problem. But similar code works perfectly well with the ADR2CODE property,
which is similar. So I am confused...

Do you have idea of what is going on : why does it work here and not there ?
tIA



---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Mime
View raw message