首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > CSS >

增添/修改Eclipse中HTML、JSP等模板

2012-07-03 
添加/修改Eclipse中HTML、JSP等模板先找到myeclipse模板配置文件%myeclipse-install%\myeclipse\eclipse\pl

添加/修改Eclipse中HTML、JSP等模板

先找到myeclipse模板配置文件

%myeclipse-install%\myeclipse\eclipse\plugins\com.genuitec.eclipse.wizards_5.9.100\templates.xml

以下是该文件的内容:?


2、如果要添加模板,将
?<!--Sundy JSP templates -->
?<template
??context="com.genuitec.eclipse.wizards.jsp"
??script="templates/jsp/Jsp-Manager.vtl"
??name="JSP Manager template"/>
??<template
??context="com.genuitec.eclipse.wizards.jsp"
??script="templates/jsp/Jsp-View.vtl"
??name="JSP View template"/>
??<template
??context="com.genuitec.eclipse.wizards.jsp"
??script="templates/jsp/Jsp-Input.vtl"
??name="JSP Input template"/>
加入到templates.xml中,

把相应的模板拷到那个目录中去,

重新启动myeclipse,再新建相应的页面时就会看到我们自己添加的模板了。

3、如果是修改模板的话,找到相应的模板文件修改就行了。

热点排行