Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

html:errors - do not want >ul< tags in HTML

 
pendse anagha
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 81
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 124
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic