struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From max max <stani...@yahoo.fr>
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:

  bundle="applicationMessages" 
  locale="WW_TRANS_I18N_LOCALE"

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
listener) net.sf.navigator.menu.MenuContextListener
java.lang.ClassNotFoundException: net.sf.navigator.menu.MenuContextListener

my page.jsp :

%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
     <%@ taglib prefix="s" uri="/struts-tags" %>
     <%@ taglib prefix="sx" uri="/struts-dojo-tags" %>
     <%@ taglib prefix="menu" uri="http://struts-menu.sf.net/tag-el"%>
<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" />
</menu:useMenuDisplayer>
</div>

my menuconfig.xml

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

</MenuConfig>
somebody help me please 

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message