1:找到您的MyEclipse中的JSP模板目錄(我的目錄:D:\Program Files\MyEclipse 5.5.1 GA\myeclipse\eclipse\plugins\com.genuitec.eclipse.wizards_5.5.1\templates\jsp)

2:在這里面你可以用記事本打開,修改其中的模板。

3:如果修改模板您怕出錯,您可以復制一份增加一個你自己的模板,找到MyEclipse中的JSP模板目錄,復制一份JSP模板,用記事本

打開

3:修改您想要的效果(我增加的模板:XuJian-Jsp.vtl)

4:上一步完成之后,還要去修改一個叫templates.xml的文件,后退連個目錄您就可以看到這個文件了(我的目錄:D:\Program Files\MyEclipse 5.5.1 GA\myeclipse\eclipse\plugins\com.genuitec.eclipse.wizards_5.5.1),也可以用記事本打開,在里面增加一段這樣的代碼

 <template
  context
="com.genuitec.eclipse.wizards.jsp" #這里不用修改
  script
="templates/jsp/XuJian-Jsp.vtl"   #這里就是你剛剛增加的哪個模板目錄
  name
="Sun XuJian Jsp template"/>  #這是你模板的名字


5:保存之后就Ok了(可以去High吧)。



 
 
Sun_Java_XuJian