note

struts2 ActionSupport를 이용한 JSP 호출 (form만 요청할페이지에 사용) 본문

JSP/Struts2

struts2 ActionSupport를 이용한 JSP 호출 (form만 요청할페이지에 사용)

투한 2012. 2. 21. 10:56





struts.xml
	<!-- 4.ActionSupport를 이용한 jsp 호출-->
	<package name="ch4-1" extends="struts-default">
		<action name="hello">
			<result name="success">hello.jsp</result>
		</action>
	</package>


aa
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>ActionSupport를 이용한 JSP 호출</title>
</head>
<body>
액션이 없어도 JSP 호출할 수 있습니다
</body>
</html>


Action페이지에
내용이 없을 경우에 사용하면 편리함






'JSP > Struts2' 카테고리의 다른 글

Struts2 include 사용  (0) 2012.02.21
Struts2 와일드카드 디폴트  (0) 2012.02.21
struts2 default-action-ref (에러페이지)  (0) 2012.02.21
struts2 POJO형태의 액션 만들기  (0) 2012.02.21
스트럿츠2 설치&셋팅  (1) 2012.02.20