Wrap output of struts2 ServletDispatcherResult ?

Posted by krosenvold on Stack Overflow See other posts from Stack Overflow or by krosenvold
Published on 2010-03-23T20:11:42Z Indexed on 2010/03/23 20:13 UTC
Read the original article Hit count: 325

Filed under:
|

I'd like to do much the same thing as the Struts2 sitemesh servlet-filter does, i.e. wrap the output of an action with some chosen content. The "problem" with the sitemesh approach is that it AFIK it does not have any relationship to the ActionInvocation, and I would like to be able to query information from the ActionInvocation when determining which content to add.

I have looked through the ServletDispatcherResult, and I'm not entirly sure what's the best way to achieve this. Any suggestions ?

© Stack Overflow or respective owner

Related posts about struts2

Related posts about java