So what you are looking to do is to display text with a different style 
if it is an error?


<logic:messagesPresent>
<font color="Red"><html:errors/></font>
</logic:messagesPresent>

<logic:messagesPresent message="true">
<html:messages id="message" message="true" header="message.bullet">
<bean:write name="message"/>
</html:messages>
</logic:messagesPresent>

I am too familiar with setting an error to a specific field though...  
maybe thats what you are looking for?


-----Original Message-----
From: reigenheer [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 16, 2002 9:45 AM
To: struts-user
Subject: RE: html:errors


once I wished to have a possibility like this:

<html:text styleClass="input" errorStyleClass="errorInput"
property="field1"/>

I wished struts could (based on the action errors set) which field has 
an
error and which not




> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]
> Sent: Dienstag, 16. Juli 2002 15:40
> To: [EMAIL PROTECTED]
> Subject: RE: html:errors
>
>
>
> Maybe I am misunderstanding you, but the tags I put in below exist
> already (the sample is right out of a working jsp page)
>
>
>
>
> -----Original Message-----
> From: Jan.Vervecken [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, July 16, 2002 9:27 AM
> To: struts-user
> Subject: RE: html:errors
>
>
> Something like this would make Struts more MVC-like I think, more
> flexible toward graphical design.
>
> Has anyone implemented tags that allow for this approach, or is it
> possible with existing Struts tags?
>
> tnx
> -Jan
>
> >>> [EMAIL PROTECTED] 11-07-02 16:37 >>>
>
> Like so?
>
> <logic:messagesPresent>
> <font color="Red"><html:errors/></font>
> </logic:messagesPresent>
>
>
>
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
>
>
>
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
>
>


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



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

Reply via email to