You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Leticia Golubov <lg...@micromuse.com> on 2004/02/24 13:30:09 UTC
Why can't I name a form using html:form?
This is really winding me up...
why does <html:form method="post" action="/scopeAction" > work
but <html:form method="post" action="/scopeAction"
name="deleteForm"
type="org.apache.struts.action.DynaActionForm" >
doesn't?
Why can't I name my forms? I've looked at the documentation and the 'name'
field doesn't even seem to exist, which leads me to believe I can't name
forms using the html:form tag?!
Is this a bug in Struts or have I missed something fundamental here?
regards
Leticia
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
RE: Why can't I name a form using html:form?
Posted by Leticia Golubov <lg...@micromuse.com>.
Thanks Mark,
I stumbled upon the answer to my question by accident, yesterday, which made
me quite happy (must get out more)... :)
cheers
-----Original Message-----
From: Mark Lowe [mailto:mark.lowe@talk21.com]
Sent: 24 February 2004 12:41
To: Struts Users Mailing List
Subject: Re: Why can't I name a form using html:form?
styleId will give you a hook if you need have a way of drilling to
something. But i'm guessing what your needs are.
On 24 Feb 2004, at 13:38, Mark Lowe wrote:
> the name of the form will be whatever you called it in struts config.
> There was a name attribute in 1.0 but this became deprecated and now
> must have been removed.
>
> I imagine that something will be done in newer releases (perhaps
> already) to support strict xhtml and thus do away with rendering
> name="" and use id="" instead or as well as name="".
>
> If you're trying to drill to the form in javascript best use
>
> onclick="alert( this.form.elements['myproperty'].value )" ..
>
> I you look at the rendered html you'll see that the name attribute is
> rendered.
>
>
> On 24 Feb 2004, at 13:30, Leticia Golubov wrote:
>
>> This is really winding me up...
>>
>> why does <html:form method="post" action="/scopeAction" > work
>>
>> but <html:form method="post" action="/scopeAction"
>> name="deleteForm"
>> type="org.apache.struts.action.DynaActionForm" >
>> doesn't?
>>
>> Why can't I name my forms? I've looked at the documentation and the
>> 'name'
>> field doesn't even seem to exist, which leads me to believe I can't
>> name
>> forms using the html:form tag?!
>>
>> Is this a bug in Struts or have I missed something fundamental here?
>>
>> regards
>>
>> Leticia
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
Re: Why can't I name a form using html:form?
Posted by Mark Lowe <ma...@talk21.com>.
styleId will give you a hook if you need have a way of drilling to
something. But i'm guessing what your needs are.
On 24 Feb 2004, at 13:38, Mark Lowe wrote:
> the name of the form will be whatever you called it in struts config.
> There was a name attribute in 1.0 but this became deprecated and now
> must have been removed.
>
> I imagine that something will be done in newer releases (perhaps
> already) to support strict xhtml and thus do away with rendering
> name="" and use id="" instead or as well as name="".
>
> If you're trying to drill to the form in javascript best use
>
> onclick="alert( this.form.elements['myproperty'].value )" ..
>
> I you look at the rendered html you'll see that the name attribute is
> rendered.
>
>
> On 24 Feb 2004, at 13:30, Leticia Golubov wrote:
>
>> This is really winding me up...
>>
>> why does <html:form method="post" action="/scopeAction" > work
>>
>> but <html:form method="post" action="/scopeAction"
>> name="deleteForm"
>> type="org.apache.struts.action.DynaActionForm" >
>> doesn't?
>>
>> Why can't I name my forms? I've looked at the documentation and the
>> 'name'
>> field doesn't even seem to exist, which leads me to believe I can't
>> name
>> forms using the html:form tag?!
>>
>> Is this a bug in Struts or have I missed something fundamental here?
>>
>> regards
>>
>> Leticia
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
Re: Why can't I name a form using html:form?
Posted by Mark Lowe <ma...@talk21.com>.
the name of the form will be whatever you called it in struts config.
There was a name attribute in 1.0 but this became deprecated and now
must have been removed.
I imagine that something will be done in newer releases (perhaps
already) to support strict xhtml and thus do away with rendering
name="" and use id="" instead or as well as name="".
If you're trying to drill to the form in javascript best use
onclick="alert( this.form.elements['myproperty'].value )" ..
I you look at the rendered html you'll see that the name attribute is
rendered.
On 24 Feb 2004, at 13:30, Leticia Golubov wrote:
> This is really winding me up...
>
> why does <html:form method="post" action="/scopeAction" > work
>
> but <html:form method="post" action="/scopeAction"
> name="deleteForm"
> type="org.apache.struts.action.DynaActionForm" >
> doesn't?
>
> Why can't I name my forms? I've looked at the documentation and the
> 'name'
> field doesn't even seem to exist, which leads me to believe I can't
> name
> forms using the html:form tag?!
>
> Is this a bug in Struts or have I missed something fundamental here?
>
> regards
>
> Leticia
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org