aspose file tools*
The moose likes Struts and the fly likes the <html:form > tag cancel the effect of <%=%> Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "the <html:form > tag cancel the effect of <%=%>" Watch "the <html:form > tag cancel the effect of <%=%>" New topic
Author

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

abdel solarie
Greenhorn

Joined: Oct 29, 2010
Posts: 9
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 <%=%>
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: the <html:form > tag cancel the effect of <%=%>
 
Similar Threads
Handling validations of multiple forms in single jsp
Struts upload not working
BeanUtils.populate IndexOutofBound
Form problems in jsp and struts
File Upload