tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aaron Loucks" <>
Subject login config bug? request.getRequestURL() returns form-login-page in Tomcat 5.5.12
Date Fri, 28 Oct 2005 16:39:03 GMT
request.getRequestURL() is returning the uri of the <form-login-page>
element instead of the original request url in 5.5.12. Is this a bug or
was this intended to be this way? If this is supposed to return the
form-login-page, how do I get the original request URL? Tomcat 5.0.x did
not behave this way -- getRequestURL() returned the original request.


For example:

























Request to: http://localhost:8080/some_protected_url






System.out.println(request.getRequestURL()) // prints
"/WEB-INF/login.jsp" in Tomcat 5.5.12




System.out.println(request.getRequestURL()) // prints
"/some_protected_url" in Tomcat 5.0.28




  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message