[
https://issues.apache.org/struts/browse/WW-3157?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Wes Wannemacher updated WW-3157:
--------------------------------
Fix Version/s: 2.1.8
have you tried with a 2.1 series of struts? you marked this as affecting 2.0.6
and I am not sure what the status is of backporting fixes.
> 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
> Fix For: 2.1.8
>
>
> 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.