Warning: Attempt to read property "ID" on bool in /www/wwwroot/129.28.78.18/wp-content/themes/storeys-pro/wbc/components/og_schema/wb_og_schema.php on line 471

Warning: Attempt to read property "display_name" on bool in /www/wwwroot/129.28.78.18/wp-content/themes/storeys-pro/wbc/components/og_schema/wb_og_schema.php on line 480

Warning: Attempt to read property "display_name" on bool in /www/wwwroot/129.28.78.18/wp-content/themes/storeys-pro/wbc/components/og_schema/wb_og_schema.php on line 487

Warning: Attempt to read property "description" on bool in /www/wwwroot/129.28.78.18/wp-content/themes/storeys-pro/wbc/components/og_schema/wb_og_schema.php on line 489

Warning: Attempt to read property "ID" on bool in /www/wwwroot/129.28.78.18/wp-content/themes/storeys-pro/wbc/components/og_schema/wb_og_schema.php on line 493

11.13卢雨杰

学习内容:

multiple 属性

multiple 属性是一个布尔属性。

multiple 属性规定允许用户输入到 元素的多个值。

jsp的四大作用域:

page 存储在page作用域中的数据,仅限于在用户请求的当前页面中被获取,离开当前JSP页面,则page中的 所有属性值就会丢失。操作page作用域使用pageContext内置对象。

request 存储在request作用域中的数据,在请求开始到结束这段时间内的任何页面中都可以被获取。操作 request作用域使用request内置对象。

session 存储在session作用域中的数据,在会话开始到结束这段时间内的任何页面中都可以被获取。会话失 效,则session中的数据也随之丢失。操作session作用域使用session内置对象。

application 存储在application作用域中的数据,在服务器启动到停止这段时间内的任务页面中都可以被获取。操作 application作用域使用application内置对象。

九大内置对象

request、response、session、out、exception、page、 pageContext、application和config。

监听器:

ServletContextAttributeListener 作用 : 可以检测 ServletContext 域中属性的变化.

具体为: 将某个属性添加到 ServletContext 域中 ServletContext 域中某个属性值被替换 将某个属性从 ServletContext 域中移除

void attributeAdded(ServletContextAttributeEvent scab) 监听属性添加到 servletcontext中

void attributeRemoved(ServletContextAttributeEvent scab) 监听属性从 servletcontext中移除

void attributeReplaced(ServletContextAttributeEvent scab) 监听属性从 servletcontext中被替换

评论留言