How to include a jsp page in velocity template?

此生再无相见时 提交于 2019-12-08 03:48:27

问题


In my project i have my header and footer in jsp and i want to add these header and footer to an existing project in which, the header and footer are in velocity template(.vm)

please help me... thanks in advance...


回答1:


Two paths toward this that i see, both require VelocityTools.

Either use the ImportTool to import the two jsp pages.

Or create a little jsp file that includes the header and footer and uses the VelocityViewTag to #parse('your_template.vm')



来源:https://stackoverflow.com/questions/10663388/how-to-include-a-jsp-page-in-velocity-template

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!