Skip to content

Rails-style unobtrusive JavaScript and Server-generated JavaScript responses in a Spring Boot web app

Notifications You must be signed in to change notification settings

lorenzodee/spring-ujs-sjr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Unobtrusive JavaScript and Server-Generated JavaScript Response

Here is an attempt to use Rails-style unobtrusive JavaScript (UJS) adapter for JQuery and server-generated JavaScript responses (SJRs) in a Spring Boot web application.

Server-Generated JS Response

To use a JSP that generates JavaScript, apart from the InternalResourceViewResolver bean named defaultViewResolver configured by Spring Boot's WebMvcAutoConfiguration, an additional InternalResourceViewResolver bean with text/javascript as content type is configured.

About

Rails-style unobtrusive JavaScript and Server-generated JavaScript responses in a Spring Boot web app

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published