I hope they hurry up and do it... it's not that big of a change and it would
make life much easier..  for that matter it really annoys me how when your
extension mapping, say *.do for struts, the servlet strips what you
extension mapped off when it sends it to the servlet.  IE if you matched
/actions/blah.do with a *.do mapping, struts only gets /actions/blah to
match by..
-David

----- Original Message ----- 
From: "Daniel Gibby" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, February 25, 2004 6:54 AM
Subject: Re: Servlet-Mapping Question, recursive capable?


> I'm just predicting the future, and I think eventually the ** convention
> will be adopted in many systems and specs. I'm kinda going off topic, so
> sorry.
>
> dangby
>
> Tim Funk wrote:
>
> > The mapping rules are dictated by the servlet spec. Its not tomcat
> > specific.
> >
> > -Tim
> >
> > Daniel Gibby wrote:
> >
> >> Too bad though. I really like ant's recursive matching capabilities.
> >> I think that eventually a 'rebash' shell will be written that
> >> supports ** as recursive so that
> >> grep catalina **/docs/*.java
> >> would look for only java files in a subdirectory somewhere named docs
> >> with the text catalina in it. How nice would that be!
> >>
> >> Then apache and tomcat will decide on supporting this as well...
> >>
> >> Daniel Gibby
> >>
> >> Tim Funk wrote:
> >>
> >>> No. You can prefix match or file extension match, but not both at
> >>> the same time.
> >>>
> >>> -Tim
> >>>
> >>> David Erickson wrote:
> >>>
> >>>> Hi I would like to do something like:
> >>>> <servlet-mapping>
> >>>>
> >>>> <servlet-name>action</servlet-name>
> >>>>
> >>>> <url-pattern>/docs/**.pdf</url-pattern>
> >>>>
> >>>> </servlet-mapping>
> >>>>
> >>>>
> >>>>
> >>>> So that anything in the /docs/ folder AND ANY of its subfolders
> >>>> with the
> >>>> .pdf extension gets sent to my action servlet.
> >>>>
> >>>> Is that possible with tomcat 4.1.24?  If not does anybody know the
> >>>> class
> >>>> that matches those things so I can alter it?
> >>>>
> >>>> Thanks!
> >>>>
> >>>> -David
> >>>
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to