url-pattern tag in web.xml
bobxuJul 29 2008 — edited Jul 30 2008Hi everyone,
I need to assign preclude and coda for every JSP page in my web app EXCEPT the ones under template directory.
I tried to do it in the following xml code, it didn't work.
So how to do that? Thanks!
<jsp-config>
<jsp-property-group>
<display-name>bg2</display-name>
<url-pattern>/template/*</url-pattern>
<include-prelude>/template/blank.jspf</include-prelude>
<include-coda>/template/blank.jspf</include-coda>
</jsp-property-group>
<jsp-property-group>
<display-name>bg</display-name>
<url-pattern>/*</url-pattern>
<include-prelude>/template/prelude.jspf</include-prelude>
<include-coda>/template/coda.jspf</include-coda>
</jsp-property-group>
</jsp-config>