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 确定脚本元素能否被使用
  • 相关阅读:
    angular.element函数
    mknod创建命名管道(I/O缓存)
    谈谈sipXecs及其它【转】
    Linux下判断cpu物理个数、几核
    shell 中判断文件/文件夹是否存在
    一个人可以用Open IMS Core做什么呢
    linux 下更改磁盘名
    PPTP 服务器配置
    IP多媒体子系统[转维基百科]
    针对用编译的方式安装时的卸载
  • 原文地址:https://www.cnblogs.com/kakaisgood/p/4901071.html
Copyright © 2011-2022 走看看