I have jsp code
college.jsp page
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<html>
<head>
</head>
<body>
<html:form action ="/college.do">
<fieldset>
<legend>COLLEGE INFORMATION :</legend>
<pre>
Gallery Images: <input type="file" name="file[]" multiple/>
<html:submit value = "S U B M I T"/>
</fieldset>
</html:form>
</body>
</html>
How to upload the multiple images in struts
Total images storing folder in project
using this jsp,but i want to CollegeAction class and CollegeForm class how to do that
please help me code
You might want to do something like this. In your jsp file
Dont forget to set your html form’s attribute
enctype="multipart/form-data"Then in your
Formfile, create your image variables:..along with their getters and setters.
You can then use the variables for image creation in your server side: