tiles-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Antonio Petrelli <antonio.petre...@gmail.com>
Subject Re: Internationalization via tiles definition files
Date Mon, 19 Jul 2010 07:23:22 GMT
Reposting won't help you finding a solution...

Antonio

2010/7/16 Ryan Beckes <rbeckes@gmail.com>:
> Hello,
>
> I'm new to struts 2, so I read the "Starting Struts 2" book by Ian Roughley
> (very good intro!) and started playing around with the Struts blank
> application.
>
> I've been able to add tiles integration to the blank application (version
> 2.1.8.1). I'm trying to add internationalization to tiles via this
> instruction set...
>
>  http://tiles.apache.org/tutorial/advanced/l10n.html
>
> ... by creating a tiles_es.xml file...
>
> <?xml version="1.0" encoding="utf-8"?>
> <!DOCTYPE
> tiles-definitions PUBLIC "-//Apache Software Foundation//DTD Tiles
> Configuration 2.0//EN"
> "http://tiles.apache.org/dtds/tiles-config_2_0.dtd">
> <tiles-definitions>
>  <definition name="/example/HelloWorld.jsp" extends="baseLayout">
>    <put-attribute name="title" value="Hola a Todos" />
>    <put-attribute name="body" value="/fragments/HelloWorld.jsp" />
>  </definition>
> </tiles-definitions>
>
> ... and calling this link ...
>
> http://localhost:8080/struts2-blank-2.1.8.1/example/HelloWorld.action?request_locale=es
>
> ... but the title ("Hola a Todos") never changes, it seems that tiles is not
> picking up the tiles_es.xml file. Can anyone see if I am missing something?
>
> Thanks,
> Ryan
>

Mime
View raw message