JSP Tags use a XML style syntax, so you can't use a tag as attribute of
another tag.
<bean:define can help you, as it creates a script variable :
<bean:define id="imageSrc" scope="application" name="myImage"/>
<html:image property="submit" src="<%= imageSrc %>"/>
Nico.
> <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]>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>