Re: Subclassing ActionForward

2005-05-18 Thread James Mitchell
EMAIL PROTECTED] - Original Message - From: "Benedict, Paul C" <[EMAIL PROTECTED]> To: "'Struts Users Mailing List'" Sent: Wednesday, May 18, 2005 4:11 PM Subject: RE: Subclassing ActionForward How long did it take to do your nice UML graph in ASCII?

RE: Subclassing ActionForward

2005-05-18 Thread Benedict, Paul C
How long did it take to do your nice UML graph in ASCII? :) -Original Message- From: James Mitchell [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 18, 2005 3:02 PM To: Struts Users Mailing List; [EMAIL PROTECTED] Subject: Re: Subclassing ActionForward In your BaseDispatchAction

Re: Subclassing ActionForward

2005-05-18 Thread James Mitchell
: jmitchtx MSN: [EMAIL PROTECTED] - Original Message - From: "Lee Harrington" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Wednesday, May 18, 2005 1:47 PM Subject: Re: Subclassing ActionForward I'm all for doing things "the struts way&quo

Re: Subclassing ActionForward

2005-05-18 Thread Dakota Jack
!= null) { retun forward; } On 5/17/05, Joe Germuska <[EMAIL PROTECTED]> wrote: > From my first take on your description of the problem, I don't think > that subclassing ActionForward is the area of Struts where you would > enforce this. > > For a new app, t

Re: Subclassing ActionForward

2005-05-18 Thread Aladin Alaily
> I do not recommend using a filter. You are much better off using what > you've already invested your time in (Struts). I disagree. I think that a filter is best suited for what you are trying to accomplish. Whenever a request is submitted to your application, you should verify that the user i

Re: Subclassing ActionForward

2005-05-18 Thread Lee Harrington
c. > http://www.edgetechservices.net/ > 678.910.8017 > AIM: jmitchtx > Yahoo: jmitchtx > MSN: [EMAIL PROTECTED] > > > - Original Message - > From: "Lee Harrington" <[EMAIL PROTECTED]> > To: "Struts Users Mailing List" > Sent: W

Re: Subclassing ActionForward

2005-05-18 Thread James Mitchell
x MSN: [EMAIL PROTECTED] - Original Message - From: "Lee Harrington" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Wednesday, May 18, 2005 12:07 PM Subject: Re: Subclassing ActionForward Okhave a filter...it runs (use logging to determine this). I&#x

Re: Subclassing ActionForward

2005-05-18 Thread Dave Newton
Lee Harrington wrote: I'm stuck on how to forward to the login page. UserDTO user = (UserDTO) request.getSession().getAttribute("user"); if (user==null) { // User is not logged in, redirect to login page // How do I do that? response.sendRedirect("/path/to/loginAction")? Dave

Re: Subclassing ActionForward

2005-05-18 Thread Frank W. Zammetti
Pretty much the same way you do any other place... ((HttpServletResponse)response).sendRedirect("-the_url-"); -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com On Wed, May 18, 2005 12:07 pm, Lee Harrington said: > Okhave a filter...it runs

Re: Subclassing ActionForward

2005-05-18 Thread Lee Harrington
Okhave a filter...it runs (use logging to determine this). I'm stuck on how to forward to the login page. Here's my filter code: public void doFilter(ServletRequest request, ServletResponse response, FilterChai

Re: Subclassing ActionForward

2005-05-17 Thread Robert Taylor
Look into using Filters. They are great for this kind of stuff. /rober Lee Harrington wrote: I want to check to see if the user is logged in before performing any action, and redirect to the login page if they are not. For example...they have a page open and their session times outand then they

Re: Subclassing ActionForward

2005-05-17 Thread Yan Hu
Hello: I would suggest that you use servlet filters. --- Lee Harrington <[EMAIL PROTECTED]> wrote: > I want to check to see if the user is logged in before performing any > action, and redirect to the login page if they are not. > > For example...they have a page open and their session times ou

Re: Subclassing ActionForward

2005-05-17 Thread Josh
Lee Harrington wrote: I want to check to see if the user is logged in before performing any action, and redirect to the login page if they are not. For example...they have a page open and their session times outand then they click a button. Right now an error occurs because they are no longer

Re: Subclassing ActionForward

2005-05-17 Thread Joe Germuska
From my first take on your description of the problem, I don't think that subclassing ActionForward is the area of Struts where you would enforce this. For a new app, the simplest solution is an abstract subclass of Action which all of your classes extend; your subclass implements ex

Re: Subclassing ActionForward

2005-05-17 Thread Frank W. Zammetti
Use a filter. Or, write an Action base class and have all your Actions subclass it. The filter is the better answer. -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com Lee Harrington wrote: I want to check to see if the user is logged in before

Re: Subclassing ActionForward

2005-05-17 Thread Dave Newton
Lee Harrington wrote: I wrote a bit of code that if I put it in the beggining of an action class...does just that. But I don't want to have to put this in the front of each of my actions (particularly since I've already written a good portion of the app). Do I solve this by subclassing the action

Subclassing ActionForward

2005-05-17 Thread Lee Harrington
I want to check to see if the user is logged in before performing any action, and redirect to the login page if they are not. For example...they have a page open and their session times outand then they click a button. Right now an error occurs because they are no longer logged in. I wrote a