You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Paul Benedict (JIRA)" <ji...@apache.org> on 2007/12/05 06:57:34 UTC

[jira] Issue Comment Edited: (STR-3117) PerformForward.methods: private -> protected

    [ https://issues.apache.org/struts/browse/STR-3117?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_42772 ] 

paul4christ79 edited comment on STR-3117 at 12/4/07 9:56 PM:
-------------------------------------------------------------

I do not object to the change. But can you explain how changing the access modifier allows to omit the servlet prefix? Got any sample code to share?

      was (Author: paul4christ79):
    I do not object to the change. But can you explain how changing the access modifer allows you omit the servlet prefix? Got any sample code to share?
  
> PerformForward.methods: private -> protected
> --------------------------------------------
>
>                 Key: STR-3117
>                 URL: https://issues.apache.org/struts/browse/STR-3117
>             Project: Struts 1
>          Issue Type: Improvement
>          Components: Core
>    Affects Versions: 1.3.9
>            Reporter: Lars Beuster
>            Assignee: Paul Benedict
>            Priority: Minor
>             Fix For: 1.3.10
>
>
> The methods in chain.commands.servlet.PerformForward are private. To extend PerformInclude to make it easier to deal with prefix matching in the action servlet (e.g. "/main/*" instead of "*.do") it would be nice if I could override resolveModuleRelativePath().
> With the overridden method I could omit the action servlet prefix in the whole struts-config.xml:
> <action...>
>     old: <forward name="success" path="/main/anotherAction" module="..."/>
>     new: <forward name="success" path="/anotherAction" module="..."/>
> </action>
>  

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