[EMAIL PROTECTED] wrote:

> I've spent most of this afternoon getting a struts app to work on WebSphere
> 3.5.2.
>
> The bottom line is that even under "Servlet 2.2/JSP 1.1 Compliance mode".
> getServletContext().getResourceAsStream() will fail and return null.
>
> I've worked around this getServletContext().getRealPath() and this works. I
> will try to raise this through our official IBM channels.
>
> The relevant section of the servlet spec appears to be 4.4.
>
> Can anyone else (Craig?) confirm that this is indeed a bug in the
> container, and getResource or getResourceAsStream are required for 2.2
> compliance?
>

Yes, ServletContext.getResource() and ServletContext.getResourceAsStream() are
required to operate as described in the Servlet 2.2 specification and
associated Javadocs.

> --
> dIon Gillard, Multitask Consulting
> Work:      http://www.multitask.com.au
> NetRexx: http://www.multitask.com.au/NetRexx.nsf

Craig


Reply via email to