how to display a message for every request

2006-05-08 Thread Srinivas Vakkalanka
Hi, I am new to struts. I have a request that, for every request I want to display a message or log a message using struts frame work. How this could achieve. Please help in this regard Thanks and Regards Srinivas Vakkalanka

Re: how to display a message for every request

2006-05-08 Thread Adam Hardy
Srinivas Vakkalanka on 08/05/06 11:32, wrote: Hi, I am new to struts. I have a request that, for every request I want to display a message or log a message using struts frame work. How this could achieve. Please help in this regard Hi Srinivas, your requirement would normally be implemented

Re: how to display a message for every request

2006-05-08 Thread Ed Griebel
You can create a base action class which extends Action and implements execute(). In execute you would call your preferred logging method as described below. Then, every action you create would extend your BaseAction class and the first line of every execute() method would call super.execute()

Re: how to display a message for every request

2006-05-08 Thread Philihp Busby
You could extend one of the methods in RequestProcessor, like this: public class AuditingRequestProcessor { protected ActionForward processActionPerform( HttpServletRequest request, HttpServletResponse response, Action action, ActionForm form, ActionMapping mapping

Re: how to display a message for every request

2006-05-08 Thread Frank W. Zammetti
What is the nature of the messages you want to log? Is it something basic like Request received, or do you need values from ActionMapping or something? If they are simple messages, and if you really need it for all requests, I would suggest a filter. Very easy, and not coupled to the framework