struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Craig R. McClanahan" <>
Subject Re: order of bean form population
Date Fri, 18 Jul 2003 16:35:29 GMT

On Fri, 18 Jul 2003, Joe Zendle wrote:

> Date: Fri, 18 Jul 2003 10:22:34 -0600
> From: Joe Zendle <>
> Reply-To: Struts Users Mailing List <>
> To: Struts Users Mailing List <>
> 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.)


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message