Changing form to utilise an enctype multipart/form-data creating Issue while
page submit
----------------------------------------------------------------------------------------
Key: WW-3157
URL: https://issues.apache.org/struts/browse/WW-3157
Project: Struts 2
Issue Type: Bug
Affects Versions: 2.0.6
Reporter: Sri Balaji
simple form with multiple submit buttons, each going to a different action
mapping (or method) works fine, for example:
<s:form action="UpdateDocument" method="post">
<s:submit title="Unpublish" method="unpublish" />
<s:submit title="Publish" method="publish" />
</s:form>
Attempt to change the form to use a multipart/form-data enctype (Which is
important as we will be adding a file upload to this form), i.e.:
<s:form action="UpdateDocument" method="post" enctype="multipart/form-data">
<s:submit title="Unpublish" method="unpublish" />
<s:submit title="Publish" method="publish" />
</s:form>
The first button press is working fine but subsequent button press for
submitting the page is not working. It throws NULL pointer exception as none of
the data objects are getting submitted again.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.