• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Rob Spoor
  • Devaka Cooray
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Jj Roberts
  • Al Hobbs
  • Piet Souris

Struts Tiles and Internationalization

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have the following tiles definition, is there
a tile tag that I can use to get the page title from
the application resources file? I'm having to
define a bean with the string that contains the
page title from the application resources, and use
the tile ut tag. It would be nice if the put
tag supported getting strings out of the application
resourceses files.
Is there a better workaround than this:
<bean efine id="pageTitleBean">
<bean:message key="somePage.title"/>
</bean efine>
<tiles:insert page="/layout.jsp" flush="true">
<tiles ut name="header" value="/header.jsp"/>
<tiles ut name="nav" value="/nav.jsp"/>
<tiles ut name="content" value="/content.jsp"/>
<tiles ut name="footer" value="/footer.jsp"/>
<tiles ut name="page.title" beanName="pageTitleBean"/>
</tiles:insert>
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic