Nothing is outwardly obvious... but it won't be in the nested tags as 
it's forming the property correctly ("account.account_no").

One way to test, is to use the normal bean:write tag using your named 
FormBean and the full nested property.
eg:
<bean:write name="beanName" property="account.account_no" />

And if you've named the bean the same name you have in the Struts config 
(as this is the name that the nested tags will be working off of), you 
should get the same error. With that said, it will have to be the scope 
of the bean, or the naming of the properties, the visibility of the 
methods etc etc. Nothing nested tag specific. All I can say is that the 
nested tags are laid up fine, and will be working off the bean named in 
the struts-config.xml


Arron.


Sanjay Choudhary wrote:

>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