Fixed -- I had been building the properties files and whatnot in the src/ 
folder, and Eclipse had been copying them. But then it stopped, so I had to 
manually move my files from src/ to web/WEB-INF/classes/. Not that this is an 
Eclipse support forum, but I thought that someone else may encounter this issue 
in the future.

> -----Original Message-----
> From: Jon Pearson 
> Sent: Tuesday, May 19, 2009 5:04 PM
> To: Struts Users Mailing List
> Subject: RE: I18n blew up
> 
> Thanks, but the problem is definitely Eclipse. It was working 
> last week, and now it isn't. Eclipse isn't copying the 
> necessary properties files containing those translations for 
> getText() when I deploy to my local Tomcat server for 
> development/testing. It will copy struts.xml, but none of the 
> other files (including other .xml files which struts.xml references). 
> 
> > -----Original Message-----
> > From: Martin Gainty [mailto:mgai...@hotmail.com] 
> > Sent: Tuesday, May 19, 2009 5:00 PM
> > To: Struts Users Mailing List
> > Subject: RE: I18n blew up
> > 
> > 
> > typical use is to use getText to acquire the property 
> > attribute as defined here
> > <s:textfield label="%{getText('label.firstName')}" 
> > name="firstName" />modifying controlheader-core.ftl would 
> > allow you to supply neccesary call to getText 
> > 
> > ${parameters.label?html}:<#t/>
> > 
> > 
> > <#assign mm="getText('"+parameters.label?html+"')" /><#t/>
> > ${stack.findValue(mm)}:<#t/>
> > <!-- you can now use the value of label as the key without 
> > intervening getText -->
> > <s:textfield label="label.firstName" name="firstName" />
> > struts-default.xml defines the interceptor class as
> >  <interceptor name="i18n" 
> > class="com.opensymphony.xwork2.interceptor.I18nInterceptor"/>
> > http://www.docjar.com/html/api/com/opensymphony/xwork2/interce
> > ptor/I18nInterceptor.java.html
> > 
> > which either gets/sets the request_locale parameter and 
> > pushes that to ActionContext.map
> > <s:param name="request_locale">en</s:param>
> > http://cwiki.apache.org/WW/internationalization.html
> > 
> > properties are located in one of the following locations
> > ActionClass.propertiesBaseClass.properties (all the way to 
> > Object.properties)Interface.properties (every interface and 
> > sub-interface)package.properties
> > struts.properties
> > 6.webwork.properties
> > 
> > HTH
> > Martin 
> > ______________________________________________ 
> > Jogi és Bizalmassági kinyilatkoztatás/Verzicht und 
> > Vertraulichkeitanmerkung/Note de déni et de confidentialité
> >  Ez az
> > üzenet bizalmas.  Ha nem ön az akinek szánva volt, akkor 
> kérjük, hogy
> > jelentse azt nekünk vissza. Semmiféle továbbítása vagy másolatának
> > készítése nem megengedett.  Ez az üzenet csak ismeret cserét 
> > szolgál és
> > semmiféle jogi alkalmazhatósága sincs.  Mivel az 
> electronikus üzenetek
> > könnyen megváltoztathatóak, ezért minket semmi felelöség 
> nem terhelhet
> > ezen üzenet tartalma miatt.
> > 
> > Diese Nachricht ist vertraulich. Sollten Sie nicht der 
> > vorgesehene Empfaenger sein, so bitten wir hoeflich um eine 
> > Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer 
> > Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
> > Austausch von Informationen und entfaltet keine rechtliche 
> > Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von 
> > E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
> > Ce message est confidentiel et peut être privilégié. Si vous 
> > n'êtes pas le destinataire prévu, nous te demandons avec 
> > bonté que pour satisfaire informez l'expéditeur. N'importe 
> > quelle diffusion non autorisée ou la copie de ceci est 
> > interdite. Ce message sert à l'information seulement et 
> > n'aura pas n'importe quel effet légalement obligatoire. Étant 
> > donné que les email peuvent facilement être sujets à la 
> > manipulation, nous ne pouvons accepter aucune responsabilité 
> > pour le contenu fourni.
> > 
> > 
> > 
> > 
> > > Subject: RE: I18n blew up
> > > Date: Tue, 19 May 2009 16:04:15 -0400
> > > From: jon.pear...@sixnet.com
> > > To: user@struts.apache.org
> > > 
> > > Upon further examination, it looks like 'struts.properties' 
> > is not being
> > > loaded -- When I cause an exception, I don't see the 
> > development-mode
> > > data that I would expect for having this line in that file:
> > > 
> > > struts.devMode = true
> > > 
> > > Still very confused. 
> > > 
> > > > -----Original Message-----
> > > > From: Jon Pearson 
> > > > Sent: Tuesday, May 19, 2009 3:59 PM
> > > > To: Struts Users Mailing List
> > > > Subject: I18n blew up
> > > > 
> > > > I moved away from the web side of my project for a couple 
> > of days to
> > > > take a break, and now as I come back, I18n has 
> completely stopped
> > > > working.
> > > > 
> > > > In 'struts.properties' I have the line
> > > > 
> > > > struts.custom.i18n.resources = global-messages
> > > > 
> > > > And in 'global-messages.properties' I have text like this
> > > > 
> > > > i18n.property = Property
> > > > i18n.value = Value
> > > > i18n.submit = Submit
> > > > 
> > > > But Struts can't seem to find these properties... Any 
> > idea what might
> > > > have happened? I don't think I changed anything related 
> > to this since
> > > > last week, when it was working...
> > > > 
> > > > If it helps any, I'm using Eclipse for Java EE and Tomcat 
> > > > 6.0.18. Sorry
> > > > to post a tech-support type of problem, but it really makes 
> > > > no sense to
> > > > me.
> > > > 
> > > > Jonathan P. Pearson - Software Engineer
> > > > -------------------------------------------------- 
> > > > SIXNET - Solutions for Your Industrial Networking Challenges
> > > > 331 Ushers Road, Ballston Lake, NY 12019
> > > > Tel: 1.518.877.5173, Fax: 1.518.877.8346
> > > > www.sixnet.com
> > > > 
> > > > 
> > 
> ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> > > > For additional commands, e-mail: user-h...@struts.apache.org
> > > > 
> > > > 
> > > 
> > > 
> > 
> ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> > > For additional commands, e-mail: user-h...@struts.apache.org
> > > 
> > 
> > _________________________________________________________________
> > Insert movie times and more without leaving Hotmail®.
> > http://windowslive.com/Tutorial/Hotmail/QuickAdd?ocid=TXT_TAGL
> > M_WL_HM_Tutorial_QuickAdd1_052009
> > 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
> 
> 

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

Reply via email to