Announcement Announcement Module
Collapse
No announcement yet.
FreeMarker: can't set templateLoaderPaths Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • FreeMarker: can't set templateLoaderPaths

    I would like to read both defaults and local views. Isn't the following supposed to work?
    Code:
    	<bean id="freemarkerConfig" 
    		class="org.springframework.web.servlet.view.freemarker.FreeMarkerConfigurer">
    		<property name="templateLoaderPaths">
    			<value>WEB-INF/freemarker/, classpath*:views/</value>
    		</property> 
    		<property name="freemarkerSettings">
    			<props>
    				<prop key="default_encoding">ISO-8859-1</prop>
    			</props>
    		</property>
    	</bean>
    Here is the error:

    Error creating bean with name 'freemarkerConfig' defined in class path resource [access-servlet.xml]: Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyExcep tion: Invalid property 'templateLoaderPaths' of bean class [org.springframework.web.servlet.view.freemarker.Fr eeMarkerConfigurer]: Bean property 'templateLoaderPaths' is not writable or has an invalid setter method: Does the parameter type of the setter match the return type of the getter?


    Thanks for any help.

    Mauricio
Working...
X