0
내가 쉽게 JSP 페이지에서 매개 변수를 사용하거나 HTML 페이지는 다음
단계 1. 웹 페이지 전송에 전달 개체에 전달 코드의 은색을 이해하기 위해 찾고
이드 ->
컨트롤러 개체 -> < ---이 웹 페이지에서 소모품 객체에 제품 코드를 반환합니다 - 그것은에 전달>
. 그래서 그것은 다른 방향으로 나아 간다.
예 2
@RequestMapping(value = "/fetch/{id_code}", method = RequestMethod.GET)
public Product getProduct(@PathVariable("id") Integer productID) throws IFPApplicationException {
Product product;
try {
logger.info("IFPProductServiceController::getProduct -->>>>");
logger.debug("Received request to get a product");
// Delegate to service
product = productService.get(productID);
} catch (Exception e) {
throw new IFPApplicationException("IFPProductServiceController::getProduct " + e.getMessage());
}
logger.info("<<<---- IFPProductServiceController::getProduct");
return product;
}
당신은 아마 제품 대신의 ModelAndView를 반환 할
나는 당신의 코드를 이해하지만, 나는 당신이 무엇을 요구하고 있는지 전혀 모른다. 좀 더 명확히 해 주시겠습니까? – Kevin
무엇에 전달합니까? –