数がふえるなー
昨日考えたのをしようと思うとインタフェースの数が増えるね。
検索関連で
@StrutsAction(name = "employee_searchForm", validate = false, scope = ScopeType.SESSION) public interface SearchAction { @StrutsActionForward(path = "/employee/search.html") String SUCCESS = "success"; @ActionService(service = GetDepartmentsService.class) DepartmentDto[] getDepartments(); } @StrutsAction(name = "employee_searchForm", validate = false, scope = ScopeType.SESSION) public interface SearchPageAction { @StrutsActionForward(path = "/employee_createInput.do") String CREATE_EDIT = "createEdit"; @StrutsActionForward(path = "/employee_list.do") String LIST = "list"; } @StrutsAction(name = "employee_searchForm", scope = ScopeType.SESSION, input = "/employee_search.do") public interface ListAction { @StrutsActionForward(path = "/employee/list.html") String SUCCESS = "success"; void setForm(EmployeeSearchDto dto); @ActionService(service = GetEmployeeInfosService.class) EmployeeInfoDto[] getEmployeeInfos(); } @StrutsAction(name = "employee_searchForm", validate = false, scope = ScopeType.SESSION) public interface ListPageAction { @StrutsActionForward(path = "/employee_inquire.do") String INQUIRE = "inquire"; @StrutsActionForward(path = "/employee_search.do") String BACK = "back"; }
こんなになる。やっぱダメかな。。。
StrutsActionForwardのpathでActionクラスを指定したいなー。
あとStrutsActionのinputとnameもActionクラス、Formクラスを指定したいなー。