You can subscribe to this list here.
2002 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(2) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2003 |
Jan
|
Feb
(3) |
Mar
(10) |
Apr
(15) |
May
(6) |
Jun
(12) |
Jul
(9) |
Aug
(13) |
Sep
(37) |
Oct
(5) |
Nov
(25) |
Dec
(45) |
2004 |
Jan
(75) |
Feb
(36) |
Mar
(53) |
Apr
(29) |
May
(16) |
Jun
(44) |
Jul
(7) |
Aug
(33) |
Sep
(9) |
Oct
(41) |
Nov
(15) |
Dec
(11) |
2005 |
Jan
(17) |
Feb
(27) |
Mar
(24) |
Apr
(25) |
May
(18) |
Jun
(15) |
Jul
(19) |
Aug
(12) |
Sep
(27) |
Oct
(19) |
Nov
(27) |
Dec
(4) |
2006 |
Jan
(16) |
Feb
(36) |
Mar
(12) |
Apr
(21) |
May
(30) |
Jun
(10) |
Jul
(19) |
Aug
(33) |
Sep
(3) |
Oct
(17) |
Nov
(24) |
Dec
(1) |
2007 |
Jan
(4) |
Feb
|
Mar
(7) |
Apr
(7) |
May
(8) |
Jun
(26) |
Jul
(19) |
Aug
(21) |
Sep
(3) |
Oct
(8) |
Nov
(15) |
Dec
(18) |
2008 |
Jan
(18) |
Feb
(13) |
Mar
(15) |
Apr
(2) |
May
(1) |
Jun
(1) |
Jul
(4) |
Aug
(13) |
Sep
|
Oct
(7) |
Nov
|
Dec
|
2009 |
Jan
(9) |
Feb
(1) |
Mar
|
Apr
(9) |
May
(3) |
Jun
|
Jul
(2) |
Aug
(11) |
Sep
(1) |
Oct
|
Nov
|
Dec
(17) |
2010 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(2) |
Jun
|
Jul
|
Aug
|
Sep
(2) |
Oct
(1) |
Nov
|
Dec
|
2011 |
Jan
|
Feb
(7) |
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
(6) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2012 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(2) |
2013 |
Jan
|
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Vicky <jav...@ya...> - 2013-02-07 22:14:01
|
Vicky http://www.hipnthigh.de/tmp/polimorph.php?jmwfbmipc |
From: Matt R. <ma...@ra...> - 2012-12-05 14:21:02
|
I'm able to run Struts Menu successfully under Tomcat 7, so I suspect you have an old Struts JAR or something like that lying around. On Dec 5, 2012, at 1:56 AM, Vijaya <sv...@so...> wrote: > Hi, > > I installed struts-menu 2.3 under tomcat 5.5.16 and has been working fine. I upgraded tomcat to tomcat 6.0 and now struts menu gives the following error. Can you help me out as what may be the problem. > > The error I get is > -------------------------------------------------------------------------------------------------------------------------------------------------------------- > Dec 5, 2012 2:05:23 PM org.apache.catalina.core.StandardWrapperValve invoke > SEVERE: Servlet.service() for servlet jsp threw exception > java.lang.NoSuchMethodError: org.apache.struts.util.RequestUtils.computeURL(Ljavax/servlet/jsp/PageContext;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/util/Map;Ljava/lang/String;Z)Ljava/lang/String; > at net.sf.navigator.taglib.DisplayMenuTag.setLocation(DisplayMenuTag.java:233) > at net.sf.navigator.taglib.DisplayMenuTag.setPageLocation(DisplayMenuTag.java:173) > at net.sf.navigator.taglib.DisplayMenuTag.setPageLocation(DisplayMenuTag.java:205) > at net.sf.navigator.taglib.DisplayMenuTag.doStartTag(DisplayMenuTag.java:123) > at org.apache.jsp.AYSMenu_jsp._jspx_meth_menu_005fdisplayMenu_005f0(AYSMenu_jsp.java:226) > at org.apache.jsp.AYSMenu_jsp._jspx_meth_menu_005fuseMenuDisplayer_005f0(AYSMenu_jsp.java:127) > at org.apache.jsp.AYSMenu_jsp._jspService(AYSMenu_jsp.java:88) > at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) > at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374) > at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342) > at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) > at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) > at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) > at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) > at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) > at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) > at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) > at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) > at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293) > at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190) > at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:291) > at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:769) > at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:698) > at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:891) > at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:690) > at java.lang.Thread.run(Thread.java:619) > ------------------------------------------------------------------------------------------------------------------------------------------------------------ > > Thanks in advance for the help, > Vijaya > ------------------------------------------------------------------------------ > LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial > Remotely access PCs and mobile devices and provide instant support > Improve your efficiency, and focus on delivering more value-add services > Discover what IT Professionals Know. Rescue delivers > http://p.sf.net/sfu/logmein_12329d2d_______________________________________________ > struts-menu-user mailing list > str...@li... > https://lists.sourceforge.net/lists/listinfo/struts-menu-user |
From: Vijaya <sv...@so...> - 2012-12-05 12:28:34
|
Hi, I installed struts-menu 2.3 under tomcat 5.5.16 and has been working fine. I upgraded tomcat to tomcat 6.0 and now struts menu gives the following error. Can you help me out as what may be the problem. The error I get is -------------------------------------------------------------------------------------------------------------------------------------------------------------- Dec 5, 2012 2:05:23 PM org.apache.catalina.core.StandardWrapperValve invoke SEVERE: Servlet.service() for servlet jsp threw exception java.lang.NoSuchMethodError: org.apache.struts.util.RequestUtils.computeURL(Ljavax/servlet/jsp/PageContext;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/util/Map;Ljava/lang/String;Z)Ljava/lang/String; at net.sf.navigator.taglib.DisplayMenuTag.setLocation(DisplayMenuTag.java:233) at net.sf.navigator.taglib.DisplayMenuTag.setPageLocation(DisplayMenuTag.java:173) at net.sf.navigator.taglib.DisplayMenuTag.setPageLocation(DisplayMenuTag.java:205) at net.sf.navigator.taglib.DisplayMenuTag.doStartTag(DisplayMenuTag.java:123) at org.apache.jsp.AYSMenu_jsp._jspx_meth_menu_005fdisplayMenu_005f0(AYSMenu_jsp.java:226) at org.apache.jsp.AYSMenu_jsp._jspx_meth_menu_005fuseMenuDisplayer_005f0(AYSMenu_jsp.java:127) at org.apache.jsp.AYSMenu_jsp._jspService(AYSMenu_jsp.java:88) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293) at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190) at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:291) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:769) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:698) at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:891) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:690) at java.lang.Thread.run(Thread.java:619) ------------------------------------------------------------------------------------------------------------------------------------------------------------ Thanks in advance for the help, Vijaya |
From: Matt R. <ma...@ra...> - 2011-07-12 17:44:29
|
You might need a LocaleFilter to switch the locale - or similar logic to reset it for JSTL. Here's one that I use with Spring: package org.appfuse.tutorial.webapp.filter; import org.appfuse.Constants; import org.springframework.context.i18n.LocaleContextHolder; import org.springframework.web.filter.OncePerRequestFilter; import javax.servlet.FilterChain; import javax.servlet.ServletException; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpSession; import javax.servlet.jsp.jstl.core.Config; import java.io.IOException; import java.util.Locale; import java.util.Map; /** * Filter to wrap request with a request including user preferred locale. */ public class LocaleFilter extends OncePerRequestFilter { /** * This method looks for a "locale" request parameter. If it finds one, it sets it as the preferred locale * and also configures it to work with JSTL. * * @param request the current request * @param response the current response * @param chain the chain * @throws IOException when something goes wrong * @throws ServletException when a communication failure happens */ @SuppressWarnings("unchecked") public void doFilterInternal(HttpServletRequest request, HttpServletResponse response, FilterChain chain) throws IOException, ServletException { String locale = request.getParameter("locale"); Locale preferredLocale = null; if (locale != null) { int indexOfUnderscore = locale.indexOf('_'); if (indexOfUnderscore != -1) { String language = locale.substring(0, indexOfUnderscore); String country = locale.substring(indexOfUnderscore + 1); preferredLocale = new Locale(language, country); } else { preferredLocale = new Locale(locale); } } HttpSession session = request.getSession(false); if (session != null) { if (preferredLocale == null) { preferredLocale = (Locale) session.getAttribute(Constants.PREFERRED_LOCALE_KEY); } else { session.setAttribute(Constants.PREFERRED_LOCALE_KEY, preferredLocale); Config.set(session, Config.FMT_LOCALE, preferredLocale); } if (preferredLocale != null && !(request instanceof LocaleRequestWrapper)) { request = new LocaleRequestWrapper(request, preferredLocale); LocaleContextHolder.setLocale(preferredLocale); } } chain.doFilter(request, response); // Reset thread-bound LocaleContext. LocaleContextHolder.setLocaleContext(null); } } On Jul 12, 2011, at 11:34 AM, max max wrote: > if you want more precision about my code i put you more :) > > --- En date de : Mar 12.7.11, max max <sta...@ya...> a écrit : > >> De: max max <sta...@ya...> >> Objet: Re: [struts-menu] Internationalization of menu items using Struts-menu with struts 2 >> À: "General mailing list for Struts Menu" <str...@li...> >> Date: Mardi 12 juillet 2011, 19h18 >> hi >> i want to change langage but i cannot do that i try to put >> the >> <context-param> >> >> <param-name>javax.servlet.jsp.jstl.fmt.localizationContext</param-name> >> >> <param-value>Global</param-value> >> </context-param> >> on my Web.xml its not working too. >> --- En date de : Mar 12.7.11, Matt Raible <ma...@ra...> >> a écrit : >> >>> De: Matt Raible <ma...@ra...> >>> Objet: Re: [struts-menu] Internationalization of menu >> items using Struts-menu with struts 2 >>> À: "General mailing list for Struts Menu" <str...@li...> >>> Date: Mardi 12 juillet 2011, 18h50 >>> What are you using to try and switch >>> the locale? Are you able to switch the locale for the >> rest >>> of your messages? >>> >>> On Jul 12, 2011, at 10:46 AM, yvan khekhone wrote: >>> >>>> >>>> hi >>>> i have the same configuration with struts2 and >> Struts >>> menu i cannot switch >>>> language. >>>> i show my code >>>> >>>> on my struts menu >>>> >>>> <?xml version="1.0" encoding="UTF-8"?> >>>> <MenuConfig> >>>> <Displayers> >>>> >>>> >>>> <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" /> >>>> <Menu name="Global.About" >>> title="animaux" page="animal.action" /> >>>> </Menus> >>>> >>>> </MenuConfig> >>>> >>>> on my jsp page. >>>> >>>> <%@ 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"%> >>>> >>>> <html> >>>> <head> >>>> >>>> </head> >>>> <body> >>>> >>>> <h1 class='title'>SiteMesh example >>> site: <sitemesh:write >>>> property='title'/></h1> >>>> <div> >>>> <div id="menu" class="menu"> >>>> <menu:useMenuDisplayer name="TabbedMenu" >>>> bundle="Global" > >>>> <menu:displayMenu name="Global.Home" /> >>>> <menu:displayMenu name="Global.About" /> >>>> </menu:useMenuDisplayer> >>>> </div> >>>> <div class='mainBody'> >>>> <sitemesh:write >>> property='body'/> >>>> </div> >>>> </div> >>>> <div class='disclaimer'>Site >>> disclaimer. This is an example.</div> >>>> >>>> </body> >>>> </html> >>>> i put attribut but its not working too :/ >>>> >>>> >>>> mraible wrote: >>>>> >>>>> Struts Menu uses JSTL in the "el" version to >>> resolve messages. >>>>> >>>>> On Feb 16, 2011, at 12:26 PM, Tiago Farias >> wrote: >>>>> >>>>>> So rude. Sorry I forgot to thank you for >>> saving me! Thank you very much! >>>>>> =D >>>>>> >>>>>> On Wed, Feb 16, 2011 at 4:25 PM, Tiago >> Farias >>> <aer...@gm...> >>> wrote: >>>>>> Yup! You're absolutely right. Now I'm >> just >>> curious. How does that work >>>>>> Matt? >>>>>> >>>>>> >>>>>> On Wed, Feb 16, 2011 at 1:40 PM, Matt >> Raible >>> <ma...@ra...> >>>>>> wrote: >>>>>> If you remove the bundle attribute and >> add the >>> following to your web.xml, >>>>>> it should work. The param name is the >> name of >>> your properties file in >>>>>> WEB-INF/classes, without the .properties >>> extension. >>>>>> >>>>>> <!-- Define the basename for a >>> resource bundle for I18N --> >>>>>> <context-param> >>>>>> >>>>>> >>> >> <param-name>javax.servlet.jsp.jstl.fmt.localizationContext</param-name> >>>>>> >>> >> <param-value>ApplicationResources</param-value> >>>>>> </context-param> >>>>>> >>>>>> >>>>>> On Feb 16, 2011, at 9:27 AM, Tiago >> Farias >>> wrote: >>>>>> >>>>>>> Hello, I'm trying to make a custom >> menu >>> for a web app and it all worked >>>>>>> just fine, but now I need to >>> internationalize it using a properties >>>>>>> file. This properties file already >> exists >>> and the whole app uses it. My >>>>>>> menu-config.xml is this: >>>>>>> >>>>>>> <Displayers> >>>>>>> >>> <Displayer name="Velocity" >>>>>>> >>> >> type="net.sf.navigator.displayer.VelocityMenuDisplayer"/> >>>>>>> </Displayers> >>>>>>> >>>>>>> <Menus> >>>>>>> <!-- >>> <Menu name="ecfMenu" title="ECFs" >>> location="?Contact"> >>>>>>> <Item >>> name="email" title="E-Mail" location="?EMail"/> >>>>>>> <Item >>> name="phone" title="Phone" location="?Phone"/> >>>>>>> >>> </Menu>--> >>>>>>> >>>>>>> <Menu >>> name="mainMenu" title="" > >>>>>>> <Item >>> name="ecfMenu" title="ECFs" roles="FISCO" >>>>>>> location="DisconnectedEcfsSearch" >> /> >>>>>>> <Item >>> name="reportsMenu" title="Relatórios" roles="ADMIN" >>>>>>> location="AlarmReportSearch"/> >>>>>>> <Item >>> name="fiscoMenu" title="Fisco" roles="ADMIN" >>>>>>> location="UpdateFiscoForm"/> >>>>>>> <Item >>> name="alarmMenu" title="Alarmes" roles="ADMIN" >>>>>>> location="AlarmNotification"/> >>>>>>> <Item >>> name="userMenu" title="application.header.users" >>>>>>> roles="ADMIN" >> location="UserSearch"/> >>>>>>> <Item >>> name="consoleMenu" title="Console" roles="FISCO" >>>>>>> location="ConsoleSearch"/> >>>>>>> </Menu> >>>>>>> >>>>>>> And my jsp file is this: >>>>>>> <%@taglib uri="http://struts-menu.sf.net/tag-el" prefix="menu" %> >>>>>>> >>>>>>> >>> <menu:useMenuDisplayer >>> permissions="rolesAdapter" >>>>>>> name="Velocity" >>> config="/WEB-INF/tabs.html" >>>>>>> >>> bundle="org.apache.struts.action.MESSAGE"> >>>>>>> >>> <menu:displayMenu name="mainMenu"/> >>>>>>> >>> </menu:useMenuDisplayer> >>>>>>> >>>>>>> The thing is that all the menu titles >> are >>> ok except for the "userMenu" >>>>>>> title that is displaying the key to >> the >>> properties file >>>>>>> (application.header.users). I wanted >> it to >>> get the i18n file and display >>>>>>> the value associated with this key. >> I'm >>> using struts2 and all the >>>>>>> tutorials I found for this are >> Struts1's. >>> Need help! Don't know what >>>>>>> else to do... >>>>>>> >>>>>>> Best regards! >>>>>>> >>> >> ------------------------------------------------------------------------------ >>>>>>> The ultimate all-in-one performance >>> toolkit: Intel(R) Parallel Studio >>>>>>> XE: >>>>>>> Pinpoint memory and threading errors >>> before they happen. >>>>>>> Find and fix more than 250 security >>> defects in the development cycle. >>>>>>> Locate bottlenecks in serial and >> parallel >>> code that limit performance. >>>>>>> http://p.sf.net/sfu/intel-dev2devfeb_______________________________________________ >>>>>>> struts-menu-user mailing list >>>>>>> str...@li... >>>>>>> https://lists.sourceforge.net/lists/listinfo/struts-menu-user >>>>>> >>>>>> >>>>>> >>> >> ------------------------------------------------------------------------------ >>>>>> The ultimate all-in-one performance >> toolkit: >>> Intel(R) Parallel Studio XE: >>>>>> Pinpoint memory and threading errors >> before >>> they happen. >>>>>> Find and fix more than 250 security >> defects in >>> the development cycle. >>>>>> Locate bottlenecks in serial and parallel >> code >>> that limit performance. >>>>>> http://p.sf.net/sfu/intel-dev2devfeb >>>>>> >>> _______________________________________________ >>>>>> struts-menu-user mailing list >>>>>> str...@li... >>>>>> https://lists.sourceforge.net/lists/listinfo/struts-menu-user >>>>>> >>>>>> >>>>>> >>>>>> >>> >> ------------------------------------------------------------------------------ >>>>>> The ultimate all-in-one performance >> toolkit: >>> Intel(R) Parallel Studio XE: >>>>>> Pinpoint memory and threading errors >> before >>> they happen. >>>>>> Find and fix more than 250 security >> defects in >>> the development cycle. >>>>>> Locate bottlenecks in serial and parallel >> code >>> that limit performance. >>>>>> http://p.sf.net/sfu/intel-dev2devfeb_______________________________________________ >>>>>> struts-menu-user mailing list >>>>>> str...@li... >>>>>> https://lists.sourceforge.net/lists/listinfo/struts-menu-user >>>>> >>>>> >>>>> >>> >> ------------------------------------------------------------------------------ >>>>> The ultimate all-in-one performance toolkit: >>> Intel(R) Parallel Studio XE: >>>>> Pinpoint memory and threading errors before >> they >>> happen. >>>>> Find and fix more than 250 security defects >> in the >>> development cycle. >>>>> Locate bottlenecks in serial and parallel >> code >>> that limit performance. >>>>> http://p.sf.net/sfu/intel-dev2devfeb >>>>> >> _______________________________________________ >>>>> struts-menu-user mailing list >>>>> str...@li... >>>>> https://lists.sourceforge.net/lists/listinfo/struts-menu-user >>>>> >>>>> >>>> >>>> -- >>>> View this message in context: http://old.nabble.com/Internationalization-of-menu-items-using-Struts-menu-with-struts-2-tp30942065p32047366.html >>>> Sent from the struts-menu-user mailing list >> archive at >>> Nabble.com. >>>> >>>> >>>> >>> >> ------------------------------------------------------------------------------ >>>> AppSumo Presents a FREE Video for the >> SourceForge >>> Community by Eric >>>> Ries, the creator of the Lean Startup Methodology >> on >>> "Lean Startup >>>> Secrets Revealed." This video shows you how to >>> validate your ideas, >>>> optimize your ideas and identify your business >>> strategy. >>>> http://p.sf.net/sfu/appsumosfdev2dev >>>> _______________________________________________ >>>> struts-menu-user mailing list >>>> str...@li... >>>> https://lists.sourceforge.net/lists/listinfo/struts-menu-user >>> >>> >>> >> ------------------------------------------------------------------------------ >>> AppSumo Presents a FREE Video for the SourceForge >> Community >>> by Eric >>> Ries, the creator of the Lean Startup Methodology on >> "Lean >>> Startup >>> Secrets Revealed." This video shows you how to >> validate >>> your ideas, >>> optimize your ideas and identify your business >> strategy. >>> http://p.sf.net/sfu/appsumosfdev2dev >>> _______________________________________________ >>> struts-menu-user mailing list >>> str...@li... >>> https://lists.sourceforge.net/lists/listinfo/struts-menu-user >>> >> >> ------------------------------------------------------------------------------ >> AppSumo Presents a FREE Video for the SourceForge Community >> by Eric >> Ries, the creator of the Lean Startup Methodology on "Lean >> Startup >> Secrets Revealed." This video shows you how to validate >> your ideas, >> optimize your ideas and identify your business strategy. >> http://p.sf.net/sfu/appsumosfdev2dev >> _______________________________________________ >> struts-menu-user mailing list >> str...@li... >> https://lists.sourceforge.net/lists/listinfo/struts-menu-user >> > > ------------------------------------------------------------------------------ > AppSumo Presents a FREE Video for the SourceForge Community by Eric > Ries, the creator of the Lean Startup Methodology on "Lean Startup > Secrets Revealed." This video shows you how to validate your ideas, > optimize your ideas and identify your business strategy. > http://p.sf.net/sfu/appsumosfdev2dev > _______________________________________________ > struts-menu-user mailing list > str...@li... > https://lists.sourceforge.net/lists/listinfo/struts-menu-user |
From: max m. <sta...@ya...> - 2011-07-12 17:34:15
|
if you want more precision about my code i put you more :) --- En date de : Mar 12.7.11, max max <sta...@ya...> a écrit : > De: max max <sta...@ya...> > Objet: Re: [struts-menu] Internationalization of menu items using Struts-menu with struts 2 > À: "General mailing list for Struts Menu" <str...@li...> > Date: Mardi 12 juillet 2011, 19h18 > hi > i want to change langage but i cannot do that i try to put > the > <context-param> > > <param-name>javax.servlet.jsp.jstl.fmt.localizationContext</param-name> > > <param-value>Global</param-value> > </context-param> > on my Web.xml its not working too. > --- En date de : Mar 12.7.11, Matt Raible <ma...@ra...> > a écrit : > > > De: Matt Raible <ma...@ra...> > > Objet: Re: [struts-menu] Internationalization of menu > items using Struts-menu with struts 2 > > À: "General mailing list for Struts Menu" <str...@li...> > > Date: Mardi 12 juillet 2011, 18h50 > > What are you using to try and switch > > the locale? Are you able to switch the locale for the > rest > > of your messages? > > > > On Jul 12, 2011, at 10:46 AM, yvan khekhone wrote: > > > > > > > > hi > > > i have the same configuration with struts2 and > Struts > > menu i cannot switch > > > language. > > > i show my code > > > > > > on my struts menu > > > > > > <?xml version="1.0" encoding="UTF-8"?> > > > <MenuConfig> > > > <Displayers> > > > > > > > > > <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" /> > > > <Menu name="Global.About" > > title="animaux" page="animal.action" /> > > > </Menus> > > > > > > </MenuConfig> > > > > > > on my jsp page. > > > > > > <%@ 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"%> > > > > > > <html> > > > <head> > > > > > > </head> > > > <body> > > > > > > <h1 class='title'>SiteMesh example > > site: <sitemesh:write > > > property='title'/></h1> > > > <div> > > > <div id="menu" class="menu"> > > > <menu:useMenuDisplayer name="TabbedMenu" > > > bundle="Global" > > > > <menu:displayMenu name="Global.Home" /> > > > <menu:displayMenu name="Global.About" /> > > > </menu:useMenuDisplayer> > > > </div> > > > <div class='mainBody'> > > > <sitemesh:write > > property='body'/> > > > </div> > > > </div> > > > <div class='disclaimer'>Site > > disclaimer. This is an example.</div> > > > > > > </body> > > > </html> > > > i put attribut but its not working too :/ > > > > > > > > > mraible wrote: > > >> > > >> Struts Menu uses JSTL in the "el" version to > > resolve messages. > > >> > > >> On Feb 16, 2011, at 12:26 PM, Tiago Farias > wrote: > > >> > > >>> So rude. Sorry I forgot to thank you for > > saving me! Thank you very much! > > >>> =D > > >>> > > >>> On Wed, Feb 16, 2011 at 4:25 PM, Tiago > Farias > > <aer...@gm...> > > wrote: > > >>> Yup! You're absolutely right. Now I'm > just > > curious. How does that work > > >>> Matt? > > >>> > > >>> > > >>> On Wed, Feb 16, 2011 at 1:40 PM, Matt > Raible > > <ma...@ra...> > > >>> wrote: > > >>> If you remove the bundle attribute and > add the > > following to your web.xml, > > >>> it should work. The param name is the > name of > > your properties file in > > >>> WEB-INF/classes, without the .properties > > extension. > > >>> > > >>> <!-- Define the basename for a > > resource bundle for I18N --> > > >>> <context-param> > > >>> > > >>> > > > <param-name>javax.servlet.jsp.jstl.fmt.localizationContext</param-name> > > >>> > > > <param-value>ApplicationResources</param-value> > > >>> </context-param> > > >>> > > >>> > > >>> On Feb 16, 2011, at 9:27 AM, Tiago > Farias > > wrote: > > >>> > > >>>> Hello, I'm trying to make a custom > menu > > for a web app and it all worked > > >>>> just fine, but now I need to > > internationalize it using a properties > > >>>> file. This properties file already > exists > > and the whole app uses it. My > > >>>> menu-config.xml is this: > > >>>> > > >>>> <Displayers> > > >>>> > > <Displayer name="Velocity" > > >>>> > > > type="net.sf.navigator.displayer.VelocityMenuDisplayer"/> > > >>>> </Displayers> > > >>>> > > >>>> <Menus> > > >>>> <!-- > > <Menu name="ecfMenu" title="ECFs" > > location="?Contact"> > > >>>> <Item > > name="email" title="E-Mail" location="?EMail"/> > > >>>> <Item > > name="phone" title="Phone" location="?Phone"/> > > >>>> > > </Menu>--> > > >>>> > > >>>> <Menu > > name="mainMenu" title="" > > > >>>> <Item > > name="ecfMenu" title="ECFs" roles="FISCO" > > >>>> location="DisconnectedEcfsSearch" > /> > > >>>> <Item > > name="reportsMenu" title="Relatórios" roles="ADMIN" > > >>>> location="AlarmReportSearch"/> > > >>>> <Item > > name="fiscoMenu" title="Fisco" roles="ADMIN" > > >>>> location="UpdateFiscoForm"/> > > >>>> <Item > > name="alarmMenu" title="Alarmes" roles="ADMIN" > > >>>> location="AlarmNotification"/> > > >>>> <Item > > name="userMenu" title="application.header.users" > > >>>> roles="ADMIN" > location="UserSearch"/> > > >>>> <Item > > name="consoleMenu" title="Console" roles="FISCO" > > >>>> location="ConsoleSearch"/> > > >>>> </Menu> > > >>>> > > >>>> And my jsp file is this: > > >>>> <%@taglib uri="http://struts-menu.sf.net/tag-el" prefix="menu" %> > > >>>> > > >>>> > > <menu:useMenuDisplayer > > permissions="rolesAdapter" > > >>>> name="Velocity" > > config="/WEB-INF/tabs.html" > > >>>> > > bundle="org.apache.struts.action.MESSAGE"> > > >>>> > > <menu:displayMenu name="mainMenu"/> > > >>>> > > </menu:useMenuDisplayer> > > >>>> > > >>>> The thing is that all the menu titles > are > > ok except for the "userMenu" > > >>>> title that is displaying the key to > the > > properties file > > >>>> (application.header.users). I wanted > it to > > get the i18n file and display > > >>>> the value associated with this key. > I'm > > using struts2 and all the > > >>>> tutorials I found for this are > Struts1's. > > Need help! Don't know what > > >>>> else to do... > > >>>> > > >>>> Best regards! > > >>>> > > > ------------------------------------------------------------------------------ > > >>>> The ultimate all-in-one performance > > toolkit: Intel(R) Parallel Studio > > >>>> XE: > > >>>> Pinpoint memory and threading errors > > before they happen. > > >>>> Find and fix more than 250 security > > defects in the development cycle. > > >>>> Locate bottlenecks in serial and > parallel > > code that limit performance. > > >>>> http://p.sf.net/sfu/intel-dev2devfeb_______________________________________________ > > >>>> struts-menu-user mailing list > > >>>> str...@li... > > >>>> https://lists.sourceforge.net/lists/listinfo/struts-menu-user > > >>> > > >>> > > >>> > > > ------------------------------------------------------------------------------ > > >>> The ultimate all-in-one performance > toolkit: > > Intel(R) Parallel Studio XE: > > >>> Pinpoint memory and threading errors > before > > they happen. > > >>> Find and fix more than 250 security > defects in > > the development cycle. > > >>> Locate bottlenecks in serial and parallel > code > > that limit performance. > > >>> http://p.sf.net/sfu/intel-dev2devfeb > > >>> > > _______________________________________________ > > >>> struts-menu-user mailing list > > >>> str...@li... > > >>> https://lists.sourceforge.net/lists/listinfo/struts-menu-user > > >>> > > >>> > > >>> > > >>> > > > ------------------------------------------------------------------------------ > > >>> The ultimate all-in-one performance > toolkit: > > Intel(R) Parallel Studio XE: > > >>> Pinpoint memory and threading errors > before > > they happen. > > >>> Find and fix more than 250 security > defects in > > the development cycle. > > >>> Locate bottlenecks in serial and parallel > code > > that limit performance. > > >>> http://p.sf.net/sfu/intel-dev2devfeb_______________________________________________ > > >>> struts-menu-user mailing list > > >>> str...@li... > > >>> https://lists.sourceforge.net/lists/listinfo/struts-menu-user > > >> > > >> > > >> > > > ------------------------------------------------------------------------------ > > >> The ultimate all-in-one performance toolkit: > > Intel(R) Parallel Studio XE: > > >> Pinpoint memory and threading errors before > they > > happen. > > >> Find and fix more than 250 security defects > in the > > development cycle. > > >> Locate bottlenecks in serial and parallel > code > > that limit performance. > > >> http://p.sf.net/sfu/intel-dev2devfeb > > >> > _______________________________________________ > > >> struts-menu-user mailing list > > >> str...@li... > > >> https://lists.sourceforge.net/lists/listinfo/struts-menu-user > > >> > > >> > > > > > > -- > > > View this message in context: http://old.nabble.com/Internationalization-of-menu-items-using-Struts-menu-with-struts-2-tp30942065p32047366.html > > > Sent from the struts-menu-user mailing list > archive at > > Nabble.com. > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > AppSumo Presents a FREE Video for the > SourceForge > > Community by Eric > > > Ries, the creator of the Lean Startup Methodology > on > > "Lean Startup > > > Secrets Revealed." This video shows you how to > > validate your ideas, > > > optimize your ideas and identify your business > > strategy. > > > http://p.sf.net/sfu/appsumosfdev2dev > > > _______________________________________________ > > > struts-menu-user mailing list > > > str...@li... > > > https://lists.sourceforge.net/lists/listinfo/struts-menu-user > > > > > > > ------------------------------------------------------------------------------ > > AppSumo Presents a FREE Video for the SourceForge > Community > > by Eric > > Ries, the creator of the Lean Startup Methodology on > "Lean > > Startup > > Secrets Revealed." This video shows you how to > validate > > your ideas, > > optimize your ideas and identify your business > strategy. > > http://p.sf.net/sfu/appsumosfdev2dev > > _______________________________________________ > > struts-menu-user mailing list > > str...@li... > > https://lists.sourceforge.net/lists/listinfo/struts-menu-user > > > > ------------------------------------------------------------------------------ > AppSumo Presents a FREE Video for the SourceForge Community > by Eric > Ries, the creator of the Lean Startup Methodology on "Lean > Startup > Secrets Revealed." This video shows you how to validate > your ideas, > optimize your ideas and identify your business strategy. > http://p.sf.net/sfu/appsumosfdev2dev > _______________________________________________ > struts-menu-user mailing list > str...@li... > https://lists.sourceforge.net/lists/listinfo/struts-menu-user > |
From: max m. <sta...@ya...> - 2011-07-12 17:18:39
|
hi i want to change langage but i cannot do that i try to put the <context-param> <param-name>javax.servlet.jsp.jstl.fmt.localizationContext</param-name> <param-value>Global</param-value> </context-param> on my Web.xml its not working too. --- En date de : Mar 12.7.11, Matt Raible <ma...@ra...> a écrit : > De: Matt Raible <ma...@ra...> > Objet: Re: [struts-menu] Internationalization of menu items using Struts-menu with struts 2 > À: "General mailing list for Struts Menu" <str...@li...> > Date: Mardi 12 juillet 2011, 18h50 > What are you using to try and switch > the locale? Are you able to switch the locale for the rest > of your messages? > > On Jul 12, 2011, at 10:46 AM, yvan khekhone wrote: > > > > > hi > > i have the same configuration with struts2 and Struts > menu i cannot switch > > language. > > i show my code > > > > on my struts menu > > > > <?xml version="1.0" encoding="UTF-8"?> > > <MenuConfig> > > <Displayers> > > > > > > <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" /> > > <Menu name="Global.About" > title="animaux" page="animal.action" /> > > </Menus> > > > > </MenuConfig> > > > > on my jsp page. > > > > <%@ 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"%> > > > > <html> > > <head> > > > > </head> > > <body> > > > > <h1 class='title'>SiteMesh example > site: <sitemesh:write > > property='title'/></h1> > > <div> > > <div id="menu" class="menu"> > > <menu:useMenuDisplayer name="TabbedMenu" > > bundle="Global" > > > <menu:displayMenu name="Global.Home" /> > > <menu:displayMenu name="Global.About" /> > > </menu:useMenuDisplayer> > > </div> > > <div class='mainBody'> > > <sitemesh:write > property='body'/> > > </div> > > </div> > > <div class='disclaimer'>Site > disclaimer. This is an example.</div> > > > > </body> > > </html> > > i put attribut but its not working too :/ > > > > > > mraible wrote: > >> > >> Struts Menu uses JSTL in the "el" version to > resolve messages. > >> > >> On Feb 16, 2011, at 12:26 PM, Tiago Farias wrote: > >> > >>> So rude. Sorry I forgot to thank you for > saving me! Thank you very much! > >>> =D > >>> > >>> On Wed, Feb 16, 2011 at 4:25 PM, Tiago Farias > <aer...@gm...> > wrote: > >>> Yup! You're absolutely right. Now I'm just > curious. How does that work > >>> Matt? > >>> > >>> > >>> On Wed, Feb 16, 2011 at 1:40 PM, Matt Raible > <ma...@ra...> > >>> wrote: > >>> If you remove the bundle attribute and add the > following to your web.xml, > >>> it should work. The param name is the name of > your properties file in > >>> WEB-INF/classes, without the .properties > extension. > >>> > >>> <!-- Define the basename for a > resource bundle for I18N --> > >>> <context-param> > >>> > >>> > <param-name>javax.servlet.jsp.jstl.fmt.localizationContext</param-name> > >>> > <param-value>ApplicationResources</param-value> > >>> </context-param> > >>> > >>> > >>> On Feb 16, 2011, at 9:27 AM, Tiago Farias > wrote: > >>> > >>>> Hello, I'm trying to make a custom menu > for a web app and it all worked > >>>> just fine, but now I need to > internationalize it using a properties > >>>> file. This properties file already exists > and the whole app uses it. My > >>>> menu-config.xml is this: > >>>> > >>>> <Displayers> > >>>> > <Displayer name="Velocity" > >>>> > type="net.sf.navigator.displayer.VelocityMenuDisplayer"/> > >>>> </Displayers> > >>>> > >>>> <Menus> > >>>> <!-- > <Menu name="ecfMenu" title="ECFs" > location="?Contact"> > >>>> <Item > name="email" title="E-Mail" location="?EMail"/> > >>>> <Item > name="phone" title="Phone" location="?Phone"/> > >>>> > </Menu>--> > >>>> > >>>> <Menu > name="mainMenu" title="" > > >>>> <Item > name="ecfMenu" title="ECFs" roles="FISCO" > >>>> location="DisconnectedEcfsSearch" /> > >>>> <Item > name="reportsMenu" title="Relatórios" roles="ADMIN" > >>>> location="AlarmReportSearch"/> > >>>> <Item > name="fiscoMenu" title="Fisco" roles="ADMIN" > >>>> location="UpdateFiscoForm"/> > >>>> <Item > name="alarmMenu" title="Alarmes" roles="ADMIN" > >>>> location="AlarmNotification"/> > >>>> <Item > name="userMenu" title="application.header.users" > >>>> roles="ADMIN" location="UserSearch"/> > >>>> <Item > name="consoleMenu" title="Console" roles="FISCO" > >>>> location="ConsoleSearch"/> > >>>> </Menu> > >>>> > >>>> And my jsp file is this: > >>>> <%@taglib uri="http://struts-menu.sf.net/tag-el" prefix="menu" %> > >>>> > >>>> > <menu:useMenuDisplayer > permissions="rolesAdapter" > >>>> name="Velocity" > config="/WEB-INF/tabs.html" > >>>> > bundle="org.apache.struts.action.MESSAGE"> > >>>> > <menu:displayMenu name="mainMenu"/> > >>>> > </menu:useMenuDisplayer> > >>>> > >>>> The thing is that all the menu titles are > ok except for the "userMenu" > >>>> title that is displaying the key to the > properties file > >>>> (application.header.users). I wanted it to > get the i18n file and display > >>>> the value associated with this key. I'm > using struts2 and all the > >>>> tutorials I found for this are Struts1's. > Need help! Don't know what > >>>> else to do... > >>>> > >>>> Best regards! > >>>> > ------------------------------------------------------------------------------ > >>>> The ultimate all-in-one performance > toolkit: Intel(R) Parallel Studio > >>>> XE: > >>>> Pinpoint memory and threading errors > before they happen. > >>>> Find and fix more than 250 security > defects in the development cycle. > >>>> Locate bottlenecks in serial and parallel > code that limit performance. > >>>> http://p.sf.net/sfu/intel-dev2devfeb_______________________________________________ > >>>> struts-menu-user mailing list > >>>> str...@li... > >>>> https://lists.sourceforge.net/lists/listinfo/struts-menu-user > >>> > >>> > >>> > ------------------------------------------------------------------------------ > >>> The ultimate all-in-one performance toolkit: > Intel(R) Parallel Studio XE: > >>> Pinpoint memory and threading errors before > they happen. > >>> Find and fix more than 250 security defects in > the development cycle. > >>> Locate bottlenecks in serial and parallel code > that limit performance. > >>> http://p.sf.net/sfu/intel-dev2devfeb > >>> > _______________________________________________ > >>> struts-menu-user mailing list > >>> str...@li... > >>> https://lists.sourceforge.net/lists/listinfo/struts-menu-user > >>> > >>> > >>> > >>> > ------------------------------------------------------------------------------ > >>> The ultimate all-in-one performance toolkit: > Intel(R) Parallel Studio XE: > >>> Pinpoint memory and threading errors before > they happen. > >>> Find and fix more than 250 security defects in > the development cycle. > >>> Locate bottlenecks in serial and parallel code > that limit performance. > >>> http://p.sf.net/sfu/intel-dev2devfeb_______________________________________________ > >>> struts-menu-user mailing list > >>> str...@li... > >>> https://lists.sourceforge.net/lists/listinfo/struts-menu-user > >> > >> > >> > ------------------------------------------------------------------------------ > >> The ultimate all-in-one performance toolkit: > Intel(R) Parallel Studio XE: > >> Pinpoint memory and threading errors before they > happen. > >> Find and fix more than 250 security defects in the > development cycle. > >> Locate bottlenecks in serial and parallel code > that limit performance. > >> http://p.sf.net/sfu/intel-dev2devfeb > >> _______________________________________________ > >> struts-menu-user mailing list > >> str...@li... > >> https://lists.sourceforge.net/lists/listinfo/struts-menu-user > >> > >> > > > > -- > > View this message in context: http://old.nabble.com/Internationalization-of-menu-items-using-Struts-menu-with-struts-2-tp30942065p32047366.html > > Sent from the struts-menu-user mailing list archive at > Nabble.com. > > > > > > > ------------------------------------------------------------------------------ > > AppSumo Presents a FREE Video for the SourceForge > Community by Eric > > Ries, the creator of the Lean Startup Methodology on > "Lean Startup > > Secrets Revealed." This video shows you how to > validate your ideas, > > optimize your ideas and identify your business > strategy. > > http://p.sf.net/sfu/appsumosfdev2dev > > _______________________________________________ > > struts-menu-user mailing list > > str...@li... > > https://lists.sourceforge.net/lists/listinfo/struts-menu-user > > > ------------------------------------------------------------------------------ > AppSumo Presents a FREE Video for the SourceForge Community > by Eric > Ries, the creator of the Lean Startup Methodology on "Lean > Startup > Secrets Revealed." This video shows you how to validate > your ideas, > optimize your ideas and identify your business strategy. > http://p.sf.net/sfu/appsumosfdev2dev > _______________________________________________ > struts-menu-user mailing list > str...@li... > https://lists.sourceforge.net/lists/listinfo/struts-menu-user > |
From: Matt R. <ma...@ra...> - 2011-07-12 17:15:21
|
What are you using to try and switch the locale? Are you able to switch the locale for the rest of your messages? On Jul 12, 2011, at 10:46 AM, yvan khekhone wrote: > > hi > i have the same configuration with struts2 and Struts menu i cannot switch > language. > i show my code > > on my struts menu > > <?xml version="1.0" encoding="UTF-8"?> > <MenuConfig> > <Displayers> > > > <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" /> > <Menu name="Global.About" title="animaux" page="animal.action" /> > </Menus> > > </MenuConfig> > > on my jsp page. > > <%@ 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"%> > > <html> > <head> > > </head> > <body> > > <h1 class='title'>SiteMesh example site: <sitemesh:write > property='title'/></h1> > <div> > <div id="menu" class="menu"> > <menu:useMenuDisplayer name="TabbedMenu" > bundle="Global" > > <menu:displayMenu name="Global.Home" /> > <menu:displayMenu name="Global.About" /> > </menu:useMenuDisplayer> > </div> > <div class='mainBody'> > <sitemesh:write property='body'/> > </div> > </div> > <div class='disclaimer'>Site disclaimer. This is an example.</div> > > </body> > </html> > i put attribut but its not working too :/ > > > mraible wrote: >> >> Struts Menu uses JSTL in the "el" version to resolve messages. >> >> On Feb 16, 2011, at 12:26 PM, Tiago Farias wrote: >> >>> So rude. Sorry I forgot to thank you for saving me! Thank you very much! >>> =D >>> >>> On Wed, Feb 16, 2011 at 4:25 PM, Tiago Farias <aer...@gm...> wrote: >>> Yup! You're absolutely right. Now I'm just curious. How does that work >>> Matt? >>> >>> >>> On Wed, Feb 16, 2011 at 1:40 PM, Matt Raible <ma...@ra...> >>> wrote: >>> If you remove the bundle attribute and add the following to your web.xml, >>> it should work. The param name is the name of your properties file in >>> WEB-INF/classes, without the .properties extension. >>> >>> <!-- Define the basename for a resource bundle for I18N --> >>> <context-param> >>> >>> <param-name>javax.servlet.jsp.jstl.fmt.localizationContext</param-name> >>> <param-value>ApplicationResources</param-value> >>> </context-param> >>> >>> >>> On Feb 16, 2011, at 9:27 AM, Tiago Farias wrote: >>> >>>> Hello, I'm trying to make a custom menu for a web app and it all worked >>>> just fine, but now I need to internationalize it using a properties >>>> file. This properties file already exists and the whole app uses it. My >>>> menu-config.xml is this: >>>> >>>> <Displayers> >>>> <Displayer name="Velocity" >>>> type="net.sf.navigator.displayer.VelocityMenuDisplayer"/> >>>> </Displayers> >>>> >>>> <Menus> >>>> <!-- <Menu name="ecfMenu" title="ECFs" location="?Contact"> >>>> <Item name="email" title="E-Mail" location="?EMail"/> >>>> <Item name="phone" title="Phone" location="?Phone"/> >>>> </Menu>--> >>>> >>>> <Menu name="mainMenu" title="" > >>>> <Item name="ecfMenu" title="ECFs" roles="FISCO" >>>> location="DisconnectedEcfsSearch" /> >>>> <Item name="reportsMenu" title="Relatórios" roles="ADMIN" >>>> location="AlarmReportSearch"/> >>>> <Item name="fiscoMenu" title="Fisco" roles="ADMIN" >>>> location="UpdateFiscoForm"/> >>>> <Item name="alarmMenu" title="Alarmes" roles="ADMIN" >>>> location="AlarmNotification"/> >>>> <Item name="userMenu" title="application.header.users" >>>> roles="ADMIN" location="UserSearch"/> >>>> <Item name="consoleMenu" title="Console" roles="FISCO" >>>> location="ConsoleSearch"/> >>>> </Menu> >>>> >>>> And my jsp file is this: >>>> <%@taglib uri="http://struts-menu.sf.net/tag-el" prefix="menu" %> >>>> >>>> <menu:useMenuDisplayer permissions="rolesAdapter" >>>> name="Velocity" config="/WEB-INF/tabs.html" >>>> bundle="org.apache.struts.action.MESSAGE"> >>>> <menu:displayMenu name="mainMenu"/> >>>> </menu:useMenuDisplayer> >>>> >>>> The thing is that all the menu titles are ok except for the "userMenu" >>>> title that is displaying the key to the properties file >>>> (application.header.users). I wanted it to get the i18n file and display >>>> the value associated with this key. I'm using struts2 and all the >>>> tutorials I found for this are Struts1's. Need help! Don't know what >>>> else to do... >>>> >>>> Best regards! >>>> ------------------------------------------------------------------------------ >>>> The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio >>>> XE: >>>> Pinpoint memory and threading errors before they happen. >>>> Find and fix more than 250 security defects in the development cycle. >>>> Locate bottlenecks in serial and parallel code that limit performance. >>>> http://p.sf.net/sfu/intel-dev2devfeb_______________________________________________ >>>> struts-menu-user mailing list >>>> str...@li... >>>> https://lists.sourceforge.net/lists/listinfo/struts-menu-user >>> >>> >>> ------------------------------------------------------------------------------ >>> The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: >>> Pinpoint memory and threading errors before they happen. >>> Find and fix more than 250 security defects in the development cycle. >>> Locate bottlenecks in serial and parallel code that limit performance. >>> http://p.sf.net/sfu/intel-dev2devfeb >>> _______________________________________________ >>> struts-menu-user mailing list >>> str...@li... >>> https://lists.sourceforge.net/lists/listinfo/struts-menu-user >>> >>> >>> >>> ------------------------------------------------------------------------------ >>> The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: >>> Pinpoint memory and threading errors before they happen. >>> Find and fix more than 250 security defects in the development cycle. >>> Locate bottlenecks in serial and parallel code that limit performance. >>> http://p.sf.net/sfu/intel-dev2devfeb_______________________________________________ >>> struts-menu-user mailing list >>> str...@li... >>> https://lists.sourceforge.net/lists/listinfo/struts-menu-user >> >> >> ------------------------------------------------------------------------------ >> The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: >> Pinpoint memory and threading errors before they happen. >> Find and fix more than 250 security defects in the development cycle. >> Locate bottlenecks in serial and parallel code that limit performance. >> http://p.sf.net/sfu/intel-dev2devfeb >> _______________________________________________ >> struts-menu-user mailing list >> str...@li... >> https://lists.sourceforge.net/lists/listinfo/struts-menu-user >> >> > > -- > View this message in context: http://old.nabble.com/Internationalization-of-menu-items-using-Struts-menu-with-struts-2-tp30942065p32047366.html > Sent from the struts-menu-user mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------------ > AppSumo Presents a FREE Video for the SourceForge Community by Eric > Ries, the creator of the Lean Startup Methodology on "Lean Startup > Secrets Revealed." This video shows you how to validate your ideas, > optimize your ideas and identify your business strategy. > http://p.sf.net/sfu/appsumosfdev2dev > _______________________________________________ > struts-menu-user mailing list > str...@li... > https://lists.sourceforge.net/lists/listinfo/struts-menu-user |
From: yvan k. <sta...@ya...> - 2011-07-12 16:46:48
|
hi i have the same configuration with struts2 and Struts menu i cannot switch language. i show my code on my struts menu <?xml version="1.0" encoding="UTF-8"?> <MenuConfig> <Displayers> <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" /> <Menu name="Global.About" title="animaux" page="animal.action" /> </Menus> </MenuConfig> on my jsp page. <%@ 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"%> <html> <head> </head> <body> <h1 class='title'>SiteMesh example site: <sitemesh:write property='title'/></h1> <div> <div id="menu" class="menu"> <menu:useMenuDisplayer name="TabbedMenu" bundle="Global" > <menu:displayMenu name="Global.Home" /> <menu:displayMenu name="Global.About" /> </menu:useMenuDisplayer> </div> <div class='mainBody'> <sitemesh:write property='body'/> </div> </div> <div class='disclaimer'>Site disclaimer. This is an example.</div> </body> </html> i put attribut but its not working too :/ mraible wrote: > > Struts Menu uses JSTL in the "el" version to resolve messages. > > On Feb 16, 2011, at 12:26 PM, Tiago Farias wrote: > >> So rude. Sorry I forgot to thank you for saving me! Thank you very much! >> =D >> >> On Wed, Feb 16, 2011 at 4:25 PM, Tiago Farias <aer...@gm...> wrote: >> Yup! You're absolutely right. Now I'm just curious. How does that work >> Matt? >> >> >> On Wed, Feb 16, 2011 at 1:40 PM, Matt Raible <ma...@ra...> >> wrote: >> If you remove the bundle attribute and add the following to your web.xml, >> it should work. The param name is the name of your properties file in >> WEB-INF/classes, without the .properties extension. >> >> <!-- Define the basename for a resource bundle for I18N --> >> <context-param> >> >> <param-name>javax.servlet.jsp.jstl.fmt.localizationContext</param-name> >> <param-value>ApplicationResources</param-value> >> </context-param> >> >> >> On Feb 16, 2011, at 9:27 AM, Tiago Farias wrote: >> >>> Hello, I'm trying to make a custom menu for a web app and it all worked >>> just fine, but now I need to internationalize it using a properties >>> file. This properties file already exists and the whole app uses it. My >>> menu-config.xml is this: >>> >>> <Displayers> >>> <Displayer name="Velocity" >>> type="net.sf.navigator.displayer.VelocityMenuDisplayer"/> >>> </Displayers> >>> >>> <Menus> >>> <!-- <Menu name="ecfMenu" title="ECFs" location="?Contact"> >>> <Item name="email" title="E-Mail" location="?EMail"/> >>> <Item name="phone" title="Phone" location="?Phone"/> >>> </Menu>--> >>> >>> <Menu name="mainMenu" title="" > >>> <Item name="ecfMenu" title="ECFs" roles="FISCO" >>> location="DisconnectedEcfsSearch" /> >>> <Item name="reportsMenu" title="Relatórios" roles="ADMIN" >>> location="AlarmReportSearch"/> >>> <Item name="fiscoMenu" title="Fisco" roles="ADMIN" >>> location="UpdateFiscoForm"/> >>> <Item name="alarmMenu" title="Alarmes" roles="ADMIN" >>> location="AlarmNotification"/> >>> <Item name="userMenu" title="application.header.users" >>> roles="ADMIN" location="UserSearch"/> >>> <Item name="consoleMenu" title="Console" roles="FISCO" >>> location="ConsoleSearch"/> >>> </Menu> >>> >>> And my jsp file is this: >>> <%@taglib uri="http://struts-menu.sf.net/tag-el" prefix="menu" %> >>> >>> <menu:useMenuDisplayer permissions="rolesAdapter" >>> name="Velocity" config="/WEB-INF/tabs.html" >>> bundle="org.apache.struts.action.MESSAGE"> >>> <menu:displayMenu name="mainMenu"/> >>> </menu:useMenuDisplayer> >>> >>> The thing is that all the menu titles are ok except for the "userMenu" >>> title that is displaying the key to the properties file >>> (application.header.users). I wanted it to get the i18n file and display >>> the value associated with this key. I'm using struts2 and all the >>> tutorials I found for this are Struts1's. Need help! Don't know what >>> else to do... >>> >>> Best regards! >>> ------------------------------------------------------------------------------ >>> The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio >>> XE: >>> Pinpoint memory and threading errors before they happen. >>> Find and fix more than 250 security defects in the development cycle. >>> Locate bottlenecks in serial and parallel code that limit performance. >>> http://p.sf.net/sfu/intel-dev2devfeb_______________________________________________ >>> struts-menu-user mailing list >>> str...@li... >>> https://lists.sourceforge.net/lists/listinfo/struts-menu-user >> >> >> ------------------------------------------------------------------------------ >> The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: >> Pinpoint memory and threading errors before they happen. >> Find and fix more than 250 security defects in the development cycle. >> Locate bottlenecks in serial and parallel code that limit performance. >> http://p.sf.net/sfu/intel-dev2devfeb >> _______________________________________________ >> struts-menu-user mailing list >> str...@li... >> https://lists.sourceforge.net/lists/listinfo/struts-menu-user >> >> >> >> ------------------------------------------------------------------------------ >> The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: >> Pinpoint memory and threading errors before they happen. >> Find and fix more than 250 security defects in the development cycle. >> Locate bottlenecks in serial and parallel code that limit performance. >> http://p.sf.net/sfu/intel-dev2devfeb_______________________________________________ >> struts-menu-user mailing list >> str...@li... >> https://lists.sourceforge.net/lists/listinfo/struts-menu-user > > > ------------------------------------------------------------------------------ > The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: > Pinpoint memory and threading errors before they happen. > Find and fix more than 250 security defects in the development cycle. > Locate bottlenecks in serial and parallel code that limit performance. > http://p.sf.net/sfu/intel-dev2devfeb > _______________________________________________ > struts-menu-user mailing list > str...@li... > https://lists.sourceforge.net/lists/listinfo/struts-menu-user > > -- View this message in context: http://old.nabble.com/Internationalization-of-menu-items-using-Struts-menu-with-struts-2-tp30942065p32047366.html Sent from the struts-menu-user mailing list archive at Nabble.com. |
From: yvan k. <sta...@ya...> - 2011-07-07 07:11:48
|
Hi i try you patch but it not working because struts2 try to find UseMenuDisplayerTag.class Can you send me your new jar with th en new modifivation tx you Robi-8 wrote: > > Hello. > > It seams that my previous emails of december didn't go through.. > so here it comes again. > > Hi guys. > > This is a patch to let switching locale in struts2.. > > if you store the ResourceBundle and then check for null, > it doesn't let the user switch Locale afterword, > as switching Locale requires calling ResourceBundle.getBundle() > with the desired Locale as a parameter. > > Thank you for this great library! > > Best regards and Happy New Year! > > -- > Robi > > Index: src/java/net/sf/navigator/taglib/UseMenuDisplayerTag.java > =================================================================== > RCS file: > /cvsroot/struts-menu/navigator/src/java/net/sf/navigator/taglib/UseMenuDisplayerTag.java,v > retrieving revision 1.16 > diff -u -r1.16 UseMenuDisplayerTag.java > --- src/java/net/sf/navigator/taglib/UseMenuDisplayerTag.java 4 Oct 2006 > 22:26:02 -0000 1.16 > +++ src/java/net/sf/navigator/taglib/UseMenuDisplayerTag.java 1 Jan 2008 > 17:54:05 -0000 > @@ -189,9 +189,12 @@ > Locale locale; > > if (localeKey == null) { > - // default to Struts locale > - locale = > - (Locale) > pageContext.findAttribute("org.apache.struts.action.LOCALE"); > + // default to Struts2 locale > + locale = (Locale) > pageContext.findAttribute("WW_TRANS_I18N_LOCALE"); > + if (locale == null) { > + // first fallback to Struts1 locale > + locale = (Locale) > pageContext.findAttribute("org.apache.struts.action.LOCALE"); > + } > if (locale == null) { > locale = pageContext.getRequest().getLocale(); > } > @@ -200,9 +203,6 @@ > } > mrDisplayerInstance.setLocale(locale); > > - if (rb != null) { > - mrDisplayerInstance.setMessageResources(rb); > - } else { > Object resources = pageContext.findAttribute(bundleKey); > > if (resources == null) { > @@ -216,7 +216,6 @@ > } else { > mrDisplayerInstance.setMessageResources(resources); > } > - } > } > > displayerInstance.setConfig(config); > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > struts-menu-user mailing list > str...@li... > https://lists.sourceforge.net/lists/listinfo/struts-menu-user > > -- View this message in context: http://old.nabble.com/a-patch-for-struts2-i18n-tp15320407p32010794.html Sent from the struts-menu-user mailing list archive at Nabble.com. |
From: max m. <sta...@ya...> - 2011-06-07 23:12:11
|
hi |
From: Matt R. <ma...@ra...> - 2011-02-25 23:09:19
|
As far as I know, Struts Menu does not support what you're looking for. However, it does support JSTL expressions in location values, so you could try setting a variable and then reading it that way. On Mon, Feb 21, 2011 at 2:25 PM, Tiago Farias <aer...@gm...> wrote: > Hello! > > I have a menu with two items. The first one, say A, links to the action > /fisco/Search. The second one links to the action /admin/console. These > namespaces are important to protect the pages of the admin role. Admin users > can access the /fisco namespace but a fisco user can't access the /admin > namespace. The problem is that initially the namespace is set to /fisco > (always).Then when I login with the admin and try to access the item B, > struts tries to find the action 'console' inside the /fisco namespace. So it > says there's no 'console' action mapped to this namespace /fisco. But that's > because he is not changing the namespace that was set in the beggining! So > he's always looking for actions inside /fisco. > I'd like to know if there's a way to set the location attribute inside the > Item tag in the menu-config.xml in a way I can set the namespace manually. > Or any other suggestion would be very appreciated as well. =] > > Regards! > > > ------------------------------------------------------------------------------ > Index, Search & Analyze Logs and other IT data in Real-Time with Splunk > Collect, index and harness all the fast moving IT data generated by your > applications, servers and devices whether physical, virtual or in the > cloud. > Deliver compliance at lower cost and gain new business insights. > Free Software Download: http://p.sf.net/sfu/splunk-dev2dev > _______________________________________________ > struts-menu-user mailing list > str...@li... > https://lists.sourceforge.net/lists/listinfo/struts-menu-user > > |
From: Tiago F. <aer...@gm...> - 2011-02-21 21:25:08
|
Hello! I have a menu with two items. The first one, say A, links to the action /fisco/Search. The second one links to the action /admin/console. These namespaces are important to protect the pages of the admin role. Admin users can access the /fisco namespace but a fisco user can't access the /admin namespace. The problem is that initially the namespace is set to /fisco (always).Then when I login with the admin and try to access the item B, struts tries to find the action 'console' inside the /fisco namespace. So it says there's no 'console' action mapped to this namespace /fisco. But that's because he is not changing the namespace that was set in the beggining! So he's always looking for actions inside /fisco. I'd like to know if there's a way to set the location attribute inside the Item tag in the menu-config.xml in a way I can set the namespace manually. Or any other suggestion would be very appreciated as well. =] Regards! |
From: Matt R. <ma...@ra...> - 2011-02-16 19:36:13
|
Struts Menu uses JSTL in the "el" version to resolve messages. On Feb 16, 2011, at 12:26 PM, Tiago Farias wrote: > So rude. Sorry I forgot to thank you for saving me! Thank you very much! =D > > On Wed, Feb 16, 2011 at 4:25 PM, Tiago Farias <aer...@gm...> wrote: > Yup! You're absolutely right. Now I'm just curious. How does that work Matt? > > > On Wed, Feb 16, 2011 at 1:40 PM, Matt Raible <ma...@ra...> wrote: > If you remove the bundle attribute and add the following to your web.xml, it should work. The param name is the name of your properties file in WEB-INF/classes, without the .properties extension. > > <!-- Define the basename for a resource bundle for I18N --> > <context-param> > <param-name>javax.servlet.jsp.jstl.fmt.localizationContext</param-name> > <param-value>ApplicationResources</param-value> > </context-param> > > > On Feb 16, 2011, at 9:27 AM, Tiago Farias wrote: > >> Hello, I'm trying to make a custom menu for a web app and it all worked just fine, but now I need to internationalize it using a properties file. This properties file already exists and the whole app uses it. My menu-config.xml is this: >> >> <Displayers> >> <Displayer name="Velocity" type="net.sf.navigator.displayer.VelocityMenuDisplayer"/> >> </Displayers> >> >> <Menus> >> <!-- <Menu name="ecfMenu" title="ECFs" location="?Contact"> >> <Item name="email" title="E-Mail" location="?EMail"/> >> <Item name="phone" title="Phone" location="?Phone"/> >> </Menu>--> >> >> <Menu name="mainMenu" title="" > >> <Item name="ecfMenu" title="ECFs" roles="FISCO" location="DisconnectedEcfsSearch" /> >> <Item name="reportsMenu" title="Relatórios" roles="ADMIN" location="AlarmReportSearch"/> >> <Item name="fiscoMenu" title="Fisco" roles="ADMIN" location="UpdateFiscoForm"/> >> <Item name="alarmMenu" title="Alarmes" roles="ADMIN" location="AlarmNotification"/> >> <Item name="userMenu" title="application.header.users" roles="ADMIN" location="UserSearch"/> >> <Item name="consoleMenu" title="Console" roles="FISCO" location="ConsoleSearch"/> >> </Menu> >> >> And my jsp file is this: >> <%@taglib uri="http://struts-menu.sf.net/tag-el" prefix="menu" %> >> >> <menu:useMenuDisplayer permissions="rolesAdapter" name="Velocity" config="/WEB-INF/tabs.html" >> bundle="org.apache.struts.action.MESSAGE"> >> <menu:displayMenu name="mainMenu"/> >> </menu:useMenuDisplayer> >> >> The thing is that all the menu titles are ok except for the "userMenu" title that is displaying the key to the properties file (application.header.users). I wanted it to get the i18n file and display the value associated with this key. I'm using struts2 and all the tutorials I found for this are Struts1's. Need help! Don't know what else to do... >> >> Best regards! >> ------------------------------------------------------------------------------ >> The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: >> Pinpoint memory and threading errors before they happen. >> Find and fix more than 250 security defects in the development cycle. >> Locate bottlenecks in serial and parallel code that limit performance. >> http://p.sf.net/sfu/intel-dev2devfeb_______________________________________________ >> struts-menu-user mailing list >> str...@li... >> https://lists.sourceforge.net/lists/listinfo/struts-menu-user > > > ------------------------------------------------------------------------------ > The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: > Pinpoint memory and threading errors before they happen. > Find and fix more than 250 security defects in the development cycle. > Locate bottlenecks in serial and parallel code that limit performance. > http://p.sf.net/sfu/intel-dev2devfeb > _______________________________________________ > struts-menu-user mailing list > str...@li... > https://lists.sourceforge.net/lists/listinfo/struts-menu-user > > > > ------------------------------------------------------------------------------ > The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: > Pinpoint memory and threading errors before they happen. > Find and fix more than 250 security defects in the development cycle. > Locate bottlenecks in serial and parallel code that limit performance. > http://p.sf.net/sfu/intel-dev2devfeb_______________________________________________ > struts-menu-user mailing list > str...@li... > https://lists.sourceforge.net/lists/listinfo/struts-menu-user |
From: Tiago F. <aer...@gm...> - 2011-02-16 19:26:45
|
So rude. Sorry I forgot to thank you for saving me! Thank you very much! =D On Wed, Feb 16, 2011 at 4:25 PM, Tiago Farias <aer...@gm...> wrote: > Yup! You're absolutely right. Now I'm just curious. How does that work > Matt? > > > On Wed, Feb 16, 2011 at 1:40 PM, Matt Raible <ma...@ra...>wrote: > >> If you remove the bundle attribute and add the following to your web.xml, >> it should work. The param name is the name of your properties file in >> WEB-INF/classes, without the .properties extension. >> >> <!-- Define the basename for a resource bundle for I18N --> >> <context-param> >> >> <param-name>javax.servlet.jsp.jstl.fmt.localizationContext</param-name> >> <param-value>ApplicationResources</param-value> >> </context-param> >> >> >> On Feb 16, 2011, at 9:27 AM, Tiago Farias wrote: >> >> Hello, I'm trying to make a custom menu for a web app and it all worked >> just fine, but now I need to internationalize it using a properties file. >> This properties file already exists and the whole app uses it. My >> menu-config.xml is this: >> >> <Displayers> >> <Displayer name="Velocity" >> type="net.sf.navigator.displayer.VelocityMenuDisplayer"/> >> </Displayers> >> >> <Menus> >> <!-- <Menu name="ecfMenu" title="ECFs" location="?Contact"> >> <Item name="email" title="E-Mail" location="?EMail"/> >> <Item name="phone" title="Phone" location="?Phone"/> >> </Menu>--> >> >> <Menu name="mainMenu" title="" > >> <Item name="ecfMenu" title="ECFs" roles="FISCO" >> location="DisconnectedEcfsSearch" /> >> <Item name="reportsMenu" title="Relatórios" roles="ADMIN" >> location="AlarmReportSearch"/> >> <Item name="fiscoMenu" title="Fisco" roles="ADMIN" >> location="UpdateFiscoForm"/> >> <Item name="alarmMenu" title="Alarmes" roles="ADMIN" >> location="AlarmNotification"/> >> <Item name="userMenu" title="application.header.users" >> roles="ADMIN" location="UserSearch"/> >> <Item name="consoleMenu" title="Console" roles="FISCO" >> location="ConsoleSearch"/> >> </Menu> >> >> And my jsp file is this: >> <%@taglib uri="http://struts-menu.sf.net/tag-el" prefix="menu" %> >> >> <menu:useMenuDisplayer permissions="rolesAdapter" >> name="Velocity" config="/WEB-INF/tabs.html" >> bundle="org.apache.struts.action.MESSAGE"> >> <menu:displayMenu name="mainMenu"/> >> </menu:useMenuDisplayer> >> >> The thing is that all the menu titles are ok except for the "userMenu" >> title that is displaying the key to the properties file >> (application.header.users). I wanted it to get the i18n file and display the >> value associated with this key. I'm using struts2 and all the tutorials I >> found for this are Struts1's. Need help! Don't know what else to do... >> >> Best regards! >> >> ------------------------------------------------------------------------------ >> The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: >> Pinpoint memory and threading errors before they happen. >> Find and fix more than 250 security defects in the development cycle. >> Locate bottlenecks in serial and parallel code that limit performance. >> >> http://p.sf.net/sfu/intel-dev2devfeb_______________________________________________ >> struts-menu-user mailing list >> str...@li... >> https://lists.sourceforge.net/lists/listinfo/struts-menu-user >> >> >> >> >> ------------------------------------------------------------------------------ >> The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: >> Pinpoint memory and threading errors before they happen. >> Find and fix more than 250 security defects in the development cycle. >> Locate bottlenecks in serial and parallel code that limit performance. >> http://p.sf.net/sfu/intel-dev2devfeb >> _______________________________________________ >> struts-menu-user mailing list >> str...@li... >> https://lists.sourceforge.net/lists/listinfo/struts-menu-user >> >> > |
From: Tiago F. <aer...@gm...> - 2011-02-16 19:25:41
|
Yup! You're absolutely right. Now I'm just curious. How does that work Matt? On Wed, Feb 16, 2011 at 1:40 PM, Matt Raible <ma...@ra...> wrote: > If you remove the bundle attribute and add the following to your web.xml, > it should work. The param name is the name of your properties file in > WEB-INF/classes, without the .properties extension. > > <!-- Define the basename for a resource bundle for I18N --> > <context-param> > > <param-name>javax.servlet.jsp.jstl.fmt.localizationContext</param-name> > <param-value>ApplicationResources</param-value> > </context-param> > > > On Feb 16, 2011, at 9:27 AM, Tiago Farias wrote: > > Hello, I'm trying to make a custom menu for a web app and it all worked > just fine, but now I need to internationalize it using a properties file. > This properties file already exists and the whole app uses it. My > menu-config.xml is this: > > <Displayers> > <Displayer name="Velocity" > type="net.sf.navigator.displayer.VelocityMenuDisplayer"/> > </Displayers> > > <Menus> > <!-- <Menu name="ecfMenu" title="ECFs" location="?Contact"> > <Item name="email" title="E-Mail" location="?EMail"/> > <Item name="phone" title="Phone" location="?Phone"/> > </Menu>--> > > <Menu name="mainMenu" title="" > > <Item name="ecfMenu" title="ECFs" roles="FISCO" > location="DisconnectedEcfsSearch" /> > <Item name="reportsMenu" title="Relatórios" roles="ADMIN" > location="AlarmReportSearch"/> > <Item name="fiscoMenu" title="Fisco" roles="ADMIN" > location="UpdateFiscoForm"/> > <Item name="alarmMenu" title="Alarmes" roles="ADMIN" > location="AlarmNotification"/> > <Item name="userMenu" title="application.header.users" > roles="ADMIN" location="UserSearch"/> > <Item name="consoleMenu" title="Console" roles="FISCO" > location="ConsoleSearch"/> > </Menu> > > And my jsp file is this: > <%@taglib uri="http://struts-menu.sf.net/tag-el" prefix="menu" %> > > <menu:useMenuDisplayer permissions="rolesAdapter" > name="Velocity" config="/WEB-INF/tabs.html" > bundle="org.apache.struts.action.MESSAGE"> > <menu:displayMenu name="mainMenu"/> > </menu:useMenuDisplayer> > > The thing is that all the menu titles are ok except for the "userMenu" > title that is displaying the key to the properties file > (application.header.users). I wanted it to get the i18n file and display the > value associated with this key. I'm using struts2 and all the tutorials I > found for this are Struts1's. Need help! Don't know what else to do... > > Best regards! > > ------------------------------------------------------------------------------ > The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: > Pinpoint memory and threading errors before they happen. > Find and fix more than 250 security defects in the development cycle. > Locate bottlenecks in serial and parallel code that limit performance. > > http://p.sf.net/sfu/intel-dev2devfeb_______________________________________________ > struts-menu-user mailing list > str...@li... > https://lists.sourceforge.net/lists/listinfo/struts-menu-user > > > > > ------------------------------------------------------------------------------ > The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: > Pinpoint memory and threading errors before they happen. > Find and fix more than 250 security defects in the development cycle. > Locate bottlenecks in serial and parallel code that limit performance. > http://p.sf.net/sfu/intel-dev2devfeb > _______________________________________________ > struts-menu-user mailing list > str...@li... > https://lists.sourceforge.net/lists/listinfo/struts-menu-user > > |
From: Matt R. <ma...@ra...> - 2011-02-16 17:46:08
|
If you remove the bundle attribute and add the following to your web.xml, it should work. The param name is the name of your properties file in WEB-INF/classes, without the .properties extension. <!-- Define the basename for a resource bundle for I18N --> <context-param> <param-name>javax.servlet.jsp.jstl.fmt.localizationContext</param-name> <param-value>ApplicationResources</param-value> </context-param> On Feb 16, 2011, at 9:27 AM, Tiago Farias wrote: > Hello, I'm trying to make a custom menu for a web app and it all worked just fine, but now I need to internationalize it using a properties file. This properties file already exists and the whole app uses it. My menu-config.xml is this: > > <Displayers> > <Displayer name="Velocity" type="net.sf.navigator.displayer.VelocityMenuDisplayer"/> > </Displayers> > > <Menus> > <!-- <Menu name="ecfMenu" title="ECFs" location="?Contact"> > <Item name="email" title="E-Mail" location="?EMail"/> > <Item name="phone" title="Phone" location="?Phone"/> > </Menu>--> > > <Menu name="mainMenu" title="" > > <Item name="ecfMenu" title="ECFs" roles="FISCO" location="DisconnectedEcfsSearch" /> > <Item name="reportsMenu" title="Relatórios" roles="ADMIN" location="AlarmReportSearch"/> > <Item name="fiscoMenu" title="Fisco" roles="ADMIN" location="UpdateFiscoForm"/> > <Item name="alarmMenu" title="Alarmes" roles="ADMIN" location="AlarmNotification"/> > <Item name="userMenu" title="application.header.users" roles="ADMIN" location="UserSearch"/> > <Item name="consoleMenu" title="Console" roles="FISCO" location="ConsoleSearch"/> > </Menu> > > And my jsp file is this: > <%@taglib uri="http://struts-menu.sf.net/tag-el" prefix="menu" %> > > <menu:useMenuDisplayer permissions="rolesAdapter" name="Velocity" config="/WEB-INF/tabs.html" > bundle="org.apache.struts.action.MESSAGE"> > <menu:displayMenu name="mainMenu"/> > </menu:useMenuDisplayer> > > The thing is that all the menu titles are ok except for the "userMenu" title that is displaying the key to the properties file (application.header.users). I wanted it to get the i18n file and display the value associated with this key. I'm using struts2 and all the tutorials I found for this are Struts1's. Need help! Don't know what else to do... > > Best regards! > ------------------------------------------------------------------------------ > The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: > Pinpoint memory and threading errors before they happen. > Find and fix more than 250 security defects in the development cycle. > Locate bottlenecks in serial and parallel code that limit performance. > http://p.sf.net/sfu/intel-dev2devfeb_______________________________________________ > struts-menu-user mailing list > str...@li... > https://lists.sourceforge.net/lists/listinfo/struts-menu-user |
From: Tiago F. <aer...@gm...> - 2011-02-16 16:28:07
|
Hello, I'm trying to make a custom menu for a web app and it all worked just fine, but now I need to internationalize it using a properties file. This properties file already exists and the whole app uses it. My menu-config.xml is this: <Displayers> <Displayer name="Velocity" type="net.sf.navigator.displayer.VelocityMenuDisplayer"/> </Displayers> <Menus> <!-- <Menu name="ecfMenu" title="ECFs" location="?Contact"> <Item name="email" title="E-Mail" location="?EMail"/> <Item name="phone" title="Phone" location="?Phone"/> </Menu>--> <Menu name="mainMenu" title="" > <Item name="ecfMenu" title="ECFs" roles="FISCO" location="DisconnectedEcfsSearch" /> <Item name="reportsMenu" title="Relatórios" roles="ADMIN" location="AlarmReportSearch"/> <Item name="fiscoMenu" title="Fisco" roles="ADMIN" location="UpdateFiscoForm"/> <Item name="alarmMenu" title="Alarmes" roles="ADMIN" location="AlarmNotification"/> <Item name="userMenu" title="application.header.users" roles="ADMIN" location="UserSearch"/> <Item name="consoleMenu" title="Console" roles="FISCO" location="ConsoleSearch"/> </Menu> And my jsp file is this: <%@taglib uri="http://struts-menu.sf.net/tag-el" prefix="menu" %> <menu:useMenuDisplayer permissions="rolesAdapter" name="Velocity" config="/WEB-INF/tabs.html" bundle="org.apache.struts.action.MESSAGE"> <menu:displayMenu name="mainMenu"/> </menu:useMenuDisplayer> The thing is that all the menu titles are ok except for the "userMenu" title that is displaying the key to the properties file (application.header.users). I wanted it to get the i18n file and display the value associated with this key. I'm using struts2 and all the tutorials I found for this are Struts1's. Need help! Don't know what else to do... Best regards! |
From: Matt R. <ma...@ra...> - 2010-09-30 21:34:39
|
I would suggest using a function that changes your <a href> tags to make Ajax calls. The following post shows a technique for doing this. http://raibledesigns.com/rd/entry/ajaxified_body On Tue, Sep 21, 2010 at 10:32 AM, Jaideep Dengre <jai...@gm...>wrote: > Hi, > > I am very new to struts menu. I am using struts menu with appfuse > configured with Springs. I am able to add new menu items but on click of > those menu items I wish to refresh the content area via a ajax action rather > than full page refresh. How can I achieve this using struts menu. The > configuration I see is for page, how can I specify a java script action and > how to mark selections in the menu? Please help. > > JD > > > ------------------------------------------------------------------------------ > Start uncovering the many advantages of virtual appliances > and start using them to simplify application deployment and > accelerate your shift to cloud computing. > http://p.sf.net/sfu/novell-sfdev2dev > _______________________________________________ > struts-menu-user mailing list > str...@li... > https://lists.sourceforge.net/lists/listinfo/struts-menu-user > > |
From: Jaideep D. <jai...@gm...> - 2010-09-21 16:32:37
|
Hi, I am very new to struts menu. I am using struts menu with appfuse configured with Springs. I am able to add new menu items but on click of those menu items I wish to refresh the content area via a ajax action rather than full page refresh. How can I achieve this using struts menu. The configuration I see is for page, how can I specify a java script action and how to mark selections in the menu? Please help. JD |
From: dynkan <thi...@ho...> - 2010-05-10 18:38:21
|
I started using struts-menu 2.4.3 with the menuExpandable.css & menuExpandable.js from the 2.4.3 build. On page refreshes, the expanded menu items are collapsing. It looks like the javascript is saving the id of the menu item in a cookie and reading that cookie on the page reload, but at that time a new id is assigned to the menu item. So the menu collapses. I searched the forum, and the answer I could find was to use the newest menuExpandable.js (that is what I am using). This is what I found for the 'menusToExpand' cookie (I was trying to expand the same menu item - but as you can see, the ids are different. What am I missing? menusToExpand Value WorkbenchMenu856Menu%2CWorkbenchMenu878Menu%2CWorkbenchMenu486Menu%2CWorkbenchMenu801Menu%2CWorkbenchMenu905Menu Thank you. -- View this message in context: http://old.nabble.com/Struts-menu-collapsing-tp28512691p28512691.html Sent from the struts-menu-user mailing list archive at Nabble.com. |
From: Reji Z. <thi...@ho...> - 2010-05-10 18:16:24
|
I started using struts-menu 2.4.3 with the menuExpandable.css & menuExpandable.js from the 2.4.3 build. On page refreshes, the expanded menu items are collapsing. It looks like the javascript is saving the id of the menu item in a cookie and reading that cookie on the page reload, but at that time a new id is assigned to the menu item. So the menu collapses. This is what I found for the 'menusToExpand' cookie (I was trying to expand the same menu item - but as you can see, the ids are different. What am I missing? menusToExpandValueWorkbenchMenu856Menu%2CWorkbenchMenu878Menu%2CWorkbenchMenu486Menu%2CWorkbenchMenu801Menu%2CWorkbenchMenu905Menu Thank you. dynkan _________________________________________________________________ The New Busy is not the too busy. Combine all your e-mail accounts with Hotmail. http://www.windowslive.com/campaign/thenewbusy?tile=multiaccount&ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_4 |
From: RatnaSekhar K. <nan...@gm...> - 2009-12-07 07:22:18
|
Websphere and weblogic are servers. I dont think struts menu is server dependent. I am using spring, struts and tiles with our proprietery css. Thanks and Regards Ratna On Mon, Dec 7, 2009 at 9:15 AM, Anjani Shrivastava < sel...@gm...> wrote: > Which type of Menu U want to design what technologies u r using? Websphere > or weblogic? > > On Sat, Dec 5, 2009 at 4:04 PM, Matt Raible <ma...@ra...>wrote: > >> Sorry, yes I meant menu-config.xml instead of struts-menu.xml. If you >> remove the "bundle" attribute, what happens? >> >> >> On Sat, Dec 5, 2009 at 1:41 AM, nani2ratna <nan...@gm...> wrote: >> >>> >>> Hi matt, >>> >>> Currently I am not using any I18N messages. Is there any other >>> alternative. >>> What is struts-menu.xml, is that means menu-config.xml?? >>> >>> Thanks >>> Ratna >>> >>> mraible wrote: >>> > >>> > Remove the bundle attribute and configure your i18n messages with JSTL. >>> > You >>> > also need to make sure the named menus exist in your struts-menu.xml >>> and >>> > that your struts-menu.xml is valid XML. >>> > >>> > Matt >>> > >>> > On Fri, Dec 4, 2009 at 1:22 AM, nani2ratna <nan...@gm...> >>> wrote: >>> > >>> >> >>> >> It looks like below >>> >> >>> >> <menu:useMenuDisplayer name="TabbedMenu" >>> >> bundle="org.apache.struts.action.MESSAGE"> >>> >> <menu:displayMenu name="TabbedHome"/> >>> >> <menu:displayMenu name="TabbedAbout"/> >>> >> <menu:displayMenu name="TabbedContact"/> >>> >> <menu:displayMenu name="TabbedExit"/> >>> >> </menu:useMenuDisplayer> >>> >> >>> >> Even I have tried without bundle attribute as well but same result. >>> >> Can you please help me regarding this. >>> >> >>> >> Thanks in advance >>> >> RS >>> >> -- >>> >> View this message in context: >>> >> http://old.nabble.com/struts-with-struts2-tp26588080p26635784.html >>> >> Sent from the struts-menu-user mailing list archive at Nabble.com. >>> >> >>> >> >>> >> >>> >> >>> ------------------------------------------------------------------------------ >>> >> Join us December 9, 2009 for the Red Hat Virtual Experience, >>> >> a free event focused on virtualization and cloud computing. >>> >> Attend in-depth sessions from your desk. Your couch. Anywhere. >>> >> http://p.sf.net/sfu/redhat-sfdev2dev >>> >> _______________________________________________ >>> >> struts-menu-user mailing list >>> >> str...@li... >>> >> https://lists.sourceforge.net/lists/listinfo/struts-menu-user >>> >> >>> > >>> > >>> ------------------------------------------------------------------------------ >>> > Join us December 9, 2009 for the Red Hat Virtual Experience, >>> > a free event focused on virtualization and cloud computing. >>> > Attend in-depth sessions from your desk. Your couch. Anywhere. >>> > http://p.sf.net/sfu/redhat-sfdev2dev >>> > _______________________________________________ >>> > struts-menu-user mailing list >>> > str...@li... >>> > https://lists.sourceforge.net/lists/listinfo/struts-menu-user >>> > >>> > >>> >>> -- >>> View this message in context: >>> http://old.nabble.com/struts-with-struts2-tp26588080p26653346.html >>> Sent from the struts-menu-user mailing list archive at Nabble.com. >>> >>> >>> >>> ------------------------------------------------------------------------------ >>> Join us December 9, 2009 for the Red Hat Virtual Experience, >>> a free event focused on virtualization and cloud computing. >>> Attend in-depth sessions from your desk. Your couch. Anywhere. >>> http://p.sf.net/sfu/redhat-sfdev2dev >>> _______________________________________________ >>> struts-menu-user mailing list >>> str...@li... >>> https://lists.sourceforge.net/lists/listinfo/struts-menu-user >>> >> >> >> >> ------------------------------------------------------------------------------ >> Join us December 9, 2009 for the Red Hat Virtual Experience, >> a free event focused on virtualization and cloud computing. >> Attend in-depth sessions from your desk. Your couch. Anywhere. >> http://p.sf.net/sfu/redhat-sfdev2dev >> _______________________________________________ >> struts-menu-user mailing list >> str...@li... >> https://lists.sourceforge.net/lists/listinfo/struts-menu-user >> >> > > > ------------------------------------------------------------------------------ > Join us December 9, 2009 for the Red Hat Virtual Experience, > a free event focused on virtualization and cloud computing. > Attend in-depth sessions from your desk. Your couch. Anywhere. > http://p.sf.net/sfu/redhat-sfdev2dev > _______________________________________________ > struts-menu-user mailing list > str...@li... > https://lists.sourceforge.net/lists/listinfo/struts-menu-user > > |
From: Anjani S. <sel...@gm...> - 2009-12-07 07:15:54
|
Which type of Menu U want to design what technologies u r using? Websphere or weblogic? On Sat, Dec 5, 2009 at 4:04 PM, Matt Raible <ma...@ra...> wrote: > Sorry, yes I meant menu-config.xml instead of struts-menu.xml. If you > remove the "bundle" attribute, what happens? > > > On Sat, Dec 5, 2009 at 1:41 AM, nani2ratna <nan...@gm...> wrote: > >> >> Hi matt, >> >> Currently I am not using any I18N messages. Is there any other >> alternative. >> What is struts-menu.xml, is that means menu-config.xml?? >> >> Thanks >> Ratna >> >> mraible wrote: >> > >> > Remove the bundle attribute and configure your i18n messages with JSTL. >> > You >> > also need to make sure the named menus exist in your struts-menu.xml and >> > that your struts-menu.xml is valid XML. >> > >> > Matt >> > >> > On Fri, Dec 4, 2009 at 1:22 AM, nani2ratna <nan...@gm...> >> wrote: >> > >> >> >> >> It looks like below >> >> >> >> <menu:useMenuDisplayer name="TabbedMenu" >> >> bundle="org.apache.struts.action.MESSAGE"> >> >> <menu:displayMenu name="TabbedHome"/> >> >> <menu:displayMenu name="TabbedAbout"/> >> >> <menu:displayMenu name="TabbedContact"/> >> >> <menu:displayMenu name="TabbedExit"/> >> >> </menu:useMenuDisplayer> >> >> >> >> Even I have tried without bundle attribute as well but same result. >> >> Can you please help me regarding this. >> >> >> >> Thanks in advance >> >> RS >> >> -- >> >> View this message in context: >> >> http://old.nabble.com/struts-with-struts2-tp26588080p26635784.html >> >> Sent from the struts-menu-user mailing list archive at Nabble.com. >> >> >> >> >> >> >> >> >> ------------------------------------------------------------------------------ >> >> Join us December 9, 2009 for the Red Hat Virtual Experience, >> >> a free event focused on virtualization and cloud computing. >> >> Attend in-depth sessions from your desk. Your couch. Anywhere. >> >> http://p.sf.net/sfu/redhat-sfdev2dev >> >> _______________________________________________ >> >> struts-menu-user mailing list >> >> str...@li... >> >> https://lists.sourceforge.net/lists/listinfo/struts-menu-user >> >> >> > >> > >> ------------------------------------------------------------------------------ >> > Join us December 9, 2009 for the Red Hat Virtual Experience, >> > a free event focused on virtualization and cloud computing. >> > Attend in-depth sessions from your desk. Your couch. Anywhere. >> > http://p.sf.net/sfu/redhat-sfdev2dev >> > _______________________________________________ >> > struts-menu-user mailing list >> > str...@li... >> > https://lists.sourceforge.net/lists/listinfo/struts-menu-user >> > >> > >> >> -- >> View this message in context: >> http://old.nabble.com/struts-with-struts2-tp26588080p26653346.html >> Sent from the struts-menu-user mailing list archive at Nabble.com. >> >> >> >> ------------------------------------------------------------------------------ >> Join us December 9, 2009 for the Red Hat Virtual Experience, >> a free event focused on virtualization and cloud computing. >> Attend in-depth sessions from your desk. Your couch. Anywhere. >> http://p.sf.net/sfu/redhat-sfdev2dev >> _______________________________________________ >> struts-menu-user mailing list >> str...@li... >> https://lists.sourceforge.net/lists/listinfo/struts-menu-user >> > > > > ------------------------------------------------------------------------------ > Join us December 9, 2009 for the Red Hat Virtual Experience, > a free event focused on virtualization and cloud computing. > Attend in-depth sessions from your desk. Your couch. Anywhere. > http://p.sf.net/sfu/redhat-sfdev2dev > _______________________________________________ > struts-menu-user mailing list > str...@li... > https://lists.sourceforge.net/lists/listinfo/struts-menu-user > > |
From: nani2ratna <nan...@gm...> - 2009-12-05 12:33:27
|
yeash i did that same result. I am thinking to do this in another like, instead of tags, get the list of all the menu items and sub menu by calling the menurepository. Can I implement this struts-menu.jar with your permission. So that list i can show in my css. Thanks and Regards Ratna mraible wrote: > > Sorry, yes I meant menu-config.xml instead of struts-menu.xml. If you > remove > the "bundle" attribute, what happens? > > On Sat, Dec 5, 2009 at 1:41 AM, nani2ratna <nan...@gm...> wrote: > >> >> Hi matt, >> >> Currently I am not using any I18N messages. Is there any other >> alternative. >> What is struts-menu.xml, is that means menu-config.xml?? >> >> Thanks >> Ratna >> >> mraible wrote: >> > >> > Remove the bundle attribute and configure your i18n messages with JSTL. >> > You >> > also need to make sure the named menus exist in your struts-menu.xml >> and >> > that your struts-menu.xml is valid XML. >> > >> > Matt >> > >> > On Fri, Dec 4, 2009 at 1:22 AM, nani2ratna <nan...@gm...> >> wrote: >> > >> >> >> >> It looks like below >> >> >> >> <menu:useMenuDisplayer name="TabbedMenu" >> >> bundle="org.apache.struts.action.MESSAGE"> >> >> <menu:displayMenu name="TabbedHome"/> >> >> <menu:displayMenu name="TabbedAbout"/> >> >> <menu:displayMenu name="TabbedContact"/> >> >> <menu:displayMenu name="TabbedExit"/> >> >> </menu:useMenuDisplayer> >> >> >> >> Even I have tried without bundle attribute as well but same result. >> >> Can you please help me regarding this. >> >> >> >> Thanks in advance >> >> RS >> >> -- >> >> View this message in context: >> >> http://old.nabble.com/struts-with-struts2-tp26588080p26635784.html >> >> Sent from the struts-menu-user mailing list archive at Nabble.com. >> >> >> >> >> >> >> >> >> ------------------------------------------------------------------------------ >> >> Join us December 9, 2009 for the Red Hat Virtual Experience, >> >> a free event focused on virtualization and cloud computing. >> >> Attend in-depth sessions from your desk. Your couch. Anywhere. >> >> http://p.sf.net/sfu/redhat-sfdev2dev >> >> _______________________________________________ >> >> struts-menu-user mailing list >> >> str...@li... >> >> https://lists.sourceforge.net/lists/listinfo/struts-menu-user >> >> >> > >> > >> ------------------------------------------------------------------------------ >> > Join us December 9, 2009 for the Red Hat Virtual Experience, >> > a free event focused on virtualization and cloud computing. >> > Attend in-depth sessions from your desk. Your couch. Anywhere. >> > http://p.sf.net/sfu/redhat-sfdev2dev >> > _______________________________________________ >> > struts-menu-user mailing list >> > str...@li... >> > https://lists.sourceforge.net/lists/listinfo/struts-menu-user >> > >> > >> >> -- >> View this message in context: >> http://old.nabble.com/struts-with-struts2-tp26588080p26653346.html >> Sent from the struts-menu-user mailing list archive at Nabble.com. >> >> >> >> ------------------------------------------------------------------------------ >> Join us December 9, 2009 for the Red Hat Virtual Experience, >> a free event focused on virtualization and cloud computing. >> Attend in-depth sessions from your desk. Your couch. Anywhere. >> http://p.sf.net/sfu/redhat-sfdev2dev >> _______________________________________________ >> struts-menu-user mailing list >> str...@li... >> https://lists.sourceforge.net/lists/listinfo/struts-menu-user >> > > ------------------------------------------------------------------------------ > Join us December 9, 2009 for the Red Hat Virtual Experience, > a free event focused on virtualization and cloud computing. > Attend in-depth sessions from your desk. Your couch. Anywhere. > http://p.sf.net/sfu/redhat-sfdev2dev > _______________________________________________ > struts-menu-user mailing list > str...@li... > https://lists.sourceforge.net/lists/listinfo/struts-menu-user > > -- View this message in context: http://old.nabble.com/struts-with-struts2-tp26588080p26655126.html Sent from the struts-menu-user mailing list archive at Nabble.com. |
From: Matt R. <ma...@ra...> - 2009-12-05 10:42:58
|
Sorry, yes I meant menu-config.xml instead of struts-menu.xml. If you remove the "bundle" attribute, what happens? On Sat, Dec 5, 2009 at 1:41 AM, nani2ratna <nan...@gm...> wrote: > > Hi matt, > > Currently I am not using any I18N messages. Is there any other alternative. > What is struts-menu.xml, is that means menu-config.xml?? > > Thanks > Ratna > > mraible wrote: > > > > Remove the bundle attribute and configure your i18n messages with JSTL. > > You > > also need to make sure the named menus exist in your struts-menu.xml and > > that your struts-menu.xml is valid XML. > > > > Matt > > > > On Fri, Dec 4, 2009 at 1:22 AM, nani2ratna <nan...@gm...> wrote: > > > >> > >> It looks like below > >> > >> <menu:useMenuDisplayer name="TabbedMenu" > >> bundle="org.apache.struts.action.MESSAGE"> > >> <menu:displayMenu name="TabbedHome"/> > >> <menu:displayMenu name="TabbedAbout"/> > >> <menu:displayMenu name="TabbedContact"/> > >> <menu:displayMenu name="TabbedExit"/> > >> </menu:useMenuDisplayer> > >> > >> Even I have tried without bundle attribute as well but same result. > >> Can you please help me regarding this. > >> > >> Thanks in advance > >> RS > >> -- > >> View this message in context: > >> http://old.nabble.com/struts-with-struts2-tp26588080p26635784.html > >> Sent from the struts-menu-user mailing list archive at Nabble.com. > >> > >> > >> > >> > ------------------------------------------------------------------------------ > >> Join us December 9, 2009 for the Red Hat Virtual Experience, > >> a free event focused on virtualization and cloud computing. > >> Attend in-depth sessions from your desk. Your couch. Anywhere. > >> http://p.sf.net/sfu/redhat-sfdev2dev > >> _______________________________________________ > >> struts-menu-user mailing list > >> str...@li... > >> https://lists.sourceforge.net/lists/listinfo/struts-menu-user > >> > > > > > ------------------------------------------------------------------------------ > > Join us December 9, 2009 for the Red Hat Virtual Experience, > > a free event focused on virtualization and cloud computing. > > Attend in-depth sessions from your desk. Your couch. Anywhere. > > http://p.sf.net/sfu/redhat-sfdev2dev > > _______________________________________________ > > struts-menu-user mailing list > > str...@li... > > https://lists.sourceforge.net/lists/listinfo/struts-menu-user > > > > > > -- > View this message in context: > http://old.nabble.com/struts-with-struts2-tp26588080p26653346.html > Sent from the struts-menu-user mailing list archive at Nabble.com. > > > > ------------------------------------------------------------------------------ > Join us December 9, 2009 for the Red Hat Virtual Experience, > a free event focused on virtualization and cloud computing. > Attend in-depth sessions from your desk. Your couch. Anywhere. > http://p.sf.net/sfu/redhat-sfdev2dev > _______________________________________________ > struts-menu-user mailing list > str...@li... > https://lists.sourceforge.net/lists/listinfo/struts-menu-user > |