Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

url-pattern tag in web.xml

bobxuJul 29 2008 — edited Jul 30 2008
Hi 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>
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 27 2008
Added on Jul 29 2008
10 comments
187 views