修改 MyEclipse 中的 jsp 和 servlet 模板

找到  MyEclipse/Common/plugins/com.genuitec.eclipse.wizards_9.0.0.me201211011550.jar 这个文件(wizards后面的数字可能不同)

servlet 模板为 .jar/templates/Servlet.java

<aw:method name="doGet">  
    public void doGet(HttpServletRequest request, HttpServletResponse response)  
        throws ServletException, IOException {  
 
    }   
</aw:method>  
 
<aw:method name="doPost">    
    public void doPost(HttpServletRequest request, HttpServletResponse response)  
        throws ServletException, IOException {   
        doGet(request, response);  
    }    
</aw:method>

 

jsp 模板为:  .jar/templates/jsp/Jsp.vtl

 

#*---------------------------------------------#
# Template for a JSP
# @version: 1.2
# @author: Ferret Renaud
# @author: Jed Anderson
#---------------------------------------------#
*#<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title></title>
  </head>
  <body>
    
  </body>
</html>

 

posted @ 2016-12-10 12:28  MarcoReus  阅读(280)  评论(0编辑  收藏  举报