「Struts2」複数の遷移先を指定する方法

構文
@Results( {
// 遷移先をカンマで区切って組み合わせ
})

使用例

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
@Results( {
@Result(name = "success", value = "userDisp", type = ActionChainResult.class),
@Result(name = "validation", value = "check.jsp")
})
@Results( { @Result(name = "success", value = "userDisp", type = ActionChainResult.class), @Result(name = "validation", value = "check.jsp") })
@Results( {
    @Result(name = "success", value = "userDisp", type = ActionChainResult.class),
    @Result(name = "validation", value = "check.jsp")
})

 

Struts2

Posted by arkgame