How to dynamically resolve JSP pages from an external source such as a database

Does anyone know how to configure / configure the Tomcat JSP engine to load JSP pages from an external source such as a database or JCR? The project I'm working on uses groovy scripts, freemarker templates, etc., which are loaded from the JCR at runtime (it is cached and reloaded when the JCR is updated). I also want to add JSP pages as an alternative to the / script template, but I cannot figure out how to load the JSP dynamically at runtime when I update it in JCR.

Any help or pointers in the right direction would be greatly appreciated

+3
source share
1 answer

One option is to save the contents of the JSP from the database to a file in the webapp directory and simply click on the correct URL in the browser, or possibly include this file in another JSP. You can also play with filters and create these new JSP files upon request.

0
source

Source: https://habr.com/ru/post/1775725/


All Articles