I tried [EMAIL PROTECTED] value="text('key')"/] and that doesn't seem to work either. I don't have a struts.xml or struts.properties in my project. I tried putting the i18n bundle in all packages using it at the Action level (ActionName.properties), but that didn't work either. Creating a src/main/resources/struts.properties with the following in it is the only thing that seems to work.
struts.custom.i18n.resources=messages And then putting my keys in src/main/resources/messages.properties. AFAICT, i18n bundles at the action/package level seems to be completely broken in 2.1.1. Matt Jeromy Evans - Blue Sky Minds wrote: > > Hi Matt, > > is it only the @s.text tag that isn't working? eg. is @s.property > working? > > I've suspected there's a problem with the text tag and i18n tag not > finding some resource bundles in the S2.1.1 branch but haven't had a > chance to investigate. There's several related issues in JIRA and I > recall something specifically about package-level properties. I may > have an opportunity to investigate later today. Does it find resources > in your action-properties or global properties? > > cheers, > Jeromy Evans > > mraible wrote: >> I'm using 2.1.1-SNAPSHOT of the sitemesh and rest plugins. >> FreeMarker/SiteMesh is working fine. However, I'm unable to use i18n tags >> in >> my decorator. In src/main/resources/com/company/app/package.properties, I >> have: >> >> webapp.name=Foo >> webapp.tagline=Bar >> >> In my decorators/default.ftl, I have: >> >> [EMAIL PROTECTED] name="webapp.name"/] >> >> And it renders: >> >> webapp.name >> >> Any idea why my Struts FreeMarker tag isn't being processed? I have the >> following in my web.xml: >> >> <filter-mapping> >> <filter-name>struts-cleanup</filter-name> >> <url-pattern>/*</url-pattern> >> </filter-mapping> >> >> <filter-mapping> >> <filter-name>sitemesh</filter-name> >> <url-pattern>/*</url-pattern> >> </filter-mapping> >> >> <filter-mapping> >> <filter-name>struts</filter-name> >> <url-pattern>/*</url-pattern> >> </filter-mapping> >> >> Thanks, >> >> Matt >> > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/i18n-Tags-in-FreeMarker-Decorator-for-SiteMesh-tp16599500p16601141.html Sent from the Struts - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]