Howdy,
You can access <init-param> parameters any time, not just during
initialization.  The same is true for <context-param> parameters.

As for including parameters in <url-pattern> elements, that doesn't make
much sense.  URL patterns are interpreted by the container for mapping
purposes using a very specific, well defined algorithm.  You shouldn't
use them for anything except mapping of requests to resources.  You
shouldn't use them to indicate how the resources should function, e.g.
what the resources should do.

Yoav Shapira
Millennium ChemInformatics


>-----Original Message-----
>From: Greg Speechley [mailto:[EMAIL PROTECTED]
>Sent: Monday, March 10, 2003 1:29 AM
>To: Tomcat User
>Subject: Re: Servlet Mapping with parameters
>
>I was wondering whether it is possible to map parameters to a url
besides
>using <init-param> in web.xml because I want it to be during normal
>operation not just when the servlet is initialised eg
>http://server.mycompany.com/something instead of
>http://server.mycompany.com/ServletName?task=2 . I have already played
>around with server.xml and web.xml to make the urls a bit more user
>friendly
>:)
>
>Cheers
>Greg Speechley
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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

Reply via email to