sitelink1 | |
---|---|
sitelink2 | |
extra_vars5 | |
extra_vars6 |
1. struts-config.xml파일내에
2. CommunityMessageFormAction 클래스에서
3. CommunityMessageForm 클래스에서
- <form-beans>태그내에 다음과 같이 폼의 정보를 삽입
<form-bean
name="communityMessageForm"
type="action.community.CommunityMessageForm"
/>
- 다음과 같이 액션폼을 정의
<action
path="/community_message_form"
type="action.community.CommunityMessageFormAction"
name="communityMessageForm"
scope="request"
unknown="false"
validate="true"
>
<forward
name="next"
path="/view/community/message_form.vm"
redirect="false"
/>
</action>
<form-bean
name="communityMessageForm"
type="action.community.CommunityMessageForm"
/>
- 다음과 같이 액션폼을 정의
<action
path="/community_message_form"
type="action.community.CommunityMessageFormAction"
name="communityMessageForm"
scope="request"
unknown="false"
validate="true"
>
<forward
name="next"
path="/view/community/message_form.vm"
redirect="false"
/>
</action>
2. CommunityMessageFormAction 클래스에서
- 다음과 같은 친절한 주석도 잊지말자
/**
* @struts.action path="/community_message_form" name="communityMessageForm" scope="request"
* @struts.action-forward name="next" path="/view/community/message_form.vm"
*/
public class CommunityMessageFormAction extends Action
/**
* @struts.action path="/community_message_form" name="communityMessageForm" scope="request"
* @struts.action-forward name="next" path="/view/community/message_form.vm"
*/
public class CommunityMessageFormAction extends Action
3. CommunityMessageForm 클래스에서
- 다음과 같은 친절한 주석도 잊지말자
/**
* @author Lee
* @struts.form name="communityMessageForm"
*/
public class CommunityMessageForm extends ActionForm
/**
* @author Lee
* @struts.form name="communityMessageForm"
*/
public class CommunityMessageForm extends ActionForm
댓글 0
번호 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|
11 | StrutsTest를 이용한 JUnit 테스트방법 | 황제낙엽 | 2006.02.23 | 104 |
10 | 스트러츠등의 서블릿 테스트 케이스용 툴 | 황제낙엽 | 2006.02.23 | 75 |
» | ActionForm 생성 | 황제낙엽 | 2006.01.16 | 77 |
8 | Struts 에서 FormBean 클래스 Validation 체크 하기 | 황제낙엽 | 2005.12.19 | 71 |
7 | Struts의 message-resources 를 사용한 예제 | 황제낙엽 | 2005.12.16 | 70 |
6 | Struts의 message-resources 의 사용 | 황제낙엽 | 2005.12.16 | 85 |
5 | JpetStore 에서 모든 Bean의 부모클래스 BaseBean (JPetStore-4.0.5) | 황제낙엽 | 2005.11.21 | 125 |
4 | JpetStore 에서 Action과 Form을 함께 취급하는 클래스 BeanAction (JPetStore-4.0.5) | 황제낙엽 | 2005.11.21 | 160 |
3 | 스트럿츠 자료실 게시판 만들기 목차 | 황제낙엽 | 2005.11.15 | 99 |
2 | 스트러츠 관련 FAQ | 황제낙엽 | 2005.10.14 | 61 |
1 | Struts 프로그래밍 메모 | 황제낙엽 | 2005.10.06 | 180 |