• eclipse新建jsp模版设置


    第一步:找到JSP模板

      eclipse -- >perferences - >Web -> jsp files -Editor ->templates:

        

    第二步:准备编辑JSP的模板

      选择JSP with html markup,点击右边的Edit进入编辑界面

      

    第三步:把编辑好的模板内容粘贴进去

    <%@ page language="java" contentType="text/html; charset=UTF-8"
        pageEncoding="UTF-8"%>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
    <%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
    <%
        String path = request.getContextPath();
        String basePath = request.getScheme() + "://"
                + request.getServerName() + ":" + request.getServerPort()
                + path;
    %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>Insert title here</title>
    <style type="text/css">
    
    </style>
    </head>
    <body>
    
    </body>
    <script type="text/javascript">
    
    </script>
    </html>

     点击 Apply and Close 

  • 相关阅读:
    linux软件安装与卸载
    杂项搜集整理
    AS3的反编译
    linux驱动杂项
    Android 匿名共享内存C++接口分析
    S3C2440 之SPI
    二叉树
    ajax简介
    SP2-0618: Cannot find the Session Identifier. Check PLUSTRACE role is enabled
    让 collabtive-11 支持中文
  • 原文地址:https://www.cnblogs.com/mjtabu/p/11243879.html
Copyright © 2020-2023  润新知