You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Miller, Jason" <jm...@ostglobal.com> on 2002/10/25 16:54:55 UTC

RE: Nested html:form

I could be wrong, but I don't think it's legal to nest forms.  I'm fairly
sure that the <form> element in HTML cannot have a nested <form> element.
In any case, it seems like a pretty obfuscated thing to do.  What are you
hoping to accomplish?


> What's the best way to nest forms?
> 
> I want to:
> 
> <html:form action="A">
> 	<html:form action="B">
> 		<html:img src="B"/>
> 	</html:form>
> 	<html:img src="A"/>
> <html:form>
> 
> But, when I try this, src B always invokes action A -- I want src B to
> invoke action B.
> 
> Any help is greatly appreciated.
> 
> Thanks,
> 
> --Mike

Re: Nested html:form

Posted by Michael Delamere <ho...@michael-delamere.de>.
I don´t think that this is conform at all.  I´m not sure if earlier versions
of Netscape are important to you, but it will definitely not work there!

Is there no other option for you other than nesting the forms?

Regards,

Michael


----- Original Message -----
From: "Michael Marrotte" <ma...@nicusa.com>
To: "Struts Users Mailing List" <st...@jakarta.apache.org>
Sent: Friday, October 25, 2002 5:38 PM
Subject: RE: Nested html:form


I want all the elements of the inside form to get submitted with the
request, but not vice versa.  Also, I want to seperate forms.

-----Original Message-----
From: Miller, Jason [mailto:jmiller@ostglobal.com]
Sent: Friday, October 25, 2002 10:55 AM
To: 'Struts Users Mailing List'
Subject: RE: Nested html:form


I could be wrong, but I don't think it's legal to nest forms.  I'm fairly
sure that the <form> element in HTML cannot have a nested <form> element.
In any case, it seems like a pretty obfuscated thing to do.  What are you
hoping to accomplish?


> What's the best way to nest forms?
>
> I want to:
>
> <html:form action="A">
> <html:form action="B">
> <html:img src="B"/>
> </html:form>
> <html:img src="A"/>
> <html:form>
>
> But, when I try this, src B always invokes action A -- I want src B to
> invoke action B.
>
> Any help is greatly appreciated.
>
> Thanks,
>
> --Mike


--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: Nested html:form

Posted by Michael Marrotte <ma...@nicusa.com>.
I want all the elements of the inside form to get submitted with the
request, but not vice versa.  Also, I want to seperate forms.

-----Original Message-----
From: Miller, Jason [mailto:jmiller@ostglobal.com]
Sent: Friday, October 25, 2002 10:55 AM
To: 'Struts Users Mailing List'
Subject: RE: Nested html:form


I could be wrong, but I don't think it's legal to nest forms.  I'm fairly
sure that the <form> element in HTML cannot have a nested <form> element.
In any case, it seems like a pretty obfuscated thing to do.  What are you
hoping to accomplish?


> What's the best way to nest forms?
>
> I want to:
>
> <html:form action="A">
> 	<html:form action="B">
> 		<html:img src="B"/>
> 	</html:form>
> 	<html:img src="A"/>
> <html:form>
>
> But, when I try this, src B always invokes action A -- I want src B to
> invoke action B.
>
> Any help is greatly appreciated.
>
> Thanks,
>
> --Mike


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>