「Struts2」@Resultsでviewをアノテーションで指定するサンプル
Javaコード
@Results( { @Result(value = "success.jsp"), @Result(name = "userReg", value = "userReg.jsp"), @Result(name = "info", value = "info.jsp") }) public class UserAction { // some code }
Coding Changes the World
Javaコード
@Results( { @Result(value = "success.jsp"), @Result(name = "userReg", value = "userReg.jsp"), @Result(name = "info", value = "info.jsp") }) public class UserAction { // some code }