티스토리 뷰
728x90
web.xml / struts.properties / struts.xml
위 3개 파일 중에 하나만 건드려 주면 된다고 하는데
프로젝트 단위로 깔끔하게 정리하려면 struts.xml을 수정하는게 맞을꺼 같다
위 3개 파일 중에 하나만 건드려 주면 된다고 하는데
프로젝트 단위로 깔끔하게 정리하려면 struts.xml을 수정하는게 맞을꺼 같다
<struts>
<constant name="struts.i18n.encoding" value="euc-kr" />
<package name="default" extends="struts-default" namespace="">
<action name="list" class="Struts_MVC.ListAction">
<result>/list.jsp</result>
</action>
<action name="read" class="Struts_MVC.ReadAction">
<result>/read.jsp</result>
</action>
<action name="write" class="Struts_MVC.WriteAction">
<result type="redirectAction" name="success">list</result>
<result name="write_form">/write_form.jsp</result>
</action>
</package>
</struts>
'프로그래밍 > Struts' 카테고리의 다른 글
[Struts2] 액션 클래스 간의 데이터 주고 받기 (0) | 2011.07.20 |
---|---|
[Struts2] The Struts dispatcher cannot be found 오류 해결 (0) | 2011.07.20 |
[Struts2] 세션값 가져오기 (0) | 2011.07.18 |
[Struts2] 자바 코드로 HTML 작성해서 결과 반환 (0) | 2011.07.18 |
[Struts2] JSP에서의 Struts 문법 사용 기본 (0) | 2011.07.14 |