struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Craig R. McClanahan" <Craig.McClana...@eng.sun.com>
Subject Re: Struts and WebSphere Appserver 3.5.2
Date Tue, 06 Feb 2001 18:01:06 GMT
dion@multitask.com.au 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



Mime
View raw message