JSP 4个域对象、7个动作指令、9个内置对象
4个域对象
|
1.HttpServletRequest |
request |
Request域 |
|
2.HttpSession |
session |
Session域 |
|
3.ServletContext |
context |
Application域 |
|
4.PageContext |
page |
Page域 |
7个动作指令(标签)
(1)JSP:forward 执行页面转向,将请求的处理转发到下一个页面。
(2)JSP:param 用于传递参数,必须与其他支持参数的标签一起使用
(3)JSP:include 用于动态引入一个JSP页面
(4)JSP:plugin 用于下载JavaBean或者Applet到客户端执行
(5) JSP:useBean 创建一个Javabean实例
(6) JSP:setProperty 设置JavaBean实例的属性值
(7)JSP:getProperty 获取JavaBean实例的属性值
9个内置对象
|
自己回忆 |
类 |
正确与否 |
正确答案 |
|
|
1.page |
Page |
错 |
page |
Object(this) |
|
2.pageContext |
PageContext |
对 |
2.pageContext |
PageContext |
|
3.request |
HttpServletRequest |
对 |
3.request |
HttpServletRequest |
|
4.session |
HttpSession |
对 |
4.session |
HttpSession |
|
5.out |
printWriter |
错 |
out |
JspWriter |
|
6.exception |
Throwable |
对 |
6.exception |
Throwable |
|
7.context |
ServletContext |
错 |
application |
ServletContext |
|
8. |
|
错 |
response |
HttpServletResponse |
|
9. |
|
错 |
config |
ServletConfig |
|
request |
HttpServletRequest |
|
response |
HttpServletResponse |
|
config |
pageConfig |
|
session |
HttpSession |
|
out |
JspWriter |
|
application |
ServletContext |
|
exception |
Throwable |
|
page |
Object(this) |
|
pageContext |
PageContext |

浙公网安备 33010602011771号