GitHub user aleksandr-m opened a pull request:

    https://github.com/apache/struts/pull/75

    WW-4590 - Allow to use multiple names in result

    Allow to use multiple values in `result` tag `name` attribute and in 
`Result` annotation `name`.
    
    So this typical configuration:
    
    ```
    <action name="save">
        <result>success.jsp</result>
        <result name="error">input-form.jsp</result>
        <result name="input">input-form.jsp</result>
    </action>
    ```
    
    Can be shorten to that:
    
    ```
    <action name="save">
        <result>success.jsp</result>
        <result name="error, input">input-form.jsp</result>
    </action>
    ```
    
    And this annotations:
    
    ```
    @Action(results = {
        @Result(name="error", location="input-form.jsp"),
        @Result(name="input", location="input-form.jsp"),
        @Result(name="success", location="success.jsp")
    })
    ```
    
    To that:
    
    ```
    @Action(results = {
        @Result(name="error, input", location="input-form.jsp"),
        @Result(name="success", location="success.jsp")
    })
    ```

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/aleksandr-m/struts 
feature/multiple_result_names

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/struts/pull/75.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #75
    
----
commit 087cf610abcd262980a41c30a2f9360aa3f416e1
Author: Aleksandr Mashchenko <[email protected]>
Date:   2016-01-18T19:23:46Z

    WW-4590 - Allow to use multiple names in result

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to