JSP学习笔记(一)

来源:互联网 发布:js 时间戳比较 编辑:程序博客网 时间:2024/06/07 08:55

指令标识

<%@ 指令名 属性="value"%>

ep:

<%@ page language="java" contentType="text/html"%>

page指令

1、language

设置页面语言

2、extends

继承的java类

3、import

导入java包

4、pageEccoding

编码格式

5、contentType

MIME类型和字符编码

6、session

设置session是否可用

7、buffer

设置缓冲区大小

8、autoFlush

是否自动刷新缓存

9、isErrorPage

设置当前页面是否为错误页面

10、errorPage

设置错误页面的位置

include指令

<%@ include file="path"%>
<%@ include %>和<jsp:include/>区别,jsp:include支持表达式,jsp:include可接受重名的变量和方法

原创粉丝点击