struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jim Kiley <>
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.


On Tue, Mar 3, 2009 at 5:53 AM, sajidbigler <> 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
> 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:
> Sent from the Struts - User mailing list archive at
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

Jim Kiley
Technical Consultant | Summa
[p] 412.258.3346 [m] 412.445.1729

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