Does the action being executed extend ActionSupport? Dave
--- On Mon, 8/11/08, Ylva Degerfeldt <[EMAIL PROTECTED]> wrote: > From: Ylva Degerfeldt <[EMAIL PROTECTED]> > Subject: [Struts 2] NetBeans can't find my ResourceBundle properties file > (localization issue) > To: "Struts Users Mailing List" <user@struts.apache.org> > Date: Monday, August 11, 2008, 12:18 PM > Hi, > > I'm trying to use the localization method of having > property files > that define all the visible text using keys and values > (e.g. > "nameAndCv.title = Namn och cv"), but the problem > is that NetBeans > (5.5.1) can't seem to find my properties file (I only > have one). > > I've read in "Struts 2 in Action" that all > you should have to do to > make this work is to define some property files and put > them in a > place where Struts 2 can find them (Then ResourceBundles > should be > automatically created). There should be many options for > this place > but I've already tried two and it didn't work. > > One try: Have all the message strings in the same package > as the > action class, and call the file > "package.properties". This is supposed > to work but didn't. (It shouldn't matter that I > have several action > classes in the same package, right?) > > Another try: I kept the file from above but tried to > explicitly define > where Struts 2 should find it, both in struts.properties, > like this: > > struts.custom.i18n.resources = Web.StrutsActions.package > > and in struts.xml, like this: > > <constant name="struts.custom.i18n.resources" > value = > "Web.StrutsActions.package"/> > > The Web package is directly underneath \src\java, > but I shouldn't have > to specify that, or should I? > > > The problem is (just to be clear) that when I try to > execute, for > instance this tag: > <s:text name = "nameAndCv.title"/> > ..the properties file can't be found so what is printed > is literally > "nameAndCv.title" > > Does anyone have a solution to this problem? That would be > great! > > Thanks in advance! > > /Ylva > > --------------------------------------------------------------------- > 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]