「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
}

 

Java

Posted by arkgame