Hi all,

I'm having a bit of a problem accessing anything in directories on the same
level as WEB-INF/.  I am using xslt instead of the jsp to give the html to
the client side, with my own XSLServlet to amalgamate the xslt with the xml.
I have been looking through the jsp tutorials, and I have a copy of
"Programming Jakarta Struts" (Which is taking a bit of a hammering this
week) to work out how to access the images in the graphics/ directory on the
same tier as WEB-INF.

I have tried (and failed) with all of the following

src="../graphics/icon.bmp"
src="..\graphics\icon.bmp"
scr="graphics/icon.bmp"
src="/graphics/icon.bmp"

the last two give the following severe error

19-Feb-2003 10:20:33 org.apache.struts.action.RequestProcessor process
INFO: Processing a 'GET' for path '/graphics/FZKIcon.gif'
19-Feb-2003 10:20:33 org.apache.struts.action.RequestProcessor
processMapping
SEVERE: Invalid path /graphics/FZKIcon.gif was requested

(Notice in the SEVERE line that the leading / is there for both cases)

in jsp (from Programming JS) the lines used are either

src="graphics/icon.bmp" or
<html:img srcKey="graphics.icon" ...... /> with graphics.icon set as
"graphics/icon.bmp"

My main question is, are there any tag libraries of xslt within struts to
handle html/xhtml outputting?
Secondly, why would the leading / in the image path be placed there and
cause the problems?

Kind regards,

Simon

Institut fuer
Prozessdatenverarbeitung
und Elektronik,
Forschungszentrum Karlsruhe GmbH,
Postfach 3640,
D-76021 Karlsruhe,
Germany.

Tel: (+49)/7247 82-4042
E-mail : [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to