I want my taglib to be able to resolve files relative to the jsp page 
its within. Unfortunately, the servlet-mapping seems to get in the way 
of this. I thought Tim's response was interesting so I tried it but I'm 
getting wierd responses (jndi: contexts) instead of filesystems. I'm 
thinking, is there a way to get at the resources relative to a JSP using 
the JNDI Context?

-Mark





Shawn Bayern wrote:

>Interestingly enough, I'm inclined to think the answer is "no."  Even if
>there's some creative way of doing it that eludes me, you're still not
>even guaranteed to *have* a filesystem at runtime.  So at best, a solution
>would be implementation-specific or container-specific.
>
>What do you need this information for?  There might be another way of
>doing it -- or, at worst, it might be enough to simply add some static,
>context-initialization parameters that supply the information you need.
>
>Shawn
>
>On Wed, 28 Aug 2002, Mark R. Diggory wrote:
>
>  
>
>>I really can't get to the bottom of this one.
>>
>>Is there any way to get to the "TRUE" filesystem location of the JSP 
>>page I am within? Even if the URI is Mapped through ServletMapping like 
>>below? I've tried getRealPath(...) and this is not accurate on the 
>>Tomcat 4.0.3 version I'm currently using.
>>
>>I need to get
>>
>>/var/tomcat4/webapps/Jaxp/JSPTransformExample.jsp (which really exists!)
>>
>>not
>>
>>/var/tomcat4/webapps/Jaxp/MapExample.jsp (which is virtual and doesn't 
>>exist!)
>>
>>    
>>
>>> <servlet>
>>>   <servlet-name>JSPTestMap</servlet-name>
>>>   <jsp-file>/Jaxp/JSPTransformExample.jsp</jsp-file>
>>> </servlet>
>>> <servlet-mapping>
>>>   <servlet-name>JSPTestMap</servlet-name>
>>>   <url-pattern>/Jaxp/MapExample.jsp</url-pattern>
>>> </servlet-mapping>
>>>      
>>>
>>-Mark Diggory
>>
>>
>>
>>--
>>To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
>>For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
>>
>>    
>>
>
>
>--
>To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
>
>  
>




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

Reply via email to