Top Description Interfaces Classes
module spring.webmvc

Package org.springframework.web.servlet.view.script

Annotations
@NonNullApi
@NonNullFields
Imports
org.springframework.lang.NonNullApi, .NonNullFields

Support classes for views based on the JSR-223 script engine abstraction (as included in Java 6+), e.g. using JavaScript via Nashorn on JDK 8. Contains a View implementation for scripted templates.

Interface Summary

Modifier and TypeInterface and Description
public interface
ScriptTemplateConfig

Interface to be implemented by objects that configure and manage a JSR-223 ScriptEngine for automatic lookup in a web environment.

Class Summary

Modifier and TypeClass and Description
public class
RenderingContext

Context passed to ScriptTemplateView render function in order to make the application context, the locale, the template loader and the url available on scripting side.

public class
ScriptTemplateConfigurer

An implementation of Spring MVC's ScriptTemplateConfig for creating a ScriptEngine for use in a web application.

public class
ScriptTemplateView

An AbstractUrlBasedView subclass designed to run any template library based on a JSR-223 script engine.

public class
ScriptTemplateViewResolver

Convenience subclass of UrlBasedViewResolver that supports ScriptTemplateView and custom subclasses of it.