首页  :: 新随笔  :: 管理

myeclipse7 定义自己的jsp模版

Posted on 2010-10-21 17:39  季枫  阅读(463)  评论(0编辑  收藏  举报

在更改前先关闭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包中,

智读 | 成都会领科技有限公司官网 | 智读App下载 | 每天听本书的博客 | |