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

[jira] Created: (WW-2155) Want to give struts.xml a different name, Config Init parm in web.xml doesn't work to do this

Want to give struts.xml a different name, Config Init parm in web.xml doesn't work to do this
---------------------------------------------------------------------------------------------

                 Key: WW-2155
                 URL: https://issues.apache.org/struts/browse/WW-2155
             Project: Struts 2
          Issue Type: Bug
          Components: Configuration
    Affects Versions: 2.0.9
         Environment: configuration of struts when it comes up
            Reporter: Ron Lane


In Struts1 there was a config init parameter where you could set the name of the struts-config.xml file.  It would be very useful to have such a config init parameter in Struts2 where one could set the name of the config file to something other than struts.xml.

Let me explain why we need this.  There is a bug in Jrun where the struts.xml file must be in the Java App Server classpath.  That means that if we want more than one Web app in the Java app server, all the web apps must share the same struts.xml.  If each web app could specify the name of its own struts.xml file, then each could have its own config file independent of the other web apps.  

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


[jira] Commented: (WW-2155) Want to give struts.xml a different name, Config Init parm in web.xml doesn't work to do this

Posted by "James Holmes (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/struts/browse/WW-2155?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_42140 ] 

James Holmes commented on WW-2155:
----------------------------------

Ron,

The init parameter is for the Dispatcher filter. For example:

<filter>
  <filter-name>Struts2</filter-name>
  <filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class>
  <init-param>
    <param-name>config</param-name>
    <param-value>struts-default.xml,struts-plugin.xml,ANY_NAME.xml</param-value>
  </init-param>
</filter>


> Want to give struts.xml a different name, Config Init parm in web.xml doesn't work to do this
> ---------------------------------------------------------------------------------------------
>
>                 Key: WW-2155
>                 URL: https://issues.apache.org/struts/browse/WW-2155
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Configuration
>    Affects Versions: 2.0.9
>         Environment: configuration of struts when it comes up
>            Reporter: Ron Lane
>            Assignee: Don Brown
>
> In Struts1 there was a config init parameter where you could set the name of the struts-config.xml file.  It would be very useful to have such a config init parameter in Struts2 where one could set the name of the config file to something other than struts.xml.
> Let me explain why we need this.  There is a bug in Jrun where the struts.xml file must be in the Java App Server classpath.  That means that if we want more than one Web app in the Java app server, all the web apps must share the same struts.xml.  If each web app could specify the name of its own struts.xml file, then each could have its own config file independent of the other web apps.  

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


[jira] Updated: (WW-2155) Want to give struts.xml a different name, Config Init parm in web.xml doesn't work to do this

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

James Holmes updated WW-2155:
-----------------------------

    Fix Version/s: 2.0.11

> Want to give struts.xml a different name, Config Init parm in web.xml doesn't work to do this
> ---------------------------------------------------------------------------------------------
>
>                 Key: WW-2155
>                 URL: https://issues.apache.org/struts/browse/WW-2155
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Configuration
>    Affects Versions: 2.0.9
>         Environment: configuration of struts when it comes up
>            Reporter: Ron Lane
>             Fix For: 2.0.11
>
>
> In Struts1 there was a config init parameter where you could set the name of the struts-config.xml file.  It would be very useful to have such a config init parameter in Struts2 where one could set the name of the config file to something other than struts.xml.
> Let me explain why we need this.  There is a bug in Jrun where the struts.xml file must be in the Java App Server classpath.  That means that if we want more than one Web app in the Java app server, all the web apps must share the same struts.xml.  If each web app could specify the name of its own struts.xml file, then each could have its own config file independent of the other web apps.  

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


[jira] Commented: (WW-2155) Want to give struts.xml a different name, Config Init parm in web.xml doesn't work to do this

Posted by "Don Brown (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/struts/browse/WW-2155?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_42138 ] 

Don Brown commented on WW-2155:
-------------------------------

This is indeed possible right now. Specify the config init param like so:

<init-param>
  <param-name>config</param-name>
  <param-value>struts-default.xml,struts-plugin.xml,ANY_NAME.xml</param-value>
</init-param>

where ANY_NAME.xml is on the classpath. Each web app, and in fact, each filter instance can have its own 'config' value.

> Want to give struts.xml a different name, Config Init parm in web.xml doesn't work to do this
> ---------------------------------------------------------------------------------------------
>
>                 Key: WW-2155
>                 URL: https://issues.apache.org/struts/browse/WW-2155
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Configuration
>    Affects Versions: 2.0.9
>         Environment: configuration of struts when it comes up
>            Reporter: Ron Lane
>
> In Struts1 there was a config init parameter where you could set the name of the struts-config.xml file.  It would be very useful to have such a config init parameter in Struts2 where one could set the name of the config file to something other than struts.xml.
> Let me explain why we need this.  There is a bug in Jrun where the struts.xml file must be in the Java App Server classpath.  That means that if we want more than one Web app in the Java app server, all the web apps must share the same struts.xml.  If each web app could specify the name of its own struts.xml file, then each could have its own config file independent of the other web apps.  

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


[jira] Commented: (WW-2155) Want to give struts.xml a different name, Config Init parm in web.xml doesn't work to do this

Posted by "Lane, Ron (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/struts/browse/WW-2155?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_42139 ] 

Lane, Ron  commented on WW-2155:
--------------------------------

Don,
Thanks a lot.
My developer says it's not altogether clear where in web.xml this goes.
Ron



> Want to give struts.xml a different name, Config Init parm in web.xml doesn't work to do this
> ---------------------------------------------------------------------------------------------
>
>                 Key: WW-2155
>                 URL: https://issues.apache.org/struts/browse/WW-2155
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Configuration
>    Affects Versions: 2.0.9
>         Environment: configuration of struts when it comes up
>            Reporter: Ron Lane
>            Assignee: Don Brown
>
> In Struts1 there was a config init parameter where you could set the name of the struts-config.xml file.  It would be very useful to have such a config init parameter in Struts2 where one could set the name of the config file to something other than struts.xml.
> Let me explain why we need this.  There is a bug in Jrun where the struts.xml file must be in the Java App Server classpath.  That means that if we want more than one Web app in the Java app server, all the web apps must share the same struts.xml.  If each web app could specify the name of its own struts.xml file, then each could have its own config file independent of the other web apps.  

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


[jira] Resolved: (WW-2155) Want to give struts.xml a different name, Config Init parm in web.xml doesn't work to do this

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

Don Brown resolved WW-2155.
---------------------------

       Resolution: Not A Problem
    Fix Version/s:     (was: 2.0.11)
         Assignee: Don Brown

> Want to give struts.xml a different name, Config Init parm in web.xml doesn't work to do this
> ---------------------------------------------------------------------------------------------
>
>                 Key: WW-2155
>                 URL: https://issues.apache.org/struts/browse/WW-2155
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Configuration
>    Affects Versions: 2.0.9
>         Environment: configuration of struts when it comes up
>            Reporter: Ron Lane
>            Assignee: Don Brown
>
> In Struts1 there was a config init parameter where you could set the name of the struts-config.xml file.  It would be very useful to have such a config init parameter in Struts2 where one could set the name of the config file to something other than struts.xml.
> Let me explain why we need this.  There is a bug in Jrun where the struts.xml file must be in the Java App Server classpath.  That means that if we want more than one Web app in the Java app server, all the web apps must share the same struts.xml.  If each web app could specify the name of its own struts.xml file, then each could have its own config file independent of the other web apps.  

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