Instead of <nested:write> try <bean:write> with the nested property...

<bean:write name="sanForm" property="account.account_no" />

If that returns the error, it's all in the setup of the bean etc.
Because it's a "no getter method" error, I'd be checking over the 
methods and their signatures, making sure they're all public etc. It's 
quite a specific error. It's found the bean, but it can't get into it 
for one reason or another. If all your methods are public, start putting 
in System.outs (or logging calls) for the initial Beans' "getAccount()" 
method to make sure it's called, and then into the child bean etc etc to 
make sure all the methods are in fact being called.


Arron.



Sanjay Choudhary wrote:

>Hi Arron,
>
>In struts-config.xml I named 
>
><form-bean      name="sanForm"                        
>type="com.kp.struts.form.action.beans.ActionForm"/>
>
><action    path="/test"              
>type="com.kp.struts.form.action.LogonAction"
>              name="sanForm"
>              scope="session"
>              input="/test.jsp">
>    </action>
>
>Again got the error 
>Servlet Error: No getter method for property
>account.account_no of bean sanForm:
>javax.servlet.jsp.JspException: No getter method
>for property account.account_no of bean sanForm.
>
>I wish to use it for select options as documented for
>nested tag library. When I got the error in
>implementation,  I tried with a simple nested:write to
>see if I get the value or not...but it resulted inthe
>same type of error.
>
>
>Thanks,
>Sanjay
>
>
>
>--- Arron Bates <[EMAIL PROTECTED]> wrote:
>
>>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]>
>>
>
>
>__________________________________________________
>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