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 7026655
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T00:08:46+00:00 2026-05-28T00:08:46+00:00

I have a problem with multi-languages with Spring on project EgovFramework. My problem cannot

  • 0

I have a problem with multi-languages with Spring on project EgovFramework.

My problem cannot change language when I request like that http://localhost:8080/common/cop/adb/selectAdbkList.do?language=en_us , it should be changed all the labels and the name of button to english.

Here is my code context-common.xml for call files messages

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.springframework.org/schema/p"
    xmlns:context="http://www.springframework.org/schema/context"
    xmlns:aop="http://www.springframework.org/schema/aop"
    xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
                http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd
                http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-3.0.xsd">

    <bean id="localeChangeInterceptor"
        class="org.springframework.web.servlet.i18n.LocaleChangeInterceptor">
        <property name="paramName" value="language" />
    </bean>
<!-- <bean id="localeResolver" -->
<!-- class="org.springframework.web.servlet.i18n.SessionLocaleResolver"
    /> -->
<bean id="localeResolver"
    class="org.springframework.web.servlet.i18n.CookieLocaleResolver">
    <property name="defaultLocale" value="ko_KR" />
</bean>

<bean id="handlerMapping"
    class="org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping">
    <property name="interceptors">
        <ref bean="localeChangeInterceptor" />
    </property>
</bean>

<bean id="messageSource"
    class="org.springframework.context.support.ReloadableResourceBundleMessageSource">
    <property name="basenames">
        <list>
            <value>classpath:egovframework/message/com/messages</value>
        </list>
    </property>
    <property name="fallbackToSystemLocale" value="false" />
    <property name="cacheSeconds" value="3" />
    <property name="defaultEncoding" value="UTF-8" />
    <property name="fileEncodings" value="UTF-8" />
</bean>

<!-- <bean id="messageSource" -->
<!-- class="org.springframework.context.support.ReloadableResourceBundleMessageSource"> -->
<!-- <property name="basenames"> -->
<!-- <list> -->
<!-- <value>classpath:/egovframework/message/com/message-common -->
<!-- </value> -->
<!-- </list> -->
<!-- </property> -->
<!-- <property name="defaultEncoding" value="UTF-8" /> -->
<!-- <property name="cacheSeconds"> -->
<!-- <value>60</value> -->
<!-- </property> -->
<!-- </bean> -->

<bean id="placeholderConfig"
    class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
    <property name="locations">
        <array>
            <value>classpath:/egovframework/egovProps/globals.properties
            </value>
            <value>classpath:/egovframework/rte/fdl/property/messages/properties.properties
            </value>
            <value>classpath:/egovframework/rte/fdl/idgnr/messages/idgnr.properties
            </value>
        </array>
    </property>
</bean>

<bean id="egovMessageSource" class="egovframework.com.cmm.EgovMessageSource">
    <property name="reloadableResourceBundleMessageSource">
        <ref bean="messageSource" />
    </property>
</bean>

<!-- 실행환경에서 빈 이름 참조(AbstractServiceImpl) -->
<bean id="leaveaTrace" class="egovframework.rte.fdl.cmmn.trace.LeaveaTrace">
    <property name="traceHandlerServices">
        <list>
            <ref bean="egov.traceHandlerService" />
        </list>
    </property>
</bean>

<bean id="egov.traceHandlerService"
    class="egovframework.rte.fdl.cmmn.trace.manager.DefaultTraceHandleManager">
    <property name="reqExpMatcher">
        <ref bean="egov.antPathMater" />
    </property>
    <property name="patterns">
        <list>
            <value>*</value>
        </list>
    </property>
    <property name="handlers">
        <list>
            <ref bean="egov.defaultTraceHandler" />
        </list>
    </property>
</bean>

<bean id="egov.antPathMater" class="org.springframework.util.AntPathMatcher" />

<bean id="egov.defaultTraceHandler"
    class="egovframework.rte.fdl.cmmn.trace.handler.DefaultTraceHandler" />


<!-- MULTIPART RESOLVERS -->
<!-- regular spring resolver -->
<bean id="spring.RegularCommonsMultipartResolver"
    class="org.springframework.web.multipart.commons.CommonsMultipartResolver">
    <property name="maxUploadSize" value="100000000" />
    <property name="maxInMemorySize" value="100000000" />
</bean>

<!-- custom multi file resolver -->
<bean id="local.MultiCommonsMultipartResolver" class="egovframework.com.cmm.web.EgovMultipartResolver">
    <property name="maxUploadSize" value="100000000" />
    <property name="maxInMemorySize" value="100000000" />
</bean>

<!-- choose one from above and alias it to the name Spring expects -->
<!-- alias name="local.MultiCommonsMultipartResolver" alias="multipartResolver" 
    / -->
<alias name="spring.RegularCommonsMultipartResolver" alias="multipartResolver" />

<context:component-scan base-package="egovframework, example">
    <context:include-filter type="annotation"
        expression="org.springframework.stereotype.Service" />
    <context:include-filter type="annotation"
        expression="org.springframework.stereotype.Repository" />
    <context:exclude-filter type="annotation"
        expression="org.springframework.stereotype.Controller" />
</context:component-scan>

Here is the classpath of all files messages.

  • egovframework.message.com
    • messages_en_US.properties
    • messages_ko_KR.properties

Please Help me, why I cannot change when i request ?language=en_us on browser…..

Thanks

  • 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-28T00:08:47+00:00Added an answer on May 28, 2026 at 12:08 am

    I dont know project EgovFramework, but with normal Spring you should have this in your configuration to change the language:

     <mvc:interceptors>
       <bean class="org.springframework.web.servlet.i18n.LocaleChangeInterceptor" p:paramName="language" />
     </mvc:interceptors>
    

    Then there seams to be an other mistake: You used different casing:
    The file is named (correct) messages_en_US.properties. But you tryed ?language=en_us. Try ?language=en_US instead.

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

Sidebar

Related Questions

I have a java application with multi-language support. When I change the language (in
I have a small web application that has multi-language support (en, de, it, fr,
I’m working on a multi dimensions array but i have a problem Imagine I
I have a multi-dimensional array, no problem. How do I interrogator one of the
I have problem in some JavaScript that I am writing where the Switch statement
I have problem with ActionLink. I'd like to pass to my ActionLink parameter for
I have a problem with my XML that I am trying to display on
I have a problem where I need to make a multi-colored wheel spin using
I'm building a multi-tenant app with ASP.NET MVC and have a problem with validating
It's something that's bugged me in every language I've used, I have an if

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.