Hi,
  I'm using Struts 2.1.8.1, and I'm having some problems with accessing a
Resource bundle on an action that has no action class associated. It just
doesn't find the bundle, which seams reasonable since Struts doesn't know
where to look. I see that it's possible to define a global resources(
http://struts.apache.org/2.1.8/docs/localization.html), but I was wondering
if it is possible to define a 'default' bundle at a Struts package level. It
would be something like this:

<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE struts PUBLIC
        "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
        "http://struts.apache.org/dtds/struts-2.0.dtd";>

<struts>

    <package name="stmts-doc" namespace="/doc" extends="stmts-default">
        <default-bundle name="com.stmts.doc.my-package.properties"/>

        <action name="SeeSelections">
            <interceptor-ref name="stmtsStack">
                <param
name="AuthoritationInterceptor.resource">SecurityMaster</param>
            </interceptor-ref>
            <result type="tiles">stmts.doc.selections.screen</result>
        </action>

    </package>

</struts>

Is it possible to do that?

TIA

Jose Luis

Reply via email to