...
Method B:
Have the action implements ResponseAware and the response will be set through setServletResponse(HttpServletResponse). The action needs to have 'servlet-config' interceptor added to it.
@see webworkaction-default.xml
@see com.opensymphony.webwork.interceptor.ServletResponseAware
@see com.opensymphony.webwork.interceptor.ServletConfigInterceptor