On Tue, 15 Jul 2003, James Turner wrote:

> Date: Tue, 15 Jul 2003 08:59:30 -0400
> From: James Turner <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: 'Rick Reumann' <[EMAIL PROTECTED]>,
>      'Struts Users Mailing List' <[EMAIL PROTECTED]>
> Subject: RE: [ARTICLE] Succeeding with Struts Pt 2: Indexed Properties of
>     Beans
>
> Rick,
>    I haven't found a good way to do this without a lot of gross "<%="
> hacking, specifically because the Struts and JSTL interators give you a
> handle to the index of the interated object, not the key.

The iterated object has "key" and "value" properties to give you access to
either the key or the value with a nested expression.

>  But frankly,
> I don't see a huge need to do this.  Since the ActionForm is a separate
> object (or should be) from the backend business object, you can map in
> and out between an array and a Map during form setup and Action
> processing.
>
> James

Craig

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

Reply via email to