본문 바로가기
카테고리 없음

[Spring] jsp - Controller 복습

by Yeoseungwon 2023. 11. 13.
728x90
<body>
<!-- //header -->
<c:import url="../common/header.jsp"/>
<!-- header// -->
<form name="frm"  method="post" >

<div class="wrap">
	<!-- //leftMenu -->
	<c:import url="../common/left.jsp"/>
	<!-- leftMenu// -->
	<div class="content">
		<h2 class="subtitle">개인정보처리방침</h2>
			
		
	</div><!-- content -->
</div><!-- wrap -->

<!-- //footer -->
<c:import url="../common/footer.jsp"/>
<!-- footer// -->
</form>
</body>

 

 

package egovframework.cleanhakwon.personalInfo.web;

import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Component;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

@Component("PersonalInfoController")
@Controller
public class PersonalInfoController {


	@RequestMapping("/info/personalInfo.do")
	public String main(Model model, HttpServletRequest request) throws Exception {

		
		return "cleanhakwon/common/personalInfo";
	}
}

 

 

 

http://localhost:8080/info/personalInfo.do 

하면 jsp내용이 화면에 나옴 

728x90