• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 81
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 124
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic