You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Sri Balaji (JIRA)" <ji...@apache.org> on 2009/06/15 18:06:42 UTC

[jira] Created: (WW-3157) Changing form to utilise an enctype multipart/form-data creating Issue while page submit

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.


[jira] Updated: (WW-3157) Changing form to utilise an enctype multipart/form-data creating Issue while page submit

Posted by "Wes Wannemacher (JIRA)" <ji...@apache.org>.
     [ 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.


[jira] Resolved: (WW-3157) Changing form to utilise an enctype multipart/form-data creating Issue while page submit

Posted by "Musachy Barroso (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/WW-3157?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Musachy Barroso resolved WW-3157.
---------------------------------

    Resolution: Cannot Reproduce

Unable to replicate, when there are exceptions thrown, it is usually a good idea to post the exceptions.

> 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.