struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Graham <grahamdavid1...@yahoo.com>
Subject Re: order of bean form population
Date Fri, 18 Jul 2003 16:52:36 GMT
--- "Craig R. McClanahan" <craigmcc@apache.org> wrote:
> 
> 
> On Fri, 18 Jul 2003, Joe Zendle wrote:
> 
> > Date: Fri, 18 Jul 2003 10:22:34 -0600
> > From: Joe Zendle <joe.zendle@vericept.com>
> > Reply-To: Struts Users Mailing List <struts-user@jakarta.apache.org>
> > To: Struts Users Mailing List <struts-user@jakarta.apache.org>
> > Subject: order of bean form population
> >
> > This is probably a JSP question but here goes:
> >
> > What is the order in which bean properties are populated. Is it from
> 1st
> > to last as defined in the class (assuming reflection is used)? Can I
> > reliably use a property's value defined 1st to make a decision of how
> to
> > populate a later attribute? I am trying to make a form that can be
> used
> > to hold various business entities that share common attributes.
> >
> 
> The only reasonable assumption to make is that it's undefined.  It ends
> up
> being driven by the order the request parameter names are iterated
> through
> from a HashMap, and that's essentially out of your control.  (See the
> method RequestUtils.populate() for the gory details.)

Also, the order the form elements are submitted via HTTP is undefined
although many browsers submit the fields in the order they are declared on
the form.

David

> 
> Craig
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
> 


__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Mime
View raw message