Example usage for org.springframework.web.servlet.view InternalResourceViewResolver InternalResourceViewResolver

List of usage examples for org.springframework.web.servlet.view InternalResourceViewResolver InternalResourceViewResolver

Introduction

In this page you can find the example usage for org.springframework.web.servlet.view InternalResourceViewResolver InternalResourceViewResolver.

Prototype

public InternalResourceViewResolver() 

Source Link

Document

Sets the default #setViewClass view class to #requiredViewClass : by default InternalResourceView , or JstlView if the JSTL API is present.

Usage

From source file:com.aerolinea.config.WebConfig.java

@Bean
public ViewResolver viewResolver() {
    InternalResourceViewResolver resolver = new InternalResourceViewResolver();
    resolver.setPrefix("/WEB-INF/jsp/");
    resolver.setSuffix(".jsp");
    resolver.setExposeContextBeansAsAttributes(true);
    return resolver;
}

From source file:com.amuponda.estorehack.client.web.config.EstoreWebConfig.java

/**
 *
 * @return the view resolver for the application
 *//*from  w w  w  .  j a  va2  s . com*/
@Bean
public ViewResolver viewResolver() {
    InternalResourceViewResolver resolver = new InternalResourceViewResolver();
    resolver.setPrefix("/WEB-INF/views/");
    resolver.setSuffix(".jsp");
    //Allows InternalResourceViewResolver to resolve JstlView instead of Internal
    //Resource view
    //JstlView allows use of locale specific JSTL tags and use of Spring message sources
    resolver.setViewClass(org.springframework.web.servlet.view.JstlView.class);
    return resolver;
}

From source file:de.fau.cs.osr.web_example.config.WebConfig.java

@Bean
public InternalResourceViewResolver viewResolver() {
    InternalResourceViewResolver resolver = new InternalResourceViewResolver();
    resolver.setPrefix("/WEB-INF/view/");
    resolver.setSuffix(".jsp");
    return resolver;
}

From source file:com.anjewe.anjewewebwinkel.Config.WebConfig.java

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

From source file:com.alejandroszlv.mock.web.config.MvcConfig.java

@Bean
public ViewResolver viewResolver() {
    InternalResourceViewResolver viewResolver = new InternalResourceViewResolver();
    viewResolver.setViewClass(JstlView.class);
    viewResolver.setPrefix("/WEB-INF/jsp/");
    viewResolver.setSuffix(".jsp");
    return viewResolver;
}

From source file:com.thebinaryidiot.springnoxml.WebAppConfig.java

/**
 * Configure view resolver to look in /WEB-INF/views/ for .jspx files
 *
 * @return//w  ww .ja  v a  2s  .  co m
 */
@Bean
public InternalResourceViewResolver viewResolver() {
    final InternalResourceViewResolver resolver = new InternalResourceViewResolver();
    resolver.setPrefix("/WEB-INF/views/");
    resolver.setSuffix(".jspx");
    return resolver;
}

From source file:org.drugis.addis.config.WebMvcConfig.java

@Bean
public ViewResolver viewResolver() {
    UrlBasedViewResolver viewResolver = new InternalResourceViewResolver();
    viewResolver.setViewClass(JstlView.class);
    viewResolver.setPrefix("/WEB-INF/views/");
    viewResolver.setSuffix(".jsp");
    return viewResolver;
}

From source file:com.googlecode.jeeunit.example.spring.web.WebSpringConfig.java

@Bean
public ViewResolver viewResolver() {
    InternalResourceViewResolver bean = new InternalResourceViewResolver();
    bean.setPrefix("/jsp/");
    bean.setSuffix(".jsp");
    bean.setViewClass(JstlView.class);
    return bean;// w ww .ja  va2  s. c  o  m
}

From source file:com.wms.multitenant.config.AppConfig.java

@Bean
public ViewResolver jspViewResolver() {
    InternalResourceViewResolver resolver = new InternalResourceViewResolver();
    resolver.setViewClass(JstlView.class);
    resolver.setPrefix("/WEB-INF/jsp/");
    resolver.setSuffix(".jsp");
    return resolver;
}

From source file:eventmanager.config.WebAppConfig.java

@Bean
public ViewResolver setupViewResolver() {
    InternalResourceViewResolver resolver = new InternalResourceViewResolver();
    resolver.setPrefix("/views/");
    resolver.setSuffix(".jsp");
    resolver.setViewClass(JstlView.class);
    return resolver;
}