On Mon, 21 Oct 2002, Chen, Gin wrote:
> Hi all,
> How can I use jstl when accessing values with special chars in
> the name? In particular, the period. I have a param that is being
> passed in as user.name for example. It does not mean name in user
> object, it just comes from someone declaring fields as:
>
> <input type="text" name="user.name">
> <input type="text" name="user.email">
>
> etc..
>
> how about when the special value name is in one of the scopes?
>
> I cant do pageScope.user.name i'm assuming.
Right, but you can use the '[]' notation, as in
${pageScope["user.name"]}
If they come directly from a form, then you'll want
${param["user.name"]}
--
Shawn Bayern
"JSTL in Action" http://www.jstlbook.com
--
To unsubscribe, e-mail: <mailto:taglibs-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:taglibs-user-help@;jakarta.apache.org>