That was true with the html:errors tag, but not with the newer
html:messages tag. With the messages, tag the errors.header and .footer
are optional, so can do things like this:

<logic:messagesPresent>
<TABLE width="100%">
<TR><TD class="message">
   <UL>
   <html:messages id="error">
      <LI><bean:write name="error"/></LI>
   </html:messages>
   </UL>
</TD></TR>
</TABLE>
</logic:messagesPresent>


JC wrote:
> 
> Hi,
> A great thing with Struts is the error validation
> capabilities. However, the use of <html:errors/>, or
> lately <html:messages>, poses a problem that I found
> not to be a very good design (though it is slightly
> better in the messages tag).
> 
> What I don't like is, in order to get any presentation
> formatting on the header and footer, you need to enter
> html in the resources and therefore mixing up data and
> presentation.
> 
> An example where this apply is that we have an i18n
> utility where the administrator for each country can
> translate all messages from a default language into
> their local language and for the messages headers and
> footers they have to see the html as well.
> 
> Has anyone thought of this before?
> 
> /Johannes
> 
> _____________________________________________________
> Hitta sn�rapporter...
> fr�n 500 olika skidorter i Europa
> p� http://se.snow.yahoo.com
> 
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Java Web Development with Struts.
-- Tel +1 585 737-3463.
-- Web http://www.husted.com/struts/

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to