Hi Gurpeet,

The path is relative to the context path for that particular
application.  The '/' in the front of the url doesn't mean the
absolute container root, it means your application's context root.
So, by defining this:

authc.loginUrl = /someLoginPage.jsp

If your application is deployed under the root context ("/"), then it
will redirect to http://host/someLoginPage.jsp.
If the app is deployed under another root (e.g. "myapp"), then it will
redirect to http://host/myapp/someLoginPage.jsp

Cheers,

Les

On Thu, Jul 23, 2009 at 12:23 PM, gkaur<[email protected]> wrote:
>
> Hi,
>
> I am trying to use the BasicAuthenticationFilter to forward to login.jsp
> when the user is not authenticated.
> My question is that AccessControlFilter sets the DEFAULT_LOGIN_URL as
> /login.jsp. So when I try to access my webpage, I get routed to the
> following page
>
> http://localhost:8080/contactcenter/servlet/login.jsp
>
> But the path needs to be
>
> http://localhost:8080/contactcenter/login.jsp
>
> I understand that I can set the path in server.xml by authcbasi...@link
> org.apache.shiro.web.filter.authc.BasicHttpAuthenticationFilter#setLoginUrl(String)
> loginUrl} = /contactcenter/login.jsp
>
> But I am not sure if this will solve the problem because the path looks
> relative to the servlet path
>
> Thank you
> -Gurpreet
>
>
>
> --
> View this message in context: 
> http://n2.nabble.com/Default-Login-URL-tp3310646p3310646.html
> Sent from the Shiro User mailing list archive at Nabble.com.
>

Reply via email to