zoukankan      html  css  js  c++  java
  • JSP指令

    1.page指令:

         作用一:导包

         <%@page import = "java.util.*" %>

         <%@page import = "java.util.*,java.sql.*" %>

         作用二:设置response.setContentType() 方法的参数值

         <%@ page contentType = "image/gif" %>

         作用三:设置容器读取该文件时的解码

         <%@ pageEncoding = "UTF-8" %>

    2.include指令:

         作用一:在JSP页面转换成SErvlet时,能够将其他文件包含进来,可以包含jsp文件,也可以是静态的HTML文件。

                       通过该语句能方便的在每个JSP页面中包含导航栏、版权声明、logo等。

         语法:  <%@ include file= "url"  %>

                    eg:<%@ include file= "header.html"  %>

                         <%@ include file= "footer.html"  %>

                    

  • 相关阅读:
    es6之Promise
    es6之Proxy,Reflect
    js之对象
    Set,Map与Array,Object对比
    es6之数据结构 set,WeakSet,mapWeakMap
    es6之Symbol
    flex布局
    盒子模型,top和margin-top
    POJ1274-The Perfect Stall
    Codeforces 671D. Roads in Yusland 题解
  • 原文地址:https://www.cnblogs.com/sunfenqing/p/7324284.html
Copyright © 2011-2022 走看看