RE: Special Chars in Param Name

2002-10-24 Thread Chen, Gin
Thanks David. :)
That's what it was. (except i had to use single quotes for user.name)
-Tim

-Original Message-
From: Karr, David [mailto:david.karr@;attws.com]
Sent: Monday, October 21, 2002 10:51 AM
To: 'Tag Libraries Users List'
Subject: RE: Special Chars in Param Name


I believe that would be "${pageScope["user.name"]}".

> -Original Message-
> From: Chen, Gin [mailto:Gin_Chen@;tvratings.com]
> Sent: Monday, October 21, 2002 7:06 AM
> To: 'Tag Libraries Users List'
> Subject: Special Chars in Param Name
> 
> 
> 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:
> 
> 
> 
> 
> etc..
> 
> how about when the special value name is in one of the scopes?
> 
> I cant do pageScope.user.name i'm assuming.
> 
> Thanks,
> -Tim
> 
> --
> To unsubscribe, e-mail:   
<mailto:taglibs-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail:
<mailto:taglibs-user-help@;jakarta.apache.org>

--
To unsubscribe, e-mail:
<mailto:taglibs-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail:
<mailto:taglibs-user-help@;jakarta.apache.org>

--
To unsubscribe, e-mail:   <mailto:taglibs-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:taglibs-user-help@;jakarta.apache.org>




RE: Special Chars in Param Name

2002-10-23 Thread Karr, David
I believe that would be "${pageScope["user.name"]}".

> -Original Message-
> From: Chen, Gin [mailto:Gin_Chen@;tvratings.com]
> Sent: Monday, October 21, 2002 7:06 AM
> To: 'Tag Libraries Users List'
> Subject: Special Chars in Param Name
> 
> 
> 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:
> 
> 
> 
> 
> etc..
> 
> how about when the special value name is in one of the scopes?
> 
> I cant do pageScope.user.name i'm assuming.
> 
> Thanks,
> -Tim
> 
> --
> To unsubscribe, e-mail:   
<mailto:taglibs-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail:
<mailto:taglibs-user-help@;jakarta.apache.org>

--
To unsubscribe, e-mail:   <mailto:taglibs-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:taglibs-user-help@;jakarta.apache.org>




Re: Special Chars in Param Name

2002-10-21 Thread Shawn Bayern
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:
> 
> 
> 
> 
> 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:   
For additional commands, e-mail: