Use styleId= on the form tag to have it emit an ID attribute. There's not a way to eliminate the name= attribute though - not that I'm aware of.

Eddie

----- Original Message ----- From: "Nikola Banovic" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Sunday, October 24, 2004 8:38 PM
Subject: RE: How to instruct Struts to output XHTML 1.1?



Eddie, Craig and Niall

Thanks for the fast reply! I feel ashamed I didn't take a look at the Apache
bug database first :).


Do you know if there is a workaround for this?

Nikola



-----Original Message-----
From: Niall Pemberton [mailto:[EMAIL PROTECTED]
Sent: Sunday, October 24, 2004 9:23 PM
To: Struts Users Mailing List
Subject: Re: How to instruct Struts to output XHTML 1.1?


http://issues.apache.org/bugzilla/show_bug.cgi?id=15023


----- Original Message ----- From: "Eddie Bush" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Monday, October 25, 2004 12:48 AM Subject: Re: How to instruct Struts to output XHTML 1.1?


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]


--------------------------------------------------------------------- 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 9:01:23 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]



Reply via email to