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
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
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()
-e
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
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
5 matches
Mail list logo