• 修改 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>

  • 相关阅读:
    xml的语法与创建
    smarty实现缓存
    Smarty中一些标签的使用
    smarty中的变量使用
    商品中的分页类
    引入百度编辑器
    VB.NET操作Word大全
    Android 自带图标库 android.R.drawable
    DataGridViewComboxCell值无效 的原因
    windows7/win7 iis的安装与配置(图解教程)
  • 原文地址:https://www.cnblogs.com/Westfalen/p/6155378.html
Copyright © 2020-2023  润新知