Hi again! When I said that ApplicationResources.properties file is usually located in source part, I meant that you should put it where you've put the other .java and their packages. You can use another package, separated from the other .java files, called for example "i18n".
You can define the language you want to use in the application code like this (this example set the language to english): session.setAttribute(Globals.LOCALE_KEY,new java.util.Locale("en","US")); Eider On 6/27/06, Fredrik Andersson <[EMAIL PROTECTED]> wrote:
Hi Yeah they files all contain the app.name=(Language name for testing) ApplicationResources.properties ApplicationResources_sv.properties ApplicationResources_no.properties So you are saying that I should make a folder and put it under WEB-INF/ and place the files there? Or how do you mean by package? Also where do I tell struts if I want sv, no or the ordinary ApplicationResources file? Will struts fall back on the ApplicationResources.properties file as default? Den 6/27/2006, skrev "Eider Iturbe" < [EMAIL PROTECTED]>: Hi! The ApplicationResources.properties file is usually inside source part, and not in Web Content part. For example, you can create a package called "i18n" and then you can save the ApplicationResources.properties file there. Then, you have to set this in struts-config.xml: <message-resources parameter="i18n.ApplicationResources" null="false" /> Another question, is the app.name key defined in the ApplicationResource.properties file??? -- Eider On 6/27/06, Fredrik Andersson < [EMAIL PROTECTED]> wrote: > > Hi all > > I'm quite new to struts and is trying to implement an Language > internalization on some jsp pages. > > I have my ApplicationResources.properties files inside my WEB-INF folder > and in all my struts-config files I have added the > <message-resources parameter="ApplicationResources" null="false" /> > tag. > The web.xml was extended with the following. > <taglib> > <taglib-uri>/WEB-INF/struts-bean.tld</taglib-uri> > <taglib-location>/WEB-INF/struts-bean.tld</taglib-location> > </taglib> > And I have put the struts-bean.tld file inside my WEB-INF folder. > > now when I point my browser to my page I get a "Missing message for key > "app.name" " > > Any help or pointers is greatly appreciated. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
-- Eider