Kenneth Himschoot wrote:
> Hi,
>
> I've been following the posts for about two weeks now but haven't found an
> answer to
> my problem: I'm used to working with php (now in v.4) which has easy access
> to webserver-
> variables like $AUTH_USER (the username when authenticated). Is there any
> reference
> where I can find how jsp handles these variables?
>
Since JSP pages get compiled into servlets, the best place to go is the servlet
specification at <http://java.sun.com/products/servlet>, or any of the many tutorials
and
books on servlets. Equivalents to nearly all of the environment variables a CGI script
sees are available as properties of the "request" implicit object in a JSP page -- for
example, the authenticated user (if any) is available via:
<%
String user = request.getRemoteUser();
%>
>
> Tnx.
>
> Kenneth
>
Craig McClanahan
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets