Just to add a bit to the complexity, it would be fairly simple to make the form tag not emit a "name" attribute under some circumstances. However, this would break the client side JavaScript emitted by current versions of the integration with Commons Validator, which rely on the "name" property (rather than the "id" property) to calculate generated method names. That code would need to be changed too.
Craig On Sun, 24 Oct 2004 18:48:47 -0500, Eddie Bush <[EMAIL PROTECTED]> wrote: > There is a bug report open on this. I don't recall the number and I'm > having problems finding it right now ... but it is there! > > So, to answer your question: You're not doing anything wrong, that's just > how it currently works. > > I don't believe Struts is emitting XHTML 1.1, but /name/ is a required > attribute in the /form/ tag according to the XHTML 1.0 Transitional DTD. > > > > ----- Original Message ----- > From: "Nikola Banovic" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Sunday, October 24, 2004 5:32 PM > Subject: How to instruct Struts to output XHTML 1.1? > > > Hello, > > > > I have to output an XHTML 1.1 form using Struts form tag. When I place > > <html:html xhtml="true"></html> and <html:xhtml/> elements in a JSP page, > > a > > generated XHTML page contains form element with a name attribute (which is > > not supported in XHTML 1.1) and input elements without closing tags. > > > > I use Struts 1.2.4. > > > > Can you please let me know if I'm doing something wrong or if there is > > another way to accomplish this? > > > > Thanks. > > > > Nikola > > > > > > > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > --- > avast! Antivirus: Outbound message clean. > Virus Database (VPS): 0443-3, 10/22/2004 > Tested on: 10/24/2004 6:48:48 PM > avast! - copyright (c) 2000-2004 ALWIL Software. > http://www.avast.com > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]