From the course: Complete Guide to Spring MVC

Unlock this course with a free trial

Join today to access over 24,600 courses taught by industry experts.

Script views overview

Script views overview

- [Instructor] Script views. Script views in Spring MVC enable developers to integrate dynamic templating libraries and scripting engines for server side rendering. These views utilize JSR 223 compliant scripting engines offering the flexibility to use scripting languages and templating libraries like Mustache, Handlebars, or even React. Here are the three main features of script views. One is the scripting engine integration. Script views require a JSR 223 compliance scripting engine such as Nashorn, JRuby, Jython, or Kotlin scripting. These engines support dynamic execution of scripts to generate HTML views at runtime. The second and third main features of script views is dynamic rendering and Spring MVC integration. You have modern JavaScript-based templating engines like Mustache, Handlebars or React that can be integrated server side using script views. This approach supports the generation of highly interactive and dynamic web pages, and by using ScriptTemplateConfigurer and…

Contents