Hi,

using Struts 1.0, I added David Winterfeldts Validation framework and
got better error-message-tags as a side-dish (for free).

Try it. With David's Tags you can specify the errors you want to show
better..

hope this helps
Alexander Jesse

-----Original Message-----
From: Michael Sabitov [mailto:[EMAIL PROTECTED]]
Sent: Saturday, December 29, 2001 12:24 AM
To: 'Struts Users Mailing List'
Subject: RE: Error Tag Usage - Found the answer myself - I think


Hello!

I wanted to use errors tag in the following scenario: if there was an error
in the specific input control I'd like to change some properties of the
label for that control (for example change text color to red). In addition I
wanted to display standard list of errors in the beginning of the page. As
far as I understand it is impossible to do it using just errors tag. Has
anybody solved this problem using Struts?

Thank you,
Michael.

-----Original Message-----
From: Danny Collins [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 28, 2001 2:21 PM
To: 'Struts Users Mailing List'
Subject: RE: Error Tag Usage - Found the answer myself - I think


Your off just a little bit, Struts automatically checks for the
existence of the header and the footer. So if it's in the properties
file it will use them. So if you don't want to use the header and the
footer take them out of the properties file.

HTH
Danny

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] 
Sent: Friday, December 28, 2001 4:58 PM
To: Struts Users Mailing List
Subject: Re: Error Tag Usage - Found the answer myself - I think



I found this in the release notes for 1.0.1:

"The <html:errors> when the property tag is specified, errors are no
longer
printed if the specified property has no errors. Previously errors were
always
printed! Future enhancements would include additional attributes to
always turn
off the header or footer. "

It appears to me that I cannot use the errors tag in the way that I have
described.  I am still unclear about header and footer in Struts 1.0.1

Can anyone elaborate on the correct usage?  Is there a date for 1.0.1?

Thanks.





[EMAIL PROTECTED] on 12/28/2001 02:36:33 PM

Please respond to "Struts Users Mailing List"
<[EMAIL PROTECTED]>

To:   [EMAIL PROTECTED]
cc:

Subject:  Error Tag Usage




Greetings:
    I apologize if this has been answered before...

    When I use the error tag to display the LIST of errors it works as
expected
along with the header an footer that I have in my properties file.

    However when I choose not to display the list, but instead just
place a
single error message beside an input control
              ie: <html:errors property="legalName" />  I expect to get
just
the message (if any) for that field.


    The output shows the single error for legalName but includes the
header and
footer.

    Do I have an error in my thinking?

thanks.



--
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]>

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

Reply via email to