users@glassfish.java.net

Re: where to place images in application using glassfish

From: Hassan Schroeder <hassan.schroeder_at_gmail.com>
Date: Tue, 22 Sep 2009 11:59:27 -0700

On Tue, Sep 22, 2009 at 11:35 AM, Eve Pokua <gorgeous65_at_msn.com> wrote:

> Tomcat works differently to glassfish tough

Not really; Glassfish is based on Tomcat and they both implement
the Servlet Spec.

> Some body suggested placing in tomcat\Work\tomcat\ROOT\images
> images being the folder containing the images

Placing your images directory in the root of the application's directory
will work fine in either server. That's the way pretty much everyone
does it, unless the application requires authentication to view those
resources.

>> <img src="../images/${bpic}"/>

Again, the ".." is a bad idea though.

HTH,
-- 
Hassan Schroeder ------------------------ hassan.schroeder_at_gmail.com
twitter: @hassan