htmlタグのキャンセルタグの使用時の注意。
タグの記述は
<html:cancel value="きゃんせる" />
ただし、このままでは
InvalidCancelException が発生する。
struts-config.xmlのAction Path に
設定を追加すること。
cancellable="true"
例
<action path="/com/techscore/struts/chapter5/exercise3/InputEmployee"
type="com.techscore.struts.chapter5.exercise3.OutputEmployeeAction"
name="inputEmployeeForm53"
validate="true"
input="/com/techscore/struts/chapter5/exercise3/inputEmployee.jsp"
scope="request"
cancellable="true">
<forward name="output"
path="/com/techscore/struts/chapter5/exercise3/outputEmployee.jsp" />
</action>
その理由は、下記のページを参考にしました。感謝です。
http://loafer.jp/mixi/diary/class.xsp?2007-04-16-23-14