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 <em...@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-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>

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

Reply via email to