!!!サーブレットコードで属性を追加、取得、削除する。ある状況において、ある属性に適したスコープを識別し、それぞれのスコープに関連したマルチスレッドにおける問題性を識別する データの共有 ,スコープ,コンテナクラス,内容 ,request,[ServletRequest|http://java.sun.com/j2ee/1.4/docs/api/javax/servlet/ServletRequest.html],リクエスト完了まで ,session,[HttpSession|http://java.sun.com/j2ee/1.4/docs/api/javax/servlet/http/HttpSession.html],クライアントが無効になるまで ,context,[ServletContext|http://java.sun.com/j2ee/1.4/docs/api/javax/servlet/ServletContext.html],Webアプリケーションが終了するまで 共通の属性操作メソッド ,メソッド名,内容 ,getAttribute(String),属性の取得 ,getAttributeNames(),属性のキーセットの取得 ,setAttribute(String, Object),属性のキーと値のセット ,removeAttribute(String),属性の削除 request.setAttribute(key, val); request.removeAttribute(key); HttpSession session = request.getSession(); session.setAttribute(key, val); session.removeAttribute(key); ServletContext context = getServletContext(); context.setAttribute(key, val); context.removeAttribute(key); ---- {{amazon 1932394389}} [SCWCD Exam Study Kit: Java Web Component Developer Certification (ペーパーバック)|http://www.amazon.co.jp/dp/1932394389?tag=typea09-22&link_code=as3&creativeASIN=1932394389&creative=3999&camp=767]