Loading
Spring Read Message Resources

Java Quick Notes

Refresh Your Java - Before Java Interview

We are Agile, believe in less Documentation - Only Quick notes (Java Interview Questions) of Java/J2ee Read more....


Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet

Go to SiteMap

Q)  How to read Message Sources using Spring Application Context ?


Ans)

Here are the Steps to follow to use Internationalization by reading Message Resource.

1) Add this to your spring config XML .
  
      <bean id="messageSource" class="org.springframework.context.support.
                  ResourceBundleMessageSource
">
            <property name="basename" value="messages"/>
        </bean>
  
    2) create a property file name calles "messages.properties" and place that in
    WEB-INF/Classes folder.

  
    3) Include the following JSTL in jsp.
    <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
  



Back to top

------------------------- We hope you got necessary Info On -----------------------------------------

Spring Read Message Resources


Spring Read Message Resources

-------------------------------------------------------------------------------------------------------



Face Book
Request for a Mock Interview/Training

Get a PDF

Face Book
Same look (Read) on any device, this is Ads free