|
From: John L. <jl...@un...> - 2006-02-04 08:10:45
|
The main change to the Portlet MVC area in Spring 2.0 M2 is the addition of full multipart support for file uploads. Many people have been waiting on this for quite a while, so we are excited it is finally available! We were unable to add it earlier because we need the JSR-168 support in Jakarta commons-fileupload 1.1, which was not released until the end of the year. The multipart functionality is essentially identical to the servlet side. You just instantiate a PortletMultipartResolver bean in your context and you are ready to go. You can bind files directly into command objects attributes or cast your ActionRequest to a MultipartActionRequest to get at the normal MultipartFile objects. You will need to include commons-fileupload 1.1 and commons-io 1.1 in your libraries in order to use the multipart support. I've updated the sample application to Spring 2.0 M2 and added a new portlet that demonstrates the multipart support. Get the full details and download the sample app on the Wiki site: http://opensource.atlassian.com/confluence/spring/display/JSR168/Home John Lewis jl...@un... |