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?
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
: 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
!= 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
> 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
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
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
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
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
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
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
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
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
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
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
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
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
17 matches
Mail list logo