struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Simon Kelly" <>
Subject Re: Pointing to resources within the struts app client side.
Date Tue, 18 Feb 2003 16:00:08 GMT

Tried several paths descriptions for the graphics directory and the
following did nothing

but these gave the following error


18-Feb-2003 16:55:57 org.apache.struts.action.RequestProcessor process
INFO: Processing a 'GET' for path '/graphics/FZKIcon.bmp'
18-Feb-2003 16:55:57 org.apache.struts.action.RequestProcessor
SEVERE: Invalid path /graphics/FZKIcon.bmp was requested

Any thoughts?



----- Original Message -----
From: "Wendy Smoak" <>
To: "'Struts Users Mailing List'" <>
Sent: Tuesday, February 18, 2003 4:04 PM
Subject: RE: Pointing to resources within the struts app client side.

> Simon wrote:
> > I'm trying to place an image with my web page that is stored as a
> > within my struts web-app.  I'm using xslt to create the output html, but
> > can't work out how to point at the image correctly.  I had put
> > src="/WEB-INF/classes/resources/graphics/icon.bmp", but this will not
> > display iether the image or the alt description.  Anyone have a clue how
> > can do this?
> Images are loaded by the browser in a separate request, they don't come
> the pipe with the HTML.  So you have to put those images in a place where
> normal browser request can find them, and that's going to be above
> Try making an 'images' directory off of the root of your webapp.  I'm not
> sure why the alt text isn't appearing, though... can you post the JSP
> using to generate the image tag and the resulting HTML?
> --
> Wendy Smoak
> Applications Systems Analyst, Sr.
> Arizona State University PA Information Resources Management

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message