struts-user mailing list archives

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

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

http://127.0.0.1:8080/katrin/graphics/FZKIcon.bmp
../graphics/FZKIcon.bmp

but these gave the following error

graphics/FZKIcon.bmp
/graphics/FZKIcon.bmp

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
processMapping
SEVERE: Invalid path /graphics/FZKIcon.bmp was requested

Any thoughts?

Cheers

Simon


----- Original Message -----
From: "Wendy Smoak" <Wendy.Smoak@asu.edu>
To: "'Struts Users Mailing List'" <struts-user@jakarta.apache.org>
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
resource
> > 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
I
> > can do this?
>
> Images are loaded by the browser in a separate request, they don't come
down
> the pipe with the HTML.  So you have to put those images in a place where
a
> normal browser request can find them, and that's going to be above
WEB-INF.
>
> 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
you're
> 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: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Mime
View raw message