Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • 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

Struts 2 form element generation - spurious name attribute screwing up xhtml validation

 
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm using Struts 2 and have a problem with the way it generates HTML. It seems to insist on
sticking in a name attribute in the generated form tag, whether I ask for it or not.
This is screwing up some tests I have to use that validate against XHTML 1.0. I've looked
at the form.ftl defintion in in the struts core jar (version 2.0.14) and it doesn't seem
to be responsible for this (it simply looks for a 'name' parameter, and generates a
name attribute if it exists). So I can't get rid of this by simply overriding the form
template.

Anyone have any idea of what might be going on?

Cheers.
 
reply
    Bookmark Topic Watch Topic
  • New Topic