check your account_no get and set method, check the first letter case (upper
case, lower case)
----- Original Message -----
From: Sanjay Choudhary <[EMAIL PROTECTED]>
To: Struts Users Mailing List <[EMAIL PROTECTED]>; arron monkey
<[EMAIL PROTECTED]>
Sent: Thursday, April 18, 2002 10:51 AM
Subject: [Q] nested:nest and nested:write


> Hi Friends,
>
> I have a FormBean AccountForm and javabean Account
>
> public class AccountForm{
>    private Account account;
>
>    // setter and getter method for account
> }
>
> public class Account{
>    private String account_no;
>    // setter and getter for account_no
> }
>
> Then I have the following test.jsp
>
> <html:html>
> <HEAD>
> <TITLE>test.jsp</TITLE>
> </HEAD>
> <BODY>
> <nested:form action="test.do" >
> <TABLE border="1">
> <TBODY>
> <TR>
>   <TD>
>     <nested:nest property="account">
>         <nested:write property="account_no"/>
>     </nested:nest>
>   </TD>
> </TR>
> </TBODY>
> </TABLE>
> </nested:form>
> </BODY>
> </html:html>
>
> When I run test.jsp I get the following error
>
> Servlet Error: No getter method for property
> account.account_no of bean AccountForm:
> javax.servlet.jsp.JspException: No getter method for
> property account.account_no of bean AccountForm.
>
> Where am I making the mistake?
>
> -Sanjay
>
>
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Tax Center - online filing with TurboTax
> http://taxes.yahoo.com/
>
> --
> 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]>

Reply via email to