struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Burton Rhodes <burtonrho...@gmail.com>
Subject Re: How to allow <s:submit> to accept dynamic src image file?
Date Mon, 30 May 2011 16:35:03 GMT
You can override the freemarker template to do this. It's fairly easy.
Just look for the submit tpl file, copy it a templates dir, and modify
it to accept 'src' parameter. There are examples of how to override
struts templates by googling it.

On Monday, May 30, 2011, Emi Lu <emilu@encs.concordia.ca> wrote:
> Hello list,
>
> A question about <s:submit> in struts2.2.3
>
>
> Icon is dynamic:
>
> <%
>  String pdf_icon= request.getContextPath() + "/img/pdficon.png" ;
> %>
>
> <s:submit type="image" src="<%= pdf_icon%>" action="preview_pdfProcessAction"
/>
>
> But <s:submit> does not support src = "<%%>"
>
> Is there a way, can make s:submit accept dynamic src image location?
>
> Thanks a lot!
> Emi
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message