Hi Nathan,

I solved this problem by putting an index.jsp file in the same directory as
the login.jsp, which redirects the surfer to my secure area.

index.jsp:
<%
    response.sendRedirect("/secure/index.jsp");
    return;
%>

This works for me.

Thanks,
--jeff

----- Original Message -----
From: "Nathan Coast" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, May 16, 2001 2:43 AM
Subject: j_security_check


> Hi,
>
> I have a login page which is configured in web.xml as the form based login
page
> for a web app:
>
> /pages/login/login.jsp
>
> If the login page is arrived at by browsing to some content restriced by a
> security constraint in web.xml, then submitting to j_security_check works
fine.
>   If the user browses to the login page directly, this 404 occurs:
>
> Not Found (404)
> Original request: /giftstore/pages/login/null
> Not found request: /giftstore/pages/login/null
>
> Is this correct? Is there some way of making the j_security_check work
> irrespective of how the user arrived at the login page?
>
> I'm using 3.2.1, is this behaviour the same in later Tomcats 3.X, 4.0?
>
> Thanks
> Nathan
>

Reply via email to