On Tuesday, January 24, 2012 7:43:28 PM UTC+1, Joshua Carey wrote: > > Hi Thomas, > > I finally got it to work. You were correct in that once I put the images > as part of the war file and "NOT" in the WEB-INF, it worked correctly. > Although our JAVA guy here is insisting WEB-INF is the place it needs to > be. I'm assuming it is a GWT thing that doesn't allow reading files from > WEB-INF
No, it's a Java thing. Point your "Java guy" to the servlet spec: http://jcp.org/en/jsr/detail?id=154 EXCERPT FROM SECTION SRV.9.5 (from “Java™ Servlet Specification Version 2.5 MR6”) A special directory exists within the application hierarchy named “WEB-INF”. This directory contains all things related to the application that aren’t in the document root of the application. The WEB-INF node is not part of the public document tree of the application. No file contained in the WEB-INF directory may be served directly to a client by the container. However, the contents of the WEB- INF directory are visible to servlet code using the getResource and getResource- AsStream method calls on the ServletContext, and may be exposed using the RequestDispatcher calls. Hence, if the Application Developer needs access, from servlet code, to application specific configuration information that he does not wish to be exposed directly to the Web client, he may place it under this directory. Since requests are matched to resource mappings in a case-sensitive manner, client requests for ‘/WEB-INF/foo’, ‘/WEb-iNf/foo’, for example, should not result in contents of the Web application located under /WEB-INF being returned, nor any form of directory listing thereof. END OF EXCERPT > but in any event, I got it working so thank you very much. Are we > supposed to mark which people solved our problems and mark them complete on > this site? I am totally new to GWT and this help board. Google Groups is hardly more than a mailing list, with a Web interface, so no, you don't mark as "solved" or things like that. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/EzVivyyoqZEJ. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
