myeclipse7 定义自己的jsp模版

在更改前先关闭eclipse。

在eclipse安装目录找到一下jar文件:

MyEclipse 7.0 M2\eclipse\plugins\com.genuitec.eclipse.wizards_6.9.200.zmyeclipse69200200809.jar

使用winrar打开该jar:

 将\templates\jsp\Jsp.vtl 拖动出来使用文本编辑器编辑为自己想要的内容,将 Jsp.vtl命名为自己的名字

在将 jar根目录的templates.xml拖出来编辑,

找到

    <template
        context="com.genuitec.eclipse.wizards.jsp"
        script="templates/jsp/Jsp.vtl"
        name="Default JSP template"/>

复制一份修改在下一行,例如:

    <template
        context="com.genuitec.eclipse.wizards.jsp"
        script="templates/jsp/ComsysJsp.vtl"
        name="Default JSP template"/> 

删除,jar根目录下的 templates.xml文件,将编辑好的templates.xml拖动到jar包中,

原文地址:https://www.cnblogs.com/jifeng/p/1857711.html