You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Laurie Harper <la...@holoweb.net> on 2005/08/05 20:02:17 UTC

Re: Using XHTML and no form name tag

Titi Wangsa wrote:
> i'm havig problem with struts.
> i'm using 1.2.7 and i'm using the validator plug-in
> the problem is when i'm using html:javascript forname=
> 
> the name attribiute for form
> <form name="">
> is not rendered when <html:html xhtml="true">
> 
> however when only <html:html> is specified, without turning on the
> xhtml feature,
> the <form name=""> tag is rendered.
> 
> the question is, how to use the <html:javascript>
> feature for client side validation when using <html:html xhtml="true"

A very quick look at the code for the form tag suggests that xhtml=true 
should make no difference to whether the name attribute gets generated. Are 
you sure that's the only thing different between working and not working?

Or did you mean the entire 'form' tag doesn't show up in the HTML if you 
include xhtml=true?

L.
-- 
Laurie, Open Source advocate, Java geek and novice blogger:
http://www.holoweb.net/laurie


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Using XHTML and no form name tag

Posted by Niall Pemberton <ni...@blueyonder.co.uk>.
Titi is correct - this is an issue introduced in Struts 1.2.7 - it is
mentioned in the upgrade notes....

http://wiki.apache.org/struts/StrutsUpgradeNotes124to127

...but to recap here the change for Bug 34027 caused this problem and it has
been reported in Bug 35127

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

Niall

----- Original Message ----- 
From: "Laurie Harper" <la...@holoweb.net>
Sent: Friday, August 05, 2005 7:02 PM


> Titi Wangsa wrote:
> > i'm havig problem with struts.
> > i'm using 1.2.7 and i'm using the validator plug-in
> > the problem is when i'm using html:javascript forname=
> >
> > the name attribiute for form
> > <form name="">
> > is not rendered when <html:html xhtml="true">
> >
> > however when only <html:html> is specified, without turning on the
> > xhtml feature,
> > the <form name=""> tag is rendered.
> >
> > the question is, how to use the <html:javascript>
> > feature for client side validation when using <html:html xhtml="true"
>
> A very quick look at the code for the form tag suggests that xhtml=true
> should make no difference to whether the name attribute gets generated.
Are
> you sure that's the only thing different between working and not working?
>
> Or did you mean the entire 'form' tag doesn't show up in the HTML if you
> include xhtml=true?



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org