开发者

How to resolve JSP pages dynamicly from an external source like a database

Does anyone know how to setup/configure Tomcat's JSP engine to load JSP pages from an external source like a database or JCR? The project that I'm working on uses groovy scripts, freemarker templates, etc that is loaded from a JCR at runtime (it is cached and reloaded when I update the JCR). I also want to add JSP pages as an opt开发者_StackOverflow社区ional template/script alternative but I can't figure out how to load JSP dynamically at runtime when I update it in the JCR.

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


One of the options is to save your JSP content from DB to a file in webapp directory and just hit a proper URL in a browser or possibly include this file to other JSP. You could also play around with filters and there generate those new JSP files on demand.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜