Hi all!
I need to render an image to put in a report and the image is in the war file.
The structure:
app.ear
----> web.war
-----> /img/image.gif
How can I know the path to access the file?
Greeting,
Zuvirandu
Hi, all...
I did it!
In a servlet I put:
public void init() throws ServletException { String path = null; path = this.getServletContext().getRealPath("/image/"); Tools.IMAGEM_URL = "file:/" + path + "/"; super.init(); }