> -----Original Message-----
> From: Karr, David [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, August 27, 2002 1:02 PM
> To: [EMAIL PROTECTED]
> Subject: Using standard security configuration in web.xml, making
> "login.j sp" be both "login" and "error" pages?
>
>
> Is there any practical way to configure login security in
> "web.xml" so that
> the user will see basically the same page for "login" as they will for
> "error"?
>
> It would have been nice if the "login.jsp" could check a flag
> and display an
> error message, along with the login prompt information, but I
> don't see a
> way to do that.

You would probably like to take a look into Struts.
jakarta.apache.org/struts

>
> Can the "error.jsp" just be a similar page, with the login
> prompt, and the
> "form" element submitting to "j_security_check"?  I suppose I
> could put the
> "form" element into a file that's statically included from both pages.

You could use a properties file, in which you place the error messages, in
case you get an error, send it to the login page, displaying the error
messages from the properties file.
This is how struts work.
>
> ______________________________________________________________
> _____________
> To unsubscribe, send email to [EMAIL PROTECTED] and
> include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources:
> http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to