open class ScriptTemplateView : AbstractUrlBasedView
An AbstractUrlBasedView subclass designed to run any template library based on a JSR-223 script engine.
If not set, each property is auto-detected by looking up a single ScriptTemplateConfig bean in the web application context and using it to obtain the configured properties.
The Nashorn JavaScript engine requires Java 8+ and may require setting the sharedEngine property to false in order to run properly. See ScriptTemplateConfigurer#setSharedEngine(Boolean) for more details.
Author
Sebastien Deleuze
Author
Juergen Hoeller
Since
5.0
See Also
ScriptTemplateConfigurerScriptTemplateViewResolver
ScriptTemplateView()
Constructor for use as a bean. ScriptTemplateView(url: String)
Create a new ScriptTemplateView with the given URL. |
open fun checkResourceExists(locale: Locale): Boolean |
|
open fun setApplicationContext(context: ApplicationContext): Unit |
|
open fun setEngine(engine: ScriptEngine): Unit
See |
|
open fun setEngineName(engineName: String): Unit
See |
|
open fun setRenderFunction(functionName: String): Unit
See |
|
open fun setRenderObject(renderObject: String): Unit
See |
|
open fun setResourceLoaderPath(resourceLoaderPath: String): Unit
See |
|
open fun setScripts(vararg scripts: String): Unit
See |
|
open fun setSharedEngine(: Boolean): Unit
See |
open fun afterPropertiesSet(): Unit |
|
open fun getUrl(): String
Return the URL of the resource that this view wraps. |
|
open fun setUrl(url: String): Unit
Set the URL of the resource that this view wraps. The URL must be appropriate for the concrete View implementation. |
|
open fun toString(): String |