myeclipse 新建一个自己的JSP模板
1. 找到MyEclipse安装路径,用WinRaR打开com.genuitec.eclipse.wizards_xxx.jar文件
2. 找到该jar包下templates\jsp\Jsp.vtl文件,
在本文件夹下添加一个myjsp.vtl 将jsp.vtl中的内容复制过去,再修改如下
#*---------------------------------------------#
#Template for a JSP
#@version: 1.2
#@author: Ferret Renaud
#@author: Jed Anderson
#---------------------------------------------#
*#<%@page language="java" contentType="text/html;charset=$encoding"%>
<!DOCTYPEHTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>$title</title>
</head>
<body>
</body>
</html>
3.找到jar根目录下的templates.xml文件
用文本编辑器打开。在
<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/myjsp.vtl"
name="MyJsp"/>