Rengasami Ramanujam
Rengasami Ramanujam

Reputation: 1878

Filter only for JSPs under a sub directory

I have a set of JSPs under a folder called test and my web content root is app. I would like to set up a filter only for those JSPs under test. I tried using the filter url pattern

/app/test/*

and

/*test/*

Both are not triggering teh filter. Can someone help me in getting the question resolved?

Upvotes: 1

Views: 237

Answers (1)

BalusC
BalusC

Reputation: 1108722

The URL pattern should not contain the context root. It's already relative to the context root.

Use /test/*.

<url-pattern>/test/*</url-pattern>

Upvotes: 1

Related Questions