Pinned topic struts2 and dynacache
Answered question This question has been answered.
Unanswered question This question has not been answered yet.
How can dynacache be used for a struts2 application? Since struts2 uses a filter as opposed to a servlet in struts1, the cachespec.xml entries for my struts actions don't seem to have any effect. Any help much appreciated.
Updated on 2013-02-12T16:29:46Z at 2013-02-12T16:29:46Z by wcrookie
Re: struts2 and dynacache2013-02-12T14:57:46ZThis is the accepted answer. This is the accepted answer.I'll need to do both, full page caching and fragment caching.
How it's structured is I have a struts action 'View' which renders different pages depending on the parameters passed in to the view.
Re: struts2 and dynacache2013-02-12T15:05:02ZThis is the accepted answer. This is the accepted answer.
- wcrookie 270002C52Y
Have you set the custom property com.ibm.ws.webcontainer.invokefilterscompatibility? This should allow you to cache some stuff based on the filter. It may not always work, but if you caching an entire page, like mypage.jsp, that can be added directly in the cachespec.xml.