struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From little_fish <jia...@gmail.com>
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 struts.properties,
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: http://www.nabble.com/Question%3A-i18n-in-struts-2-%2B-velocity-tf4353391.html#a12404685
Sent from the Struts - User mailing list archive at Nabble.com.

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