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]



Reply via email to