先找到myeclipse模板配置文件html
%myeclipse-install%\myeclipse\eclipse\plugins\com.genuitec.eclipse.wizards_5.9.100\templates.xmleclipse
如下是该文件的内容: jsp
<?xml version="1.0" encoding="UTF-8"?> <templateLibrary> <!-- JSP templates --> <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/Struts-1.1.vtl" name="Standard JSP using Struts 1.1"/> <template context="com.genuitec.eclipse.wizards.jsp" script="templates/jsp/Struts-1.1-form.vtl" name="Standard JSP using Struts 1.1 with a form"/> <template context="com.genuitec.eclipse.wizards.jsp" script="templates/jsp/Struts-1_2.vtl" name="Standard JSP using Struts 1.2/1.3"/> <template context="com.genuitec.eclipse.wizards.jsp" script="templates/jsp/Struts-1_2-form.vtl" name="Standard JSP using Struts 1.2/1.3 with a form"/> <template context="com.genuitec.eclipse.wizards.jsp" script="templates/jsp/JSF.vtl" name="Default JSF template"/> <template context="com.genuitec.eclipse.wizards.jsp" script="templates/jsp/Jsp-html.vtl" name="Just as HTML"/> <!-- HTML templates --> <template context="com.genuitec.eclipse.wizards.html" script="templates/html/Html.vtl" name="Default HTML template"/> <template context="com.genuitec.eclipse.wizards.html" script="templates/html/HtmlWithLoginForm.vtl" name="HTML template with a form"/> 。 。 。
二、若是要添加模板,将
<!--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中,ui
把相应的模板拷到那个目录中去,code
从新启动myeclipse,再新建相应的页面时就会看到咱们本身添加的模板了。orm
三、若是是修改模板的话,找到相应的模板文件修改就好了。xml