[jboss-user] [JBoss Portal] - Re: File locations

louise_za do-not-reply at jboss.com
Wed Jul 12 03:43:42 EDT 2006


If you want to keep you images out of the portal sar then you can do the following:

In your WebContent directory of your war/web app (or the directory where your WEB_INF dir is located), make an 'images' directory and put all your images in there.

Then, in your jsp you can get to those images using code similar to this, assuming you have an image named myimage.jpg in the images directory:

  | <IMG SRC="<%= response.encodeURL(renderRequest.getContextPath() + "/images/") %>myimage.jpg">

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3957258#3957258

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3957258



More information about the jboss-user mailing list