Jim,

Thanks very much, that works just fine, e.g.:

<c:forEach items="${paramValues.foo}" var="currentValue">
  <c:out value="${currentValue}" />&nbsp;
</c:forEach>

-c

Jim Kennedy wrote:

I believe you would use ${paramValues.foo}.  Although I have not tested
myself yet.  It will return a String[].


Jim Kennedy IT Consultant Mobile Phone: 813-503-1484 -----------------------------------------------------


----- Original Message ----- From: "Carole E. Mah" <[EMAIL PROTECTED]> To: "Tag Libraries Users List" <[EMAIL PROTECTED]> Sent: Wednesday, June 11, 2003 12:24 PM Subject: accessing multiple select params



Normally one can access a reqest parameter like this: ${param.foo}

But what should be done with the result of a multiple select? e.g.

<select name="foo" size="4" multiple>
<option value="farble">Farble warble</option>
<option value="blort">much blortiness</option>
<option value="bar">bar bar bar</option>
<option value="google">google</option>
[etc]
</select>

If I just ask for $(param.foo} in this case, all I get is the first one
the user selected. So if the user selected 'blort' and 'bar', I only get
'blort'.

If the 'foo' parameter is getting passed as an array in this case, how
does EL treat that array, does it give you a param.???? syntax for
accessing the array, or must the programmer parse it out by hand?

thanks,
-c
------------------
Carole E. Mah
  [EMAIL PROTECTED]



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



Reply via email to