定義済みオブジェクトを使用して、設計目標に応じたJSPコードを書く
定義済みオブジェクト | クラスまたはインターフェース | 種別 |
---|---|---|
request | javax.servlet.http.HttpServletRequest | interface |
response | javax.servlet.http.HttpServletResponse | interface |
out | javax.servlet.jsp.JspWriter | class |
session | javax.servlet.http.HttpSession | interface |
config | javax.servlet.ServletConfig | interface |
application | javax.servlet.ServletContext | interface |
page | java.lang.Object | class |
pageContext | javax.servlet.jsp.PageContext | class |
exception | java.lang.Throwable | class |
- PageContext
PageContextは、すべてのスコープに格納されたオブジェクトを取り扱うことができる。
スコープ定数 |
---|
APPLICATION_SCOPE |
SESSION_SCOPE |
REQUEST_SCOPE |
PAGE_SCOPE |
メソッド
- void setAttribute(String name, Object object, int scope);
- Object getAttribute(String name, int scope);
- void removeAttribute(String name, int scope);
- Enumeration getAttributeNamesInScope(int scope);
- Object findAttribute(String name);
- int getAttributesScope(String name);
SCWCD Exam Study Kit: Java Web Component Developer Certification (ペーパーバック)
指定されたパートは存在しません。
YAGI Hiroto (piroto@a-net.email.ne.jp)
twitter http://twitter.com/pppiroto
Copyright© 矢木 浩人 All Rights Reserved.