> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, August 31, 2002 9:26 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Any way to import file as a resource?
> 
> 
> >>>>> "David" == David M Karr <[EMAIL PROTECTED]> writes:
> 
> >>>>> "Martin" == Martin Cooper <[EMAIL PROTECTED]> writes:
>     Martin> I'm not sure why you say <c:import> won't work. 
> You can do this, which I
>     Martin> think is what you want:
> 
>     Martin> <c:import var="xml" url="/WEB-INF/web.xml"/>
> 
>     David> Hmm.  That wasn't working.  The resulting variable 
> was empty.  I guess I'll
>     David> have to track it in the debugger.  I don't see 
> what could be wrong.
> 
> After tracking the "c:import of "/WEB-INF/web.xml", I don't 
> see why I didn't
> get anything.  However, I did try adding imports of several 
> other files, to see
> whether they worked or not:
> 
> /thing.xml:                     Worked
> /dir/thing2.xml:                Worked
> /WEB-INF/anotherThing.xml:      Failed
> /WEB-INF/struts-config.xml:     Failed
> 
> Is this related to the restriction against directly serving 
> files in the
> WEB-INF directory?  I had no problem getting 
> "/WEB-INF/web.xml" with the
> bean:resource Struts tag.  All of these tests are running in TC 4.0.4.

This looks like a bug in Tomcat 4.0.4. I've now tested the JSP code I posted
in Resin 2.1.4 with fast JSTL (i.e. Resin's own implementation) and regular
JSTL (i.e. the Jakarta Taglibs implementation), and in Tomcat 4.0.4 and
Tomcat 4.1.10. The only one that failed was Tomcat 4.0.4.

Looks like time to upgrade! ;-)

--
Martin Cooper


> 
> -- 
> ===================================================================
> David M. Karr          ; Java/J2EE/XML/Unix/C++
> [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