@ -1020,7 +1020,7 @@ public class SampleController extends AbstractController {
@@ -1020,7 +1020,7 @@ public class SampleController extends AbstractController {
<classname>DispatcherPortlet</classname> detects a multipart
request, it activates the resolver that has been declared in your
context and hands over the request. What the resolver then does is
wrap the current <interfacename>ActionRequest</interfacename> into a
wrap the current <interfacename>ActionRequest</interfacename> in a
<interfacename>MultipartActionRequest</interfacename> that has
support for multipart file uploads. Using the
<interfacename>MultipartActionRequest</interfacename> you can get
@ -1039,7 +1039,8 @@ public class SampleController extends AbstractController {
@@ -1039,7 +1039,8 @@ public class SampleController extends AbstractController {
<para>After the
<interfacename>PortletMultipartResolver</interfacename> has finished
doing its job, the request will be processed like any other. To use
it, you create a form with an upload field (see immediately below),
the <interfacename>PortletMultipartResolver</interfacename>, create
a form with an upload field (see example below),
then let Spring bind the file onto your form (backing object). To
actually let the user upload a file, we have to create a (JSP/HTML)
form:</para>
@ -1050,8 +1051,8 @@ public class SampleController extends AbstractController {
@@ -1050,8 +1051,8 @@ public class SampleController extends AbstractController {
<inputtype="submit"/>
</form>]]></programlisting>
<para>As you can see, we've created a field named “file” after the
property of the bean that holds the <literal>byte[]</literal>.
<para>As you can see, we've created a field named “file” that matches the
property of the bean that holds the <literal>byte[]</literal> array.
Furthermore we've added the encoding attribute
(<literal>enctype="multipart/form-data"</literal>), which is
necessary to let the browser know how to encode the multipart fields
@ -1064,10 +1065,10 @@ public class SampleController extends AbstractController {
@@ -1064,10 +1065,10 @@ public class SampleController extends AbstractController {
of editors available for handling files and setting the results on
an object. There's a
<classname>StringMultipartFileEditor</classname> capable of
converting files to Strings (using a user-defined character set) and
converting files to Strings (using a user-defined character set), and
there is a <classname>ByteArrayMultipartFileEditor</classname> which
converts files to byte arrays. They function just as the