struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From max max <>
Subject struts-menu I18N struts2
Date Thu, 07 Jul 2011 10:12:19 GMT
hi strut people :)

i have a problem with strutsmenu and I18N with struts2
i read somthing about this problem

see: the old comment:

Besides specifying the bundle attribute on the menu:useDisplayer tag, is 
there any other way to translate the text from menu-config.xml with 
struts2?  If I specify the bundle as "applicationMessages", it works but 
always translates to English rather than the other languages such as 
german.  How can get it to work with struts2?
-- view thread --
Looks like I have to specify two attributes on the tag:


By doing this allows struts-menu to work with the Struts2 
internationalization support.  

well i do exactly it but application display error :(.

GRAVE: Erreur lors de la configuration de la classe d'├ęcoute de l'application (application

my page.jsp :

%@ page language="java" contentType="text/html; charset=ISO-8859-1"
     <%@ taglib prefix="s" uri="/struts-tags" %>
     <%@ taglib prefix="sx" uri="/struts-dojo-tags" %>
     <%@ taglib prefix="menu" uri=""%>
<div id="menu" class="menu">
<menu:useMenuDisplayer name="TabbedMenu"
  bundle="Global" locale="WW_TRANS_i18N_LOCALE">
  <menu:displayMenu name="Global.Home" />
  <menu:displayMenu name="Global.About" />

my menuconfig.xml

<?xml version="1.0" encoding="UTF-8"?>
        <Displayer name="Velocity" type="net.sf.navigator.displayer.VelocityMenuDisplayer"/>
  <Displayer name="TabbedMenu"
<Menus > 
  <Menu name="Global.Home" title="Home"  page="totoAction.action"    /> 
  <Menu name="Global.About" title="About" page="modification.action"  /></Menus>

somebody help me please 

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message