You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by ra...@vmoksha.com on 2004/06/11 10:33:06 UTC

Want to do some business logic before the action class of struts is invoked. How ?

Dear Strusts users,

        I have a typical requirement where i need to do some business 
logic before any action class gets executed. Where should I write the code 
for this ? Pls suggest.

regds
r-a-v-i

Re: Want to do some business logic before the action class of struts is invoked. How ?

Posted by Harjot Narula <ha...@induslogic.com>.
Just extend the struts request processor and
then you can over ride any method in the requestprocessor.
If you need to check something before every request
you can put the code in processPreProcess method of
request processor. ActionServlet calls this method just
before processing every request.

Harjot


----- Original Message ----- 
From: <ra...@vmoksha.com>
To: <us...@struts.apache.org>
Sent: Friday, June 11, 2004 2:03 PM
Subject: Want to do some business logic before the action class of struts is
invoked. How ?


> Dear Strusts users,
>
>         I have a typical requirement where i need to do some business
> logic before any action class gets executed. Where should I write the code
> for this ? Pls suggest.
>
> regds
> r-a-v-i


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Want to do some business logic before the action class of struts is invoked. How?

Posted by Shailender Jain <sh...@teleatlas.com>.
Have you tried processPreprocess() method of RequestProcessor.
This method will be executed for each request and will be before action class
gets executed

raviv@vmoksha.com wrote:

> Dear Strusts users,
>
>         I have a typical requirement where i need to do some business
> logic before any action class gets executed. Where should I write the code
> for this ? Pls suggest.
>
> regds
> r-a-v-i


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org