Hello,

I haven't been able to figure this out after spending 3 hours on
Google.

I can fetch an image, but I don't know where to put them.
If I just use "new File("image.jpg")", it will end up in my tomcat
bin/ folder.

Some sugggests to use getServletContext().getRealPath("/"); but it
would block forever at "getServletContext", I don't know why.

What should I do so it will be part of the war, thus clients can
access it via "http://path.to/appname/images/someimage.jpg";?

What is the best practice on this?

Thank you so much.
Sam

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to