struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
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

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


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

View raw message