Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

the <html:form > tag cancel the effect of <%=%>

 
abdel solarie
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would like to create a page that contains multiple forms ,the action compte responsible for that send a "voiture " vector to the jsp , the property "idVoiture" of "voiture" will be used to differentiate between those form:

compte
....
Vector <voiture> Vect continet un vecteur de voiture
request.setAttribute("Vect_voiture", Vect); mettre ce vecteur dans la requet
.....

the jsp result

<logic:iterate id="vf" name="Vect_voiture">
<bean:define id="idd" name="vf" property="idVoiture"/>

<html:form action="update_img" method="POST" styleId="updat_<%=idd%>" enctype="multipart/form-data">

<div ><html:file property="file" styleId="file0" /></div>

<div > <html:submit value="update"/></div>

</html:form>

</logic:iterate>

what is strange : is that I receive all form in html with:

<form name="voiture" id="updat_<%=d%>" method="POST" action="/projet_web/update_img.do" enctype="multipart/form-data">

<div ><input type="file" name="file" value="" id="file0" > </div>
<div > <input type="submit" value="update"/>
</div>
</form>

it's like the <html:form > tag cancel the effect of <%=%>
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic