This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Soft Skills and have John Sonmez on-line!
See this thread for details.
The moose likes Struts and the fly likes html:errors - do not want >ul< tags in HTML Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "html:errors - do not want &gt;ul&lt; tags in HTML" Watch "html:errors - do not want &gt;ul&lt; tags in HTML" New topic
Author

html:errors - do not want &gt;ul&lt; tags in HTML

pendse anagha
Ranch Hand

Joined: Mar 09, 2005
Posts: 44
Hello ,
I am using the errors tag to iterate over the errors - which I need to display
on UI

I am using the following code :


The output that I get is something like this :



I do not want the <ul> tags - since the UI is getting messed up

Can anyone please suggest a solution ?

Thanks in advance ,
-anagha
Steve McCann
Ranch Hand

Joined: Oct 20, 2004
Posts: 81
Check your <message-resources> file specified in struts-config.xml. You can set the way the messages are displayed using the following keys:

errors.prefix
errors.suffix
errors.header
errors.footer

Steve
A Harry
Ranch Hand

Joined: Jan 23, 2002
Posts: 124
just noticed one problem, if this copied directly from your live code?

>td class="BodyToolboxHeader" vlign="middle">

should be

<td class="BodyToolboxHeader" valign="middle">

wrong starting tag & misspelt valign!
[ October 31, 2005: Message edited by: A Harry ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: html:errors - do not want &gt;ul&lt; tags in HTML