Section A.3.4 of the specification talks about using the "[]" operator to
access maps. From this, you can see that your EL expression would be
"${preferredNames[staffMember]}". If you're using Struts-EL, you can just
use that as your "value" value on your "html-el:text" element.
> -----Original Message-----
> From: Wendy Smoak [mailto:Wendy.Smoak@;asu.edu]
> Sent: Friday, October 18, 2002 3:46 PM
>
> I've poked around the Standard Taglib documentation, and
> asked Google, but
> so far I can't find what I need.
>
> I have a Hashtable in session scope. I have a String in page
> scope that is
> the key to something in the Hashtable. What tag can get the
> value out of
> the Hashtable for me?
>
> I don't think it matters, but I'm using Struts. (Not for
> this tag-- I don't
> care about the value, I just need to display it in a white box.)
>
> Currently I'm doing this, which just puts the 'key' into the
> readonly text
> box.
>
> <input type="text" name="junk" readonly="readonly" size="50"
> value="<bean:write name="staffMember"/>"/>
>
> The Map in session scope is called preferredNames, so somehow
> I need to call
>
> preferredNames.get(${staffMember});
>
> Any takers? Thanks!
>
> --
> Wendy Smoak
> http://sourceforge.net/projects/unidbtags
>
--
To unsubscribe, e-mail: <mailto:taglibs-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:taglibs-user-help@;jakarta.apache.org>