Hi Jose, I have the following entry in my struts.properties file:
struts.custom.i18n.resources=globalmessages My globalmessage.properties file is sitting alongside my struts.properties file on the Classpath. I am using, for example, <s:text/> tags to hit the resource bundle via my Class-less JSP's. I am using version 2.2.3. Let us know if this helps. Best, jb / ________________________________ From: JOSE L MARTINEZ-AVIAL <jlm...@gmail.com> To: Struts Users Mailing List <user@struts.apache.org> Sent: Thu, July 21, 2011 8:16:35 AM Subject: Re: Access to Resource Bundle when there is no action Just to clarify that when I talk about "accessing a Resource bundle on an action that has no action class" I mean accessing the resource from a JSP called as as result from an Struts2 action that has no class associated. Nobody has found this issue before? If so, how do you solve it? TIA Jose 2011/7/20 JOSE L MARTINEZ-AVIAL <jlm...@gmail.com> > 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 >