I think you may have misunderstood the problem.  ".do" IS triggered, but the
Struts mapping object registered under the "path" may not be found.  In
other words consider:

"/charts/display.do"
"/news/display.do
"/events/outdoors/display.do"

I want ANY occurence of  "display.do" in the path to trigger a particular
mapping



----- Original Message -----
From: "Craig R. McClanahan" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; "Jonathan" <[EMAIL PROTECTED]>
Sent: Wednesday, July 18, 2001 1:29 AM
Subject: Re: requirements for path triggering actions


>
>
> 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
>
>
>

Reply via email to