http://localhost:8080/NecstMarketPlace/product-descriptions-detail.action?serviceId=S0000000002
@Results({
	@Result(name="reload",   type="redirect", location="index.action"),
	@Result(name="productDetail",   type="redirect", params ={"serviceId","${serviceOptionId}"} , location="product-descriptions-detail.action"),
	@Result(name="product",   type="redirect", params ={"categoryId","${categoryId}"},location="product-descriptions.action"),
	@Result(name="success",  type="tiles", location="shoppingcart-purchase.page"),
	@Result(name="input",    type="tiles", location="shoppingcart-purchase.page"),
	@Result(name="review",   type="tiles", location="shoppingcart-purchase.page"),
	@Result(name="complete", type="redirect", location="shoppingcart-purchase!showComplete.action"),
	@Result(name="showcomplete", type="tiles", location="shoppingcart-purchase-complete.page"),
	@Result(name="print",                  location="/WEB-INF/pages/shoppingcart-purchase-print.jsp"),
	@Result(name="download", type="stream",
			params = {
				"inputName", "inputStream",
				"contentType", "${mediaType}",
				"bufferSize", "1024"
			}
		)
})



JSP에서 Param으로 받을경우
"${serviceOptionId}"는 클래스안에서 get/set선언...
클래스 내부에서 사용할경우
get/set으로 선언할 필요까지는 없다.

'Struts2' 카테고리의 다른 글

struts.properties , 사용방법  (0) 2010.08.16
현재 URL 가져오기  (0) 2010.08.14
Validator 날짜 체크 Action  (0) 2010.08.11
validate money check struts2  (0) 2010.08.10
Struts2 exceptionStack logfile  (0) 2010.08.06

+ Recent posts