File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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

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 ,
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:


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 ]
subject: html:errors - do not want &gt;ul&lt; tags in HTML
It's not a secret anymore!