Skip to content

Spring MVC SiteMesh3 integration using ViewResolver instead of Servlet Filter

Notifications You must be signed in to change notification settings

javaguru-ch/spritemesh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

spritemesh

Spring MVC SiteMesh 3 integration using ViewResolver instead of Servlet Filter

#Usage


    @Bean
    public ViewResolver viewResolver() {
        return new SiteMeshViewResolverBuilder(viewResolverDelegate())
                .addDecoratorPath("/*", "decorators/decorator")
                .create();
    }

    @Bean(name = "viewResolverDelegate")
    public ViewResolver viewResolverDelegate() {
        InternalResourceViewResolver resolver = new InternalResourceViewResolver();
        resolver.setPrefix("/WEB-INF/views/");
        resolver.setSuffix(".jsp");
        return resolver;
    }
    

About

Spring MVC SiteMesh3 integration using ViewResolver instead of Servlet Filter

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages