Hi;

I thought there was a way to have an action class get called before a page
was rendered as well as when the form was submitted. Or something like that
- but it could be clearly tied to each jsp page. 

Is my memory off? (I know I had a system in some old code where each page
did a security check when it was going to be rendered and if the user was
not authorized, forwarded them to the home page.)

Thanks - dave

 
David Thielen
www.windwardreports.com
303-499-2544
-----Original Message-----
From: Wendy Smoak [mailto:[EMAIL PROTECTED] 
Sent: Thursday, January 19, 2006 1:42 PM
To: Struts Users Mailing List
Subject: Re: Call method before index.jsp is built?

On 1/19/06, David Thielen <[EMAIL PROTECTED]> wrote:

> I am 99% positive this is doable, but I can't find it anywhere. How do I
get
> a method called before a page is built - and very specifically before the
> very first page (index.jsp) is displayed to a user? I want to see if we
have
> a cookie that identifies them and if so, put their name in index.jsp.

You can use a Filter.
   http://java.sun.com/products/servlet/Filters.html

--
Wendy

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to