myeclipse 创建jsp页面时,怎么将默认模板换成自己创建的?

我说的是在myeclipse中设置

以MyEclipse8.6为
1. 找到MyEclipse安装路径,用WinRaR打开com.genuitec.eclipse.wizards_xxx.jar文件
\Common\plugins\com.genuitec.eclipse.wizards_8.6.0.me201007140905.jar

2. 找到该jar包下templates\jsp\Jsp.vtl文件,先将该文件拷贝出来,将文件内容修改为如下:
#*---------------------------------------------#
# Template for a JSP
# @version: 1.2
# @author: Ferret Renaud
# @author: Jed Anderson
#---------------------------------------------#
*#<%@ page language="java" contentType="text/html; charset=$encoding"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>$title</title>
</head>

<body>
</body>
</html>
温馨提示:内容为网友见解,仅供参考
无其他回答
相似回答