zoukankan      html  css  js  c++  java
  • 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 

  • 相关阅读:
    初识sql语句
    IO模型比较分析
    select,poll,epoll,selectors
    多路复用IO
    非阻塞IO
    yield-from示例
    阻塞IO(blocking IO)
    IO模型介绍
    gevent实现套接字
    gevent异步,io自动切换
  • 原文地址:https://www.cnblogs.com/mjtabu/p/11243879.html
Copyright © 2011-2022 走看看