Hi,
 
I have the below scenario:
 
I have a java bean as below:
 
public class Address
{
     private String city;
     private String state;
 
     and public getters/setters for the above attributes;
}
 
and I have the ActionForm as below:
 
import Address;
public class EmpForm extends ActionForm
{
     private String name;
     private String empID;
     private Address empAddress;
 
     and public getters/setters for the aboev attribute;
}
 
We are using Struts 1.2.9 and writing the JSP page as below:
 
<html:form action="/sampleAction.do">
      <html:text property="name"/>
      <html:text property="empID"/>
      <html:text property="empAddress.city"/>
      <html:text property="empAddress.state"/>
</html:form>
 
I am getting the below error while submitting the form:
 
E SRVE0026E: [Servlet Error]-[BeanUtils.populate]: 
java.lang.IllegalArgumentException: No bean specified at 
org.apache.commons.beanutils.PropertyUtils.getPropertyDescriptor(PropertyUtils.java(Compiled
 Code))
I have read somewhere that Struts version I am using does support the nested 
attributes for the <html:text> and other tags. Are there any errors in the 
above code? Please help.
 
Thanks & Regards,
Chandra.
_________________________________________________________________
Post free property ads on Yello Classifieds now! www.yello.in
http://ss1.richmedia.in/recurl.asp?pid=221

Reply via email to