Hi All,
I have a problem here..I include a
jsp file using <%@include file="/inc/navigationLinks.jsp"%> in another jsp.Now this navigationLinks.jsp is something like a banner which would appear on every jsp.
Now the problem is :
Firstly I want to use a cacheing filter which would store this navigationLinks.jsp in the cache for say 1hr. I have tried the below mapping in web.xml
<filter-mapping>
<filter-name>CacheFilter</filter-name>
<url-pattern>/inc/navigationLinks.jsp</url-pattern>
<dispatcher>INCLUDE</dispatcher>
</filter-mapping>
This does not work.The filter does not get called.
I have tried using the runtime include ie <jsp:include page="/inc/navigationLinks.jsp"/> .Then the filter does get called,but unfortunately as I use <bean:message> and <html:link> in the navigationLinks.jsp, I cannot use the runtime compile.
I want to use the compile time include and the filter @ the same time.. Somebody please help..
Thanks & Regards
Anirban Chowdhury