I have an app that I'm slowly converting to GWT.  We have some icons
located in the "/images" directory.  When I want to test the app
locally, I run it as a WAR under Jetty using the Maven Jetty plugin. 
(jetty:run-war).  Referencing images is simple.  For instance:

<img src="/images/status.png"/>

works great!  Now, I take that same WAR and drop it into Tomcat.  The
image does not show up.  In other places, I see where the images do show
up, but in those cases the image is always referenced with the
application context as the root directory:

<img src="/context/images/status.png"/>

Of course, these other places are part of the old-style UI written with
Struts.  I suppose my question could be one of two different questions:

1) How can I make Tomcat behave like I think it should and respect the
"current context" when resolving file paths?
or
2) How can I get to the application context in GWT to pre-pend it to my
file paths?

Thanks,
Dave


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to