tomcat

Tomcatに環境依存の設定

サーバー全体 web.xml(%TOMCAT_HOME%\conf\web.xml) <context-param> <param-name>key</param-name> <param-value>value</param-value> </context-param> Webアプリごと(Tomcatの設定なのでマシンごとになる) context.xml(%TOMCAT_HOME%\conf\Catalaina\localhsot\context.xml) Webアプリごと(どのマシンでも同じ) web.xml(WEB-INF/web.xml) <context-param> </context-param>

web.xml のerror-page

以下のようにかくとエラーにならず最後のみ有効になる。orz <error-page> <error-code>404</error-code> <location>/error/404.html</location> <error-code>500</error-code> <location>/error/500.html</location> </error-page>