zoukankan      html  css  js  c++  java
  • JSP Scripting Element

    There are five different types of scripting elements

    Scripting ElementExample
    Comment <%-- comment --%>
    Directive <%@ directive %>
    Declaration <%! declarations %>
    Scriptlet <% scriplets %>
    Expression <%= expression %>

    Directive Tag gives special instruction to Web Container at the time of page translation. Directive tags are of three types: pageinclude and taglib.

    DirectiveDescription
    <%@ page ... %> defines page dependent properties such as language, session, errorPage etc.
    <%@ include ... %> defines file to be included.
    <%@ taglib ... %> declares tag library used in the page

    以下是page包含的属性

    例如:

    <%@ page import="java.util.Date" %>
    or
    <%@ page import="java.util.Date,java.net.*" %>
    属性描述
    buffer 指定out对象使用缓冲区的大小
    autoFlush 控制out对象的 缓存区
    contentType 指定当前JSP页面的MIME类型和字符编码
    errorPage 指定当JSP页面发生异常时需要转向的错误处理页面
    isErrorPage 指定当前页面是否可以作为另一个JSP页面的错误处理页面
    extends 指定servlet从哪一个类继承
    import 导入要使用的Java类
    info 定义JSP页面的描述信息
    isThreadSafe 指定对JSP页面的访问是否为线程安全
    language 定义JSP页面所用的脚本语言,默认是Java
    session 指定JSP页面是否使用session
    isELIgnored 指定是否执行EL表达式
    isScriptingEnabled 确定脚本元素能否被使用
  • 相关阅读:
    56. Merge Intervals
    Reorder List
    Merge Two Sorted Lists
    彻底删除kafka topic数据
    什么时候类加载
    checkpoint的作用
    case when
    SQL:将查询结果插入到另一个表的三种情况
    IFNULL函数
    kafka主要配置
  • 原文地址:https://www.cnblogs.com/kakaisgood/p/4901071.html
Copyright © 2011-2022 走看看