Announcement Announcement Module
Collapse
No announcement yet.
messages.properties Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • messages.properties

    In the normal way, messages.properties is located in
    /WEB-INF/classes/messages.properties

    and i put this code in [appname]-servlet.xml :
    <bean id="messageSource" class="org.springframework.context.support.Resourc eBundleMessageSource">
    <property name="basename" value="classpath:messages.properties"/>
    </bean>

    my question is how if i want to change messages.properties into another path, example /WEB-INF/message_res/messages.properties?
    what should i change for?

    thank you all

  • #2
    re:messages.properties

    i find it,

    i just change like this :

    <bean id="messageSource"
    class="org.springframework.context.support.Reloada bleResourceBundleMessageSource">
    <property name="basename"><value>/WEB-INF/messages_res/messages</value></property>
    </bean>

    thank you all

    Comment

    Working...
    X