tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sloan Seaman" <sl...@sgi.net>
Subject Re: Form based security
Date Thu, 13 Feb 2003 15:01:46 GMT
I have a filter set up so that if they don't go to the index.jsp or
login.jsp it will redirect them to the login.jsp.
(is that the best way?)

So basically they either go to the index.jsp or login.jsp page. How do I
list a page as secure?

Do I have to wirte code for the j_security_check or is this something within
tomcat?

----- Original Message -----
From: "Barney Hamish" <Hamish.Barney@ect-telecoms.de>
To: "'Tomcat Users List'" <tomcat-user@jakarta.apache.org>
Sent: Thursday, February 13, 2003 9:50 AM
Subject: RE: Form based security


> Are you going directly to the login page? If so then you need to go to a
> page in that's listed as being secure. You will then be forwarded to the
> login page. When you've logged in successfully then you will be forwarded
to
> the page you originally requested.
> Hamish
>
> > -----Original Message-----
> > From: Sloan Seaman [mailto:sloan@sgi.net]
> > Sent: Thursday, February 13, 2003 3:48 PM
> > To: tomcat-user@jakarta.apache.org
> > Subject: Form based security
> >
> >
> > I'm attempting to do form based security and I keep getting a
> > 404 error when
> > I click the submit button.
> >
> > I'm guessing I'm missing some type of configuration in the
> > server.xml.....
> >
> > The form I am using is:
> > <form method="POST" action="j_security_check">
> >   <input type="text" name="j_username"/>
> >   <input type="password" name="j_password"/>
> >   <input type="submit" value="Submit">
> > </form>
> >
> >
> > And I have the following in my web.xml
> >  <login-config>
> >      <auth-method>FORM</auth-method>
> >   <form-login-config>
> >    <form-login-page>/login.jsp</form-login-page>
> >    <form-error-page>/login-error.jsp</form-error-page>
> >   </form-login-config>
> >  </login-config>
> >
> > Can anyone help me out here?
> >
> > --
> > Sloan
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message