... or even 22 characters shorter:
src="<%=request.getContextPath()%>//images/mytarget.png"
:-)
Regards,
Hans
Thomas Gaudin wrote:
Maybe you can try
src="#{facesContext.externalContext.requestContextPath}/images/mytarget.png"
Hope it helps,
Thomas
Hendrik Neumann a écrit :
Hi List,
I'm currently developing a JSF-components which renders SVG-images:
<svg:rasterizer src="mySrc.svg"
target="mytarget.png"
type="PNG"
styleClass="myCssClass"
style="background-color:gray;"
width="50"
height="100"
alt="alt text"
allowZoom="true"
allowVerticalResize="true"
allowHorizontalResize="true"
/>
But of course I want to use relative paths for src and target. So I
need to add the full path to the webapplication to src and target. But
how can I obtain this information?
--
Mit freundlichen Grüßen / Greetings,
Hendrik Neumann; Ruhr-University of Bochum
---------------------------------------------------------------------------------------
Wanadoo vous informe que cet e-mail a ete controle par l'anti-virus
mail. Aucun virus connu a ce jour par nos services n'a ete detecte.
--
Mit freundlichen Grüßen,
------------------------------
Hansjörg Meuschel
Martin-Treu-Str. 40
90403 Nürnberg
Tel. +49 (0)911 274 278 1
mobil: +49 (1)60 725 3479
mail: [EMAIL PROTECTED]
http://www.meuschel.net