Hello adi,

You are close.

Try this:

<servlet-mapping>
    <servlet-name>default1</servlet-name>
    <url-pattern>/admin/*</url-pattern>
</servlet-mapping>

Now if you go to something like:

http://localhost:8080/mycontext/admin/this/will/show/up/as/path/info/to/this/document.txt

if you call HttpServletRequest#getPathInfo() it will return:
"/this/will/show/up/as/path/info/to/this/document.txt"

Or you can do HttpServletRequest#getPathTranslated() which returns the
system path to the file (assuming it exists).

Jake


Thursday, September 19, 2002, 7:50:34 AM, you wrote:

a> Hello,

a> Does anybody know the valid url patterns for servlet mappings?

a> is there a pattern for all subdirectories of a certain directory?

a> something like: 
a>  <servlet-mapping>
a>     <servlet-name>default1</servlet-name>
a>     <url-pattern>/admin/**/</url-pattern>
a>   </servlet-mapping>

a> Thanks,
a> Adi
a> ---
a> Outgoing mail is certified Virus Free.
a> Checked by AVG anti-virus system (http://www.grisoft.com).
a> Version: 6.0.372 / Virus Database: 207 - Release Date: 6/20/2002


a> --
a> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
a> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>



-- 
Best regards,
 Jacob                            mailto:[EMAIL PROTECTED]


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

Reply via email to