Paul Speed wrote:
> Does this mean that we'll be able to use things like HashMaps as our
> form data storage instead of having to build out a full class with
> sets/gets?  If so, that's awesome news.  I long ago got rid of
> presentation layer beans since everything is retrieved and set by
> property name anyway... just made using struts kind of difficult.
> Translation into business objects happens later down the pipeline and
> goes right from Map->Business object.
> 
> -Paul

In the nightly build, you can actually that now, using the extended
syntax. 

On the ActionForm, define these methods to access your map: 

public void setProperty(String key, Object value)
public Object getProperty(String key)

then you can use this notation in the JavaServer Pages

<html:text property="property(key)"/>

and 

<bean:write name="formBean" property="property(key)"/>


But the DynaBeans can use a standard syntax, and can go anywhere a
JavaBean is expected.

Bryan is using DyanBeans in his new persistence layer package, 

http://netmeme.org/simper/


-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Building Java web applications with Struts.
-- Tel +1 585 737-3463.
-- Web http://www.husted.com/struts/

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to