先找到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