I want to display data for ControlUnits in a table of my Main.jsp
I filled the datatypes in an ArrayList and put it with the name "list" into
the request.

When I just want to display strCu_dc which is from type String everything
works fine 
and I get the table displayed.

But when I also want to display iOu_id I get an 

javax.servlet.ServletException: No getter method for property iOu_id of bean
orgUnitForm 

Why do I get this exception with int and not with String.
Is it cause int is a primitive datatype?

Is there a good document about using the datatypes in the jsp's available on
the web?


The Datatype
public class ControlUnit implements Serializable
{
    int iOu_id;
    String strCu_dc;

    public ControlUnit()
    {
        iOu_id = 0;
    }

    public ControlUnit(int cu_id, int ou_id, String cu_dc, int cu_ext_id)
    {
        iOu_id = ou_id;
        strCu_dc = cu_dc;
    }

    public int getIOu_id()
    {
        return iOu_id;
    }

    public void setIOu_id(int _iOu_id)
    {
        iOu_id = _iOu_id;
    }

    public String getStrCu_dc()
    {
        return strCu_dc;
    }

    public void setStrCu_dc(String _strCu_dc)
    {
        strCu_dc = _strCu_dc;
    }
}


The code I'm using in the Main.jsp
        <table>
        <logic:iterate id="orgUnitForm" name="list" type="data.ControlUnit">
            <tr>
                <td><bean:write name="orgUnitForm" property="strCu_dc"
filter="true" /></td>
            <td><bean:write name="orgUnitForm" property="iOu_id"
filter="true" /></td>
            </tr>
        </logic:iterate>
        </table>

thanks in advance.

----------------------------------------------------------------------------
----------------
Hanel Matthias
Fachinformatiker (Anwendungsentwicklung) in Ausbildung
Logistik World GmbH     Fon:    +49-841-9014-300
Marie-Curie-Strasse 6   Fax:    +49-841-9014-302 
D- 85055 Ingolstadt     mailto:[EMAIL PROTECTED]
----------------------------------------------------------------------------
----------------


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

Reply via email to