2009. 7. 27. 13:10
Web/Framework
- struts.xml -
<action name="*/*" class="action.{1}Action" method="{2}">
<result name="success">{2}.jsp</result>
</action>
첫번째 * 은 {1} 에, 두번째 * 은 {2} 에 해당된다
http://localhost:8084/Struts2/First/second.action
이 경우에
action/FirstAction.java 에서 second() 를 실행하고
second.jsp 로 결과를 보낸다
'Web > Framework' 카테고리의 다른 글
[IBATIS] 파라메터클래스(parameterClass) 에 대한 고찰 (0) | 2009.07.27 |
---|---|
[STRUTS2] 인터셉터(interceptor) 에 대한 고찰 (0) | 2009.07.27 |
[STRUTS2] 네임스페이스(namespace) 에 대한 고찰 (0) | 2009.07.27 |
[STRUTS2] ResultType - chain (0) | 2009.07.27 |
[STRUTS2] 파일 업로드 (FileUpload) (0) | 2009.07.27 |