struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Williams, Marlon" <MWILL...@ci.tacoma.wa.us>
Subject RE: International Menu Help
Date Tue, 30 Sep 2008 21:28:32 GMT

Your solution works great! Syntax issue, bad on me. Thanks very much!

DAN IS THE GREATEST!  Singing the praises.


From: Dave Newton [mailto:newton.dave@yahoo.com] 
Sent: Tuesday, September 30, 2008 2:22 PM
To: Struts Users Mailing List
Subject: Re: International Menu Help

--- On Tue, 9/30/08, Williams, Marlon wrote:
> Menu ts_login = new Menu();
> ts_login.setId("1102");
> //ts_login.setLabel("Login");                    
>          // This is hard coding
> ts_login.setLabel("menu.login");                 
>        // This also is hard coding
> //ts_login.setLabel("%{getText('menu.login')}");
>    //The prevents the menu from dispalying at all

I'm lost; this is Java code in an ActionSupport-derived action? That
shouldn't even *compile* let alone do anything useful.

Doesn't normal Java work?

ts_login.setLabel(getText("menu.login"));

Dave


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


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


Mime
View raw message