Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Struts 2 »

Anyway to have associative form properties?

James Carr

2007-07-30

Replies:

Hey all,

In php, I used to have complex forms in some of my applications
associated to something, like this:

<input type="text" name="employees[james][address]"/>

Which, when posted, mapped to:
$_POST['employees']['james']['address']

essentially, I'd have an employees hashMap with all of the employee
names submitted, which contained information about that employee...
kind of an ad hoc object graph.

How can I do something similar in struts?

Thanks,
James

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.