12.07.2015 Views

4.3.1.Action의 역할 - Anyframe

4.3.1.Action의 역할 - Anyframe

4.3.1.Action의 역할 - Anyframe

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Spring Integration// 중략 ...public ActionForward list(ActionMapping mapping, ActionForm form,HttpServletRequest request, HttpServletResponse response) throws Exception {ProductService productService =(ProductService) getService("productService");ProductSearchVO searchVO = new ProductSearchVO();ProductForm productForm = (ProductForm) form;BeanUtils.copyProperties(searchVO, productForm);// 중략 ...Page resultPage = productService.getPagingList(searchVO);request.setAttribute("search", searchVO);request.setAttribute("productList", resultPage.getList());request.setAttribute("size", resultPage.getTotalCount());request.setAttribute("pagesize", resultPage.getPagesize());request.setAttribute("pageunit", resultPage.getPageunit());}}return mapping.findForward("success_list");Spring Framework 기반의 서비스 개발시 Bean 속성 정의에 관련된 자세한 사항은 Spring IOC [http://dev.anyframejava.org/docs/anyframe/plugin/foundation/4.6.1/reference/htmlsingle/foundation.html#foundation_spring_ioc]를 참고한다.64

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!