Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6843289
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T00:13:38+00:00 2026-05-27T00:13:38+00:00

My Web-program config is Struts2 and Tomcat 6.0. and my project is support i18n(International~)

  • 0

My Web-program config is Struts2 and Tomcat 6.0.

and my project is support i18n(International~)

and I use class extends com.opensymphony.xwork2.ActionSupport.

The getText(String) method works, but getTexts() doesn’t work.

public class MyAction extends ActionSupport {
    public void textString() {
        // print "en" works
        String strTemp1 = getText("CURRENT.LOCALE");
        System.out.println(strTemp1);

        // This doesn't; bundle is null.
        ResourceBundle bundle = getTexts();
        System.out.println(bundle);
    }
}

globalMessage_en.properties

CURRNET.LOCALE = en
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T00:13:38+00:00Added an answer on May 27, 2026 at 12:13 am

    This actually works as intended. From the docs of TextProvider.getTexts()):

    Get the resource bundle associated with the implementing class (usually an action).

    As you only have a global message resource, it returns null. If you would have a specific message resource for your action (e.g. MyAction.properties in the same directory as your action), it would return a corresponding ResourceBundle (PropertyResourceBundle).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

While uploading my current project to our staging server I noticed that the Web.config
One of the libraries I am including in my project makes use of System.Web.Extensions
Hey guys I'm writing a simple web program to get my feet wet in
I have a simple web.py program to load data. In the server I don't
I am writing a web-spider program with C. Now I am given a url's
hello I am making web page searching program with windows batch file before searching
My C# program uses a web browser control and I programmatically set its html
I wrote a simple program in java web forms but i am receiving the
I wrote a program for downloading an image from web using AsyncTask in service
I have a program that downloads PCM data from a Web Server, which it

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.