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

Lukasz Lenart commented on WW-3849:
-----------------------------------

I think that's ok, you should adjust framework to your specific needs and you 
did that. I don't think that we should change the PrefixBasedActionMapper - it 
has other job to do.
                
> Hability PrefixBasedActionMapper to exclude the prefix when retrieveing the 
> ActionMapper
> ----------------------------------------------------------------------------------------
>
>                 Key: WW-3849
>                 URL: https://issues.apache.org/jira/browse/WW-3849
>             Project: Struts 2
>          Issue Type: Improvement
>          Components: Dispatch Filter
>    Affects Versions: 2.2.3
>            Reporter: Jose L Martinez-Avial
>             Fix For: 2.3.x
>
>
> The PrefixBasedActionMapper is able to map different actions to different 
> mappers using prefixes. So you can have something like this:
> /preffix1:mapper1,/preffix2:mapper2,:defaultMapper
> And the following URIs would be processed by different mappers
> /preffix1/mynamespace1/myaction1 (by mapper1)
> /preffix2/mynamespace1/myaction1 (by mapper2)
> /mynamespace1/myaction1  (by defaultMapper)
> So you can have three different ActionMappers, one per prefix. The problem 
> with this is that you can not reuse the same actions for different 
> prefixes(ie, reuse an ActionMapper), since the ActionMapper will try to match 
> the full URI, without taking out the prefix. I suggest to parametrize the 
> PrefixBasedActionMapper to remove the preffix from the URI when calling the 
> ActionMapper, so the same mapper can be used more than once.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to