I'm using form based authentication with the following in my web.xml file:
    <login-config>
        <auth-method>FORM</auth-method>
        <form-login-config>
            <form-login-page>/login.jsp</form-login-page>
            <form-error-page>/loginerror.jsp</form-error-page>
        </form-login-config>
    </login-config>

I tried to hide my login.jsp and loginerror.jsp pages by putting them
in a subdirectory of WEB-INF (and changing the <form-*-page> attributes)
but I couldn't login to my application.

Specifically, I put the two files in the WEB-INF/jsp directory and changed
the web.xml file to:
            <form-login-page>/WEB-INF/jsp/login.jsp</form-login-page>
            <form-error-page>/WEB-INF/jsp/loginerror.jsp</form-error-page>

Any thoughts on why this wouldn't work?

Thanks,
Kevin HaleBoyes


____________________________________________________________
Do You Yahoo!?
Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
or your free @yahoo.ie address at http://mail.yahoo.ie

Reply via email to