struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jim Kiley <jhki...@summa-tech.com>
Subject Re: Struts Themes Problem - help
Date Tue, 03 Mar 2009 13:57:34 GMT
If I am understanding you correctly, your best bet might be to customize the
fielderror.ftl template for a custom theme of your own.  If I were going to
display errors in a custom way more than once, that's what I would do.

Make a "template" directory in the root of your webapp, then make a new
folder that has the name you want to give your template. (Mine is cleverly
named "my".)  Then copy fielderror.ftl out of the struts jar into
webapp/my/fielderror.ftl, then customize the contents of fielderror.ftl.

jk

On Tue, Mar 3, 2009 at 5:53 AM, sajidbigler <sajidbigler@gmail.com> wrote:

>
> As said below is that a only solution or can we set theme=xhtml for
> fielderror tag with in the   form which uses theme= simple.
>
> but we will be rendering error after the filed not the above as xhtml
> does.how can we make it to render it above the field instead below the
> field?
>
> <s:fielderror>
>            <s:param>clientname</s:param>
> </s:fielderror>
> --
> View this message in context:
> http://www.nabble.com/Struts-Themes-Problem---help-tp18054982p22306342.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>


-- 
Jim Kiley
Technical Consultant | Summa
[p] 412.258.3346 [m] 412.445.1729
http://www.summa-tech.com

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message