Ricky, filter would work fine. But just to add up, Struts has RequestProcessor which processes all the requests.
java.lang.Object
|_ org.apache.struts.action.RequestProcessor
And this provides a behaviour called "processPreprocess" which just return "true" always => please process this request and then it continues processing else it doesnt do anything expecting that the response has already completed. Extending this is best way to do it.
Few words from the API,
protected boolean processPreprocess(HttpServletRequest request, HttpServletResponse response)
General-purpose preprocessing hook that can be overridden as required by subclasses. Return true if you want standard processing to continue, or false if the response has already been completed. The default implementation does nothing.
Anyways, your issue is resolved:thumbup: