Thanks for the warning ! Not all of the properties are shown to the user. The date gets formatted based on a locale.
I will certainly look into the FormDef. - Glenn Hubert Rabago <[EMAIL PROTECTED]> 07/06/2005 05:43 PM Please respond to "Struts Users Mailing List" <user@struts.apache.org> To Struts Users Mailing List <user@struts.apache.org> cc Subject Re: How to get posted data into a nested object ? By the way, I should warn you that using Date and int fields on a form bean (which is what you're essentially doing) can lead to problems when the user types in invalid data. Maybe you'd be interested in something like FormDef? http://formdef.dev.java.net Hubert On 6/7/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Hello, > > Short description: > ------------------------- > How do I get posted data into a bean within the form bean ? > > The JSP has this code. > <html-el:text property="dependent.firstName" maxlength="15" value= > "${dependentForm.dependent.firstName}"/> > > The page is posted and I get this error: > [07/06/05 15:15:22:743 EDT] 6aa06aa0 WebGroup E SRVE0026E: [Servlet > Error]-[BeanUtils.populate]: java.lang.IllegalArgumentException: No bean > specified > > Really I'm getting exasperated trying to get this working. > All of the examples I've found deal with collections or simply getting the > data onto the page. > I need to pick it up from the page. > > > Long Description: > ------------------------- > My form bean contains a value object. > public class DependentForm extends ActionForm { > private ImageButtonBean addButton = new ImageButtonBean(); > private ImageButtonBean cancelButton = new ImageButtonBean(); > private DependentVO dependent; > ... > > public class DependentVO extends Dependent { > ... > > public class Dependent extends People { > ... > > public class People { > private Date dateOfBirth; > private int employeeNumber; > private String firstName; > private String lastName; > private String relationshipCode; > private String sexTypeCode; > private String smokerIndicator; > > The JSP has this code. > <html-el:text property="dependent.firstName" maxlength="15" value= > "${dependentForm.dependent.firstName}"/> > > TIA, > Glenn > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]