【六祎-myeclipse】修改默认的JSP模板

找到安装的路径 :MyEclipse5.0\plugins\"。再搜索“ com.genuitec.eclipse.wizards”

默认JSP模板

#*---------------------------------------------#
# Template for a JSP
# @version: 1.2
# @author: Ferret Renaud
# @author: Jed Anderson
#---------------------------------------------#
*#<%@ page language="java" import="java.util.*" pageEncoding="$encoding"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP '$title' starting page</title>
    
	#parse( "templates/jsp/JSPMetaTags.vtl" )
  </head>
  
  <body>
    This is my JSP page. <br>
  </body>
</html>

 

修改之后的模板

<%@ page language="java" pageEncoding="UTF-8"%>
<!DOCTYPE HTML>
<html>
  <head>
     <title></title>
  </head>
<body>
    
</body>
</html>

 

 

 

posted @ 2022-04-26 00:54  你好,Alf  阅读(21)  评论(0编辑  收藏  举报