struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter.Kel...@meteoswiss.ch
Subject dynamic paths to images
Date Thu, 05 Jun 2003 14:39:15 GMT
I have to generate dynamic paths to images (depending on the date). My jsp scriplet looks like
this:

<bean:define id="imagePath" name="imageProvider" property="path"/>
<img src='<%=request.getContextPath()%><bean:write name="imagePath"/>'>

where 'imageProvider' is an attribute in session scope with a property 'path'.

It works, however it is not very elegant. Who knows a nicer solution? Thanks.

Peter





---------------------------------------------------------------------
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