A question about HTML

This is a little off topic, but still the issue is relevant to jsp's and J2EE

Is embeding <FORM> tags well defined? for instance

<FORM name="form1"><input type="hidden" name="hello" value="world"><FORM name="form2"><input name="text">

</FORM>

</FORM>

If I put a submit button in form2, would it exclude fields from form1? If I submit form1, will it include all items from form2?

Anyone know?

[627 byte] By [tjacobs01a] at [2007-11-26 13:41:53]
# 1

i really dont' think that will work. off topic as it may be, if you must do something like this just make all your variables in form 1 and then if you must make a dummy form (form2) that when inputs are modified they call javascript which modifies the corresponding value in form1.

i have never understood the need for nested forms like that though, what are you trying to do exactly?

den2681a at 2007-7-7 23:58:59 > top of Java-index,Java Essentials,Java Programming...
# 2

> i have never understood the need for nested forms

> like that though, what are you trying to do exactly?

I need to add a form field to a number of web pages. Some of these pages already have a form on them and some didn't, but even on the ones with forms already on them I need to add an additional hidden field.

Will this all work beautifully, or am I going down in flames?

tjacobs01a at 2007-7-7 23:58:59 > top of Java-index,Java Essentials,Java Programming...
# 3
> Is embeding <FORM> tags well defined? for instanceAs per the W3C recommendations, you should not have a nested form tag.
aniseeda at 2007-7-7 23:58:59 > top of Java-index,Java Essentials,Java Programming...
# 4
> As per the W3C recommendations, you should not have a> nested form tag.That's good enough for me. Thanks
tjacobs01a at 2007-7-7 23:58:59 > top of Java-index,Java Essentials,Java Programming...