struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chandramouli P <>
Subject Problem from defining JavaBean as an attribute inside ActionForm
Date Thu, 03 Jul 2008 03:46:14 GMT
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="/">
      <html:text property="name"/>
      <html:text property="empID"/>
      <html:text property=""/>
      <html:text property="empAddress.state"/>
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(
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,
Post free property ads on Yello Classifieds now!
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message