tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tim Funk <funk...@joedog.org>
Subject Re: JSTL VS. JSP
Date Thu, 26 Aug 2004 23:34:43 GMT
http://www.manning-source.com/books/bayern/bayern_apxA.pdf
http://www.jadecove.com/jstl-quick-reference.pdf

and worst case ... the JSTL spec.

-Tim

Williams, Mark L CIV NSWC-PC wrote:

> Works. Merci. Is there a reference where I should have been able to find
> that?
> 
> VR/m
> 
> -----Original Message-----
> From: Tim Funk [mailto:funkman@joedog.org]
> Sent: Thursday, August 26, 2004 15:04
> To: Tomcat Users List
> Subject: Re: JSTL VS. JSP
> 
> 
> <c:out value="${pageContext.request.userPrincipal.name}" />
> 
> -Tim
> 
> Williams, Mark L CIV NSWC-PC wrote:
> 
> 
>>Given a web site using FORM-based authentication, I can get the name
> 
> of
> 
>>the authenticated user to show in my web page with:
>>
>><%= request.getUserPrincipal().getName() %>
>>
>>If I use JSTL, I think the equivalent should be:
>>
>><c:out value="${request.getUserPrincipal().getName()}" />
>>
>>The first one works; the second one fails with a "The function
>>getUserPrincipal must be used with a prefix when a default namespace
> 
> is
> 
>>not specified" error.
>>
>>I'd really like to get the JSTL version to work. I'm really rusty on
>>lots of this and figure I'm overlooking the obvious, so I need someone
>>to point it out to me. Please. I'm not begging here, but it sure does
>>sound like it.
>>
>>VR/
>>Mark
> 
>  

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message