記憶庫

自分用のメモです。

2009-10-23から1日間の記事一覧

Action クラスを介さずにフォワードする方法

通常フォワードは Action クラスから行われるが、Action クラスを介さずにリクエストをフォワードすることも可能。 struts-config.xml にて以下の設定を記載する。 <struts-config> … <action-mappings> … <action path = "/serverside/Login" forward = "/WEB-INF/jsp/login.jsp"/> … </action-mappings> … </struts-config> Tomcat で Web アプリケーションを動かしている場合は、ブラウザにて http://x…