Java

NAVIGATION
CATEGORIES
REFERRENCE
LINKS
  • Specify which resource bundle to use for <arg0> tag invalidation.xml?

    0 answers - 2291 bytes - related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg Add To My Reddit

    This application uses something like module, but I don't think it's module. I think they use multiple struts configuration files (single module).
    This is a part of the web.xml:
    <servlet
    <servlet-name>action</servlet-name>
    <servlet-class></servlet-class>
    <init-param>
    <param-name>config</param-name>
    <param-value>/WEB-INF/struts-config.xml,/,/WEB-INF/struts-config-mmis.xml,/,/,/,/,/,/,/,/</param-value>
    </init-param>
    As far as I know, if we use multiple modules, the web.xml should look like:
    <servlet>
    <servlet-name>action</servlet-name>
    <servlet-class>
    </servlet-class>
    <init-param>
    <param-name>config</param-name>
    <param-value>
    /,
    /
    </param-value>
    </init-param>
    <init-param>
    <param-name>config/module1</param-name>
    <param-value>
    /
    </param-value>
    </init-param>
    <init-param>
    <param-name>config/module2</param-name>
    <param-value>
    /,
    /,
    /
    </param-value>
    </init-param>
    So in my case, is it possible to tell Struts to get the value for a particular key in <arg0from some properties file?
    laurie (AT) holoweb (DOT) net 8/11/2005 3:52:05 PM
    Thai Dang U wrote:
    I have many struts config files in my application. of them is struts-config-provider.xml. In this file, I declare a resource file and validation files like this:
    <message-resource key="provider" parameter="Provider"/>
    <plug-in className="">
    <set-property property="pathnames"
    value="/, /"/>
    </plug-in>
    In my validation.xml file, I have several lines like <arg0 key="form1.name"/What do I have to do to tell Struts to use form1.name in my resource bundle (Provider.properties)?
    Thanks for any help.
    Are you using modules? If so, and struts-config-provider.xml is configured
    correctly in web.xml (on the ActionServlet definition), you shouldn't need
    to do anything special. I'm not sure how it works if you're using multiple
    configuration files without modules, though.
    L.

Re: Specify which resource bundle to use for <arg0> tag invalidation.xml?


max 4000 letters.
Your nickname that display:
In order to stop the spam: 1 + 0 =
QUESTION ON "Java"

EMSDN.COM