如何在速度模板中包含jsp页面? [英] How to include a jsp page in velocity template?

查看:167
本文介绍了如何在速度模板中包含jsp页面?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的项目中,我在jsp中有我的页眉和页脚,我想将这些页眉和页脚添加到现有项目中,页眉和页脚在速度模板中(.vm)

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...

推荐答案

两条路径我认为,两者都需要VelocityTools。

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

使用ImportTool导入两个jsp页面。

Either use the ImportTool to import the two jsp pages.

或者创建一个包含页眉和页脚的小jsp文件,并使用VelocityViewTag来#parse('your_template.vm')

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

这篇关于如何在速度模板中包含jsp页面?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆