Web コンテナーの振る舞い上の注意

Web コンテナーの振る舞い上の注意について学習します。

multipart/form-data へのアクセス

アプリケーションの web.xml ファイルで、サーブレットに @MultipartConfig アノテーションを組み込むか、multipart-config エレメントを指定することによって、multipart/form データを処理するようにサーブレットを定義します。 アノテーションは次の例のようになります。
@MultipartConfig(fileSizeThreshold=1000000, location="temp", maxFileSize=5000000, maxRequestSize=5000000)
サーブレットが multipart/form データを処理するように定義されていない場合、またはインクルード・ファイルが構成データによって設定された制限内にない場合は、multipart/form データを含んだ要求に対する応答で、以下のような振る舞いが見られます。
ServletRequest.getParameter() will return null for a request to obtain a form field.
HttpServletRequest.getPart() または HttpServletRequest.getParts() が、
該当する例外をスローします。The exception message is an indication of the cause of the exception.

トピックのタイプを示すアイコン 概念トピック



タイム・スタンプ・アイコン 最終更新: last_date
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=cord&product=was-nd-mp&topic=cweb_webcontainer_behavior
ファイル名:cweb_webcontainer_behavior.html