struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From little_fish <>
Subject Question: i18n in struts 2 + velocity
Date Thu, 30 Aug 2007 10:54:35 GMT

I'm trying struts 2, and using velocity 1.4 and velocity-tools 1.3 (for some
cool stuff like struts-menu). i18n in struts 2 is quite simple and straight
forward. I put "struts.custom.i18n.resources = ... " in,
and it worked perfectly.

However, I couldn't figure out how to do i18n in menu templates which fed
velocity. All examples and tutorials are for struts 1.x, i.e, put  things in
struts-config.xml. I also tried AppFuse, but didn't get it work. :(

I configured toolbox.xml to use MessageTool (text) and put a line like "#set
$title = $text.Home" in velocity template. Though no error messages, the
output wasn't right.

Could somebody help me on this? Many thanks!
View this message in context:
Sent from the Struts - User mailing list archive at

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message