File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2424 <bean class =" org.springframework.context.support.ResourceBundleMessageSource" id =" messageSource" >
2525 <property name =" basename" value =" messages" />
2626 </bean >
27-
28- <!-- <bean id="multipartResolver"
29- class="org.springframework.web.multipart.commons.CommonsMultipartResolver" /> -->
30-
31- <bean id =" multipartResolver"
32- class =" org.springframework.web.multipart.support.StandardServletMultipartResolver" >
33- </bean >
3427
3528</beans >
Original file line number Diff line number Diff line change 2222
2323 <body >
2424
25- <h3 >Welcome, Enter The Person Details</h3 >
25+ <h3 >Welcome, Enter the Person Details</h3 >
2626
27- <form:form method =" POST" action =" addPerson" modelAttribute =" person" enctype = " multipart/form-data " >
27+ <form:form method =" POST" action =" addPerson" modelAttribute =" person" >
2828
2929 <form:errors path =" *" cssClass =" errorbox" element =" div" />
3030
104104 <td ><form:label path =" notes" >Notes</form:label ></td >
105105 <td ><form:textarea path =" notes" rows =" 3" cols =" 20" /></td >
106106 </tr >
107- <tr >
108- <td ><form:label path =" file" >Select a file to upload</form:label ></td >
109- <td ><input type =" file" name =" file" /></td >
110- </tr >
111107 <tr >
112108 <td ><form:hidden path =" id" value =" 12345" /></td >
113109 </tr >
Original file line number Diff line number Diff line change 6262 </tr >
6363 </table >
6464
65- <h2 >Submitted File</h2 >
66- <table >
67-
68- <tr >
69- <td >OriginalFileName :</td >
70- <td >${ person. file. originalFilename } </td >
71- </tr >
72-
73- <tr >
74- <td >Type :</td >
75- <td >${ person. file. contentType } </td >
76- </tr >
77-
78- </table >
7965 </body >
8066</html >
Original file line number Diff line number Diff line change 2828 <servlet-name >mvc</servlet-name >
2929 <servlet-class >org.springframework.web.servlet.DispatcherServlet</servlet-class >
3030 <load-on-startup >1</load-on-startup >
31- <multipart-config >
32- <location >/tmp</location >
33- </multipart-config >
3431 </servlet >
3532 <servlet-mapping >
3633 <servlet-name >mvc</servlet-name >
You can’t perform that action at this time.
0 commit comments