Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Tomcat Users »

getRemoteUser null

Howard Watson

2003-12-31


Following are copies of two posts by me from the Novell Apache forum at
http://developer-forums.novell.com/group/novell.devsup.webserver.apache2/readerNoFrame.tpt/@thread@1274@F@10@D-,D@NONE/@article@(protected)

By referencing a JSP as the default page to load by referencing it in DirectoryIndex in Apache2 and not including the filename in the request URL I can successfully retrieve getRemoteUser. However, if I include the JSP name in the request getRemoteUser returns null. Although, this works for JSP it doesn't help with servlets.

Post1
http://webAddr:port/aliasName/SecurePage.jsp -- getRemoteUser returns null

Made this change, I had DirectoryIndex rem'ed out.
DirectoryIndex SecurePage.jsp

http://webAddr:port/aliasName/ -- user name as advertised

Even after authenticating if I link back and forth between the link including the filename and the one using the default the the one using the filename will return null.

Post2
Couldn't think of a way to apply DirectoryIndex to servlet/userLogin. So I applied it to MainMenu.jsp, redirected from servlet/userLogin. MainMenu.jsp then saves it in the session.

If anyone sees anything here that hints that I have maybe misconfigured something I'd like to know about it.
Howard





---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)



©2008 junlu.com - Jax Systems, LLC, U.S.A.