You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Musachy Barroso (JIRA)" <ji...@apache.org> on 2009/02/13 15:49:45 UTC

[jira] Commented: (WW-2991) More intelligent result mapping.

    [ https://issues.apache.org/struts/browse/WW-2991?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=45600#action_45600 ] 

Musachy Barroso commented on WW-2991:
-------------------------------------

I would advise you to start a thread in @dev to discuss this and get some input, as for myself, I think the whole idea goes against some of the Struts 2 core patterns.

> More intelligent result mapping.
> --------------------------------
>
>                 Key: WW-2991
>                 URL: https://issues.apache.org/struts/browse/WW-2991
>             Project: Struts 2
>          Issue Type: New Feature
>          Components: Plugin - Convention
>    Affects Versions: 2.1.6
>            Reporter: spiker
>         Attachments: ConventionUnknownHandler.java, diff_to_2_1_6.txt
>
>
> More intelligent result mapping could make Convention plugin more conventional. Here was my some initial thought:
> In my personal experience, most of the time, logical result name was not necessary.
> If the result string was "create.jsp", it will be dispatch to "create.jsp" under same package in "/WEB-INF/content". No need to look up "create.vm" or other  guess work, performance will also increase. 
> If the result string was "/login.jsp", it will be dispatch to "/WEB-INF/content/login.jsp" .
> If the result string was "redirect:create.jsp", then change result type to "redirect".
> If the result string was "edit.action", it will be chained to "EditAction" under same namespace.
> If the result string was SomeOtherAction.class.toString(), it will be chained to the SomeOtherAction.
> To change default result type of action from chain to other result type, just prepend result type in result string, for example: "redirect:edit.action".

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.