spring mvc - <form:form/> for custom JSTL tag from outer <form:form/> -


i have problem while using

<form:form/>  

at mine custom tag when placed @ main form. here example

<form:form method="post" id="form1_id" action="${url1}" modelattribute="form1">  <div> ... </div>  <comp:mycomp link="${url2}"/>  <div> .... </div>  <form:form> 

and tag @ mycomp.tag file

<div> ... <div>  <jsp:dobody />  <form:form method="post" id="form2_id" action="${link2}" modelattribute="uploadform"> ... <form:button id="mybutton"> </form:button> ... </form:form> 

the problem when push on mybutton there no affect! when looked on html noticed there no tag form2_id form! that's mean when use nested forms not valid. agree. correct. @ mine example - i've intentionally used

<jsp:dobody /> 

tag placing second form out of main form! wrong here?


Comments