wood burning stoves 2.0*
The moose likes GWT and the fly likes how to access images outside of GWT war file in jetty server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » GWT
Bookmark "how to access images outside of GWT war file in jetty server" Watch "how to access images outside of GWT war file in jetty server" New topic
Author

how to access images outside of GWT war file in jetty server

hara gourabh
Greenhorn

Joined: Jul 31, 2012
Posts: 2
HI,

Needs some urgent tips if some one might have faced this before :

i am deploying a gwt WAR application in jetty server . in the client gwt classes inside WAR is rendering images . i wanted to keep all the images outside of the WAR file and needs to access images inside my gwt application . The reason being i wanted to keep images outside of WAR files because my images are keep changing for my application , so i wanted to keep put of WAR file .

Does anybody can provide me some tips about how to acccess these external images inside my GWT java classes ?

i am having a feeling like , GWT web application container is bit different from rest J2EE web container ..

Thanks,
Guru
Gary Cristofoli
Greenhorn

Joined: Jan 13, 2006
Posts: 2
I have been trying to do exactly the same thing today and came across this post (coincidentally posted yesterday :-)
I can't believe this is not a common requirement, but I haven't found a solution yet..
Please post back here if you find a solution and so will I.
Johannes Pelzer
Greenhorn

Joined: Aug 20, 2012
Posts: 1
Assuming you put your files in the following locations:

jetty/webapps/root.war
jetty/webapps/files/example.jpg

and your application is accessible on example.com

then you would access example.jpg from your clientside code as following:

relative: "/files/example.jpg"
or absolute: "http://example.com/files/example.jpg"


 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to access images outside of GWT war file in jetty server
 
Similar Threads
How to host a GWT application outside Google App Engine (GAE)
google oauth from swing
Sweet spot of Spring-DM compared to other implementations?
META-INF
OSGi - Embedded Jetty Server - Servlet unable to get reference to Service Tracker