• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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>
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic