Suresh,
Including a tag inside another tag is not permitted. Its not a Struts
problem but an XML parsing limitation.
You might want to try either JSTL or Struts-EL. Dunno Struts-EL but JSTL
works fine.
Your code would become something like :
<html:image property="submit" src="${myImage}" />more on JSTL : http://java.sun.com/products/jsp/jstl/ c u, olivier -----Message d'origine----- De : Suresh Addagalla [mailto:[EMAIL PROTECTED]] Envoye : vendredi 24 janvier 2003 08:11 A : [EMAIL PROTECTED] Objet : Tag as an attribute Hi, Is the following a valid struts tag? <html:image property="submit" src="<bean:write scope="application" name="myImage"/>"/> I am getting an error. What's the way to achieve this without using a scriptlet? I have a temporary fix: <% String image=(String)pageContext.getAttribute("myImage", pageContext.APPLICATION_SCOPE) ; %> <html:image property="submit" src="<%= image %>"/> Thanks, Suresh -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

