Results 1 to 3 of 3

Thread: Can i use XML file instead of resource bundel?

  1. #1

    Default Can i use XML file instead of resource bundel?

    Hi,

    Currently i use the below bean to handle retrieval of messages from a resource bundel (property file):

    HTML Code:
            <bean id="messageSource" class="org.springframework.context.support.ReloadableResourceBundleMessageSource">
    		<property name="basenames">
    			<list>
    				<value>WEB-INF/classes/mailmessages</value>
    				<value>WEB-INF/classes/messages</value>
    				<value>WEB-INF/classes/exceptionmessages</value>
    			</list>
    		</property>
    		<property name="fileEncodings" value="UTF-8" />
    	        <property name="defaultEncoding" value="UTF-8" />
    	</bean>
    Can you suggest other Spring implementation which uses XML file instead?

    Thanks.

  2. #2
    Join Date
    Jun 2006
    Location
    The Netherlands
    Posts
    13,632

    Default

    Currently there is none. So if you want one based on xml then implement your own. There is no standard way to specify one for xml, because what you think is workable/suitable isn't suitable for someone else (the same goes for a database backed one).

    With ResourceBundles the way they work and behave is clearly documented.
    Marten Deinum
    Java Consultant / Pragmatist / Open Source Enthousiast / Author


    Pro Spring MVC: With Web Flow
    Conspect

    Have you read the reference guide.
    Use the [ code ] tags, young padawan

  3. #3

    Default

    Thanks Marten.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •