This week's book giveaway is in the Performance forum. We're giving away four copies of The Java Performance Companion and have Charlie Hunt, Monica Beckwith, Poonam Parhar, & Bengt Rutisson on-line! See this thread for details.
Struts 2 form element generation - spurious name attribute screwing up xhtml validation
posted 6 years ago
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