Subversion Repositories SmartDukaan

Rev

Rev 32787 | Rev 32829 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 32787 Rev 32788
Line 134... Line 134...
134
    @Bean
134
    @Bean
135
    public VelocityConfigurer velocityConfig() {
135
    public VelocityConfigurer velocityConfig() {
136
        VelocityConfigurer velocityConfigurer = new VelocityConfigurer();
136
        VelocityConfigurer velocityConfigurer = new VelocityConfigurer();
137
        Properties velocityProperties = new Properties();
137
        Properties velocityProperties = new Properties();
138
        velocityProperties.put("directive.set.null.allowed", "true");
138
        velocityProperties.put("directive.set.null.allowed", "true");
139
        velocityProperties.put("file.resource.loader.cache", true);
-
 
140
        velocityProperties.put("file.resource.loader.unicode", true);
-
 
141
        velocityProperties.put("input.encoding", "UTF-8");
-
 
142
        velocityProperties.put("output.encoding", "UTF-8");
-
 
143
        velocityProperties.put("contentType", "text/html");
-
 
144
        velocityProperties.put("charset", "UTF-8");
-
 
145
        velocityProperties.put("response.encoding", "UTF-8");
-
 
146
        velocityConfigurer.setVelocityProperties(velocityProperties);
139
        velocityConfigurer.setVelocityProperties(velocityProperties);
147
        velocityConfigurer.setResourceLoaderPath(VELOCITY_PATH_PREFIX);
140
        velocityConfigurer.setResourceLoaderPath(VELOCITY_PATH_PREFIX);
148
        return velocityConfigurer;
141
        return velocityConfigurer;
149
    }
142
    }
150
 
143
 
151
    @Bean
144
    @Bean(name = "messageSource")
152
    public ReloadableResourceBundleMessageSource messageSource() {
145
    public ReloadableResourceBundleMessageSource getReloadableResourceBundleMessageSource() {
153
        LOGGER.debug("creating messageSource bean with message path source name : " + MESSAGE_PATH_SOURCE_NAME);
146
        LOGGER.debug("creating messageSource bean with message path source name : " + MESSAGE_PATH_SOURCE_NAME);
154
        ReloadableResourceBundleMessageSource messageSource = new ReloadableResourceBundleMessageSource();
147
        ReloadableResourceBundleMessageSource messageSource = new ReloadableResourceBundleMessageSource();
155
        messageSource.setBasename(MESSAGE_PATH_SOURCE_NAME);
148
        messageSource.setBasename(MESSAGE_PATH_SOURCE_NAME);
156
        messageSource.setDefaultEncoding("UTF-8");
149
        messageSource.setDefaultEncoding("UTF-8");
157
        //messageSource.setDefaultEncoding("ISO 8859-1");
150
        //messageSource.setDefaultEncoding("ISO 8859-1");