Thanks to all! Writing the first letter in lowercase, it works well  :-) !!

Eider

Ramaswamy, Palaniappan wrote:

Hi Eider

Try /<bean:define id="cmax" name="adminFormBean" property="Cmax" type="java.lang.Integer"/>


the property="Cmax"  should be property="cmax". Struts is case
sensitive. If the method in the bean is setCmax then the property should
be accessed as "cmax" in any of the struts tag.

Have a Good Day!!!
Best Regards
Pal

-----Original Message-----
From: Eider Iturbe [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 22, 2005 3:03 PM
To: Struts Users Mailing List
Subject: Problem: <bean:define...>

Hi!

I have a problem with defining an scripting variable with:

/<bean:define id="Cmax" name="adminFormBean" property="Cmax" type="java.lang.Integer"/>

/and this property is defined into the bean called adminFormBean like
this:

/    private int Cmax = 0 ;

   public void setCmax(int cmax) {
       this.Cmax = cmax;
   }

   public int getCmax() {
       return Cmax;
   }

/But I get one JspException: "/No getter method for property Cmax of bean adminFormBean"

/Can anyone help me, please? Thanks!!!

Eider



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

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






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

Reply via email to