當(dāng)前位置:
首頁(yè) >
前端技术
> javascript
>内容正文
javascript
MyEclipse 中修改JSP模板
生活随笔
收集整理的這篇文章主要介紹了
MyEclipse 中修改JSP模板
小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
在X:\Program Files\MyEclipse 6.0\myeclipse\eclipse\plugins\com.genuitec.eclipse.wizards_6.0.1.zmyeclipse601200710\templates\jsp? 目錄下找到Jsp.vtl,復(fù)制一份,重命名為jsp2.vtl,然后把里面的內(nèi)容修改為自己想要的格式,保存。
然后在 X:\Program Files\MyEclipse 6.0\myeclipse\eclipse\plugins\com.genuitec.eclipse.wizards_6.0.1.zmyeclipse601200710 目錄下找到templates.xml,用文本編輯器打開(kāi)。在
??? <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/jsp2.vtl"
??? ??? name="JSP2 template"/>
保存。重啟eclipse。
新建jsp,在模板中就會(huì)出現(xiàn)JSP2 template,選中,按完成,新建的jsp頁(yè)面就按你的模板生成了!
然后在 X:\Program Files\MyEclipse 6.0\myeclipse\eclipse\plugins\com.genuitec.eclipse.wizards_6.0.1.zmyeclipse601200710 目錄下找到templates.xml,用文本編輯器打開(kāi)。在
??? <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/jsp2.vtl"
??? ??? name="JSP2 template"/>
保存。重啟eclipse。
新建jsp,在模板中就會(huì)出現(xiàn)JSP2 template,選中,按完成,新建的jsp頁(yè)面就按你的模板生成了!
轉(zhuǎn)載于:https://www.cnblogs.com/xiazdong/archive/2012/02/11/3058077.html
與50位技術(shù)專(zhuān)家面對(duì)面20年技術(shù)見(jiàn)證,附贈(zèng)技術(shù)全景圖總結(jié)
以上是生活随笔為你收集整理的MyEclipse 中修改JSP模板的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: Windows启动过程
- 下一篇: 职业相关职位及职位能力要求知识点大纲范围