Hi all,
currently there is a nice feature for action configuration, in which is
possible to send parameters to the Action through the ActionMapping. It uses
the <set-property> tag. By example:
<action path="/sellers"
type="com.out.control.DoQueryAction"
className="com.out.control.DoQueryActionMapping">
<set-property property="query" value="SELECT * FROM COMPANY"/>
<forward name="success" path="/seller/sellers.jsp"/>
</action>
And, by extending the ActionMapping with a get/setQuery() attributes and
query parameter, is possible to configure such a parameter from the
struts-config making it available for the Action by:
String query= ((MyActionMapping)mapping).getQuery();
Well, the question is: I would like to send a indeterminate number of
parameters. Is currently this posibility possible:
<action path="/sellers"
type="com.out.control.DoQueryAction"
className="com.out.control.DoQueryActionMapping">
<set-property property="query[0]" value="SELECT * FROM A"/>
<set-property property="query[1]" value="SELECT * FROM B"/>
<set-property property="query[2]" value="SELECT * FROM C"/>
<forward name="success" path="/seller/sellers.jsp"/>
</action>
and get it in the same way defining the property as ArrayList. Any easier
way?
If not possible, should it be an easy and handy enhacement?
TIA,
Adolfo
_________________________________________________________________
Add photos to your e-mail with MSN 8. Get 2 months FREE*.
http://join.msn.com/?page=features/featuredemail
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

