To check if user is logged in

2003-01-22 Thread Suresh Addagalla
Hi, I think this is a commonly performed task, but I need your inputs to implement it in the best possible way. I have login page to authenticate the user. For subsequent requests, I need to check that the user is logged in. If he is not logged in, I need to display the login page. Is extending

Re: To check if user is logged in

2003-01-22 Thread julian green
have a look at the struts example that comes with struts. It has an example of what you are doing in there. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

RE: To check if user is logged in

2003-01-22 Thread Suresh Addagalla
PROTECTED]] Sent: Wednesday, January 22, 2003 6:22 PM To: Struts Users Mailing List Subject: Re: To check if user is logged in have a look at the struts example that comes with struts. It has an example of what you are doing in there. -- To unsubscribe, e-mail: mailto:struts-user-[EMAIL

RE: To check if user is logged in

2003-01-22 Thread Mohan Radhakrishnan
List' Subject: RE: To check if user is logged in Hi, Are you talking about CheckLoginTag.java in struts-example.war? This implements the check using a custom tag. But I need to forward to login page even before I forward my request to the JSP, in my controller itself. Suresh -Original

RE: To check if user is logged in

2003-01-22 Thread Jerome Jacobsen
Users Mailing List' Subject: RE: To check if user is logged in Hi, Are you talking about CheckLoginTag.java in struts-example.war? This implements the check using a custom tag. But I need to forward to login page even before I forward my request to the JSP, in my controller itself. Suresh

RE: To check if user is logged in

2003-01-22 Thread pqin
: RE: To check if user is logged in Hi, I can think of the following 1. Write Request Filters according to the Servlet spec. 2. Extend the Struts1.1 RequestProcessor Mohan -Original Message- From: Suresh Addagalla [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 22, 2003 6

RE: To check if user is logged in

2003-01-22 Thread Pani, Gourav
]] Sent: Wednesday, January 22, 2003 9:40 AM To: Struts Users Mailing List Subject: RE: To check if user is logged in 3. Have an abstract BaseAction class for your webapp. All of your concrete Actions subclass your BaseAction. Perform the login check in the BaseAction's execute method. Make

Re: To check if user is logged in

2003-01-22 Thread V. Cekvenich
Any security FAQ: best practice is to use standard container based security that is there since Servlet 2.2. Struts-config works with it. Then based on that extend. The example app in struts is not a good practice AFIK. .V Suresh Addagalla wrote: Hi, I think this is a commonly performed