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: internationalised strings in the database
Date Mon, 03 Sep 2007 09:15:31 GMT
2007/9/3, Adam Hardy <ahardy.struts@cyberspaceroad.com>:
> In another tag to produce a url to a translation page, I must work out the name
> of the 'master' tile that this JSP is part of.

You cannot know, in a JSP page, what is the definition that contains
it, however you can circumvent your problem.
You could use a preparer for your definition, that puts a
request-scoped bean that is the prefix of the partial key. For
preparers, see:
http://tiles.apache.org/tutorial/advanced/preparer.html

Antonio

Mime
View raw message