> Most likely you have not defined any special applications and therefore
> use the default context, with the context root "" (empty string). If so,
> the first example gives you an RD for the URI /member/info.jsp, but the
> second fails with a NullPointerException since getContext("/member")
> returns null (there's no application with context root /member).
>
> All of this should be described in the Servlet 2.2 specification.
Not quite, he'd get the default (root) context, getContext("/path") returns the
context which an URI is a part of (ie never null except for security reasons).
The second part of his statement would return null though if there's no resource
associated with that URI (file or servlet/other-mapping).

Have a nice day! :)

/Magnus Stenman, the Orion team
Orion Application Server - http://www.orionserver.com

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html

Reply via email to