On Mon, 9 Jul 2001, Jonathan wrote:
> Can someone tell me if there is a way to configure an action to match
> a path regardless of how deep it is in a directory? That is, I want
> "/display.do" to be triggered in each case below:
>
> "/charts/display.do"
> "/news/display.do
> "/events/outdoors/display.do"
>
> How can I accomplish this?
>
The Servlet 2.2 (or 2.3) spec defines all the legal forms of
<servlet-mapping> patterns, and can be downloaded at:
http://java.sun.com/products/servlet/download.html
For your purposes, you will find that the "*.do" pattern does indeed match
all of the above. The corresponding action paths should be
"/charts/display", "/news/display", and "/events/outdoors/display".
Craig McClanahan