tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Siggelkow, Bill" <>
Subject RE: remoteUser
Date Tue, 12 Aug 2003 13:15:50 GMT
Right Lukas -- as Felipe pointed out a number of the objects that JSTL can reference are actually
specified by other APIs.  If I were coming from the perspective of a page author, not a Java
developer, I could see where this would be difficult.  Actually, I have been working on a
JSTL Quick Reference and I think this would be a good addition.  Basically, the key to it
is as follows:

1) Know what the JSTL/EL implicit objects are -- these are actually specified in Appendix
A.6 of the JSTL spec or from the JSP 2.0 spec -- and to what API they refer e.g.

pageContext -- javax.servlet.jsp.PageContext

2) Then you can use the API to find out what objects are available -- using the standard property
accessor methods e.g.

For example from the PageContext API we see that it has a getRequest() method which returns
a javax.servlet.ServletRequest object -- (in all likelihood, the actual object is a javax.servlet.http.HttpServletRequest)
-- then the HttpServletRequest has a getRemoteUser() method.

Using the APIs and knowing how JSTL accesses properties that follow the JavaBeans get/set
convention, you can get to just about anything you could need.  That being said, I would try
and stick with the basic scoped variable containers (requestScope, sessionScope, etc.) and
if I really need to drill down I would do this in JavaCode (e.g. in Struts Action classes).

Happy Coding!

-----Original Message-----
From: p@zdzior []
Sent: Tuesday, August 12, 2003 8:48 AM
To: Tag Libraries Users List
Subject: Re: remoteUser

Thanks a lot,

by the way - is there any documantation available which describes all
availale parameters
like pageContext.request.remoteUser, ...


----- Original Message -----
From: "Siggelkow, Bill" <>
To: "'Tag Libraries Users List'" <>
Sent: Tuesday, August 12, 2003 2:42 PM
Subject: RE: remoteUser

> <c:out value="${pageContext.request.remoteUser}"/>
> -----Original Message-----
> From: p@zdzior []
> Sent: Tuesday, August 12, 2003 5:52 AM
> To:
> Subject: remoteUser
> Hi,
> I am tring to get information about loged user, normaly I used method:
> <%= request.getRemoteUser() %>
> Is there a way to do the same hing usig JSLT tags and EL?
> Something like:
> <c:out value= "..." />
> thanks,
> lukas
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:
> ----------------------------------------------------------------------
> Portal INTERIA.PL zaprasza... >>>

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message