-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating

Spring MVC Beginner's Guide
By :

Let's add the image upload facility to our add products
page:
Add a bean definition in our web application's context configuration file (DispatcherServlet-context.xml
) for CommonsMultipartResolver
, as follows:
<bean id="multipartResolver" class="org.springframework.web.multipart.commons.CommonsMultipartResolver">
<property name="maxUploadSize" value="10240000"/>
</bean>
Open pom.xml
; you can find pom.xml
under the project root directory itself.
You will be able to see some tabs at the bottom of the pom.xml
file. Select the Dependencies tab and click on the Add button of the Dependencies section.
A Select Dependency window will appear; enter Group Id as commons-fileupload
, Artifact Id as commons-fileupload
, Version as 1.2.2
; select Scope as compile; and click on the OK button.
Similarly, add one more Group Id dependency as org.apache.commons
, Artifact Id as commons-io
, Version as 1.3.2
; select Scope as compile; click on the...
Change the font size
Change margin width
Change background colour