dcsimg
More control with <html:errors/>
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   John_Crossman
Posted On:   Wednesday, February 6, 2002 01:54 PM

I know you can specify header and footer in the prop file, but what if different pages have different needs in terms of displaying errors. E.g., In some cases its a list and in others I want sentences strung together with no header.

What if I want to list out errors but don't want to user

			
    ...
?

Are there code examples of how to use the


		more extensively than currently described in the documentation?
	

Re: More control with <html:errors/>

Posted By:   Ted_Husted  
Posted On:   Tuesday, February 12, 2002 05:02 PM

The message tag in the nightly build offers more flexibility


This might also be available in the Struts Validator library


The other alternative is leave the errors header and footer
blank, so you can add the HTML yourself.


To test for the presence of error messages in Struts 1.0.x,
you can use




And then wrap (or not wrap) the messages with markup


To retrieve individual messages, you can specify the
property in the html:error tag.


But, the new messages tag really does a much better job of this.


HTH -Ted

About | Sitemap | Contact