/**
* This Action gets a categoryId from the request and puts it as parentCategoryId into the
* request. It also sets the "jspPage" parameter to "contentAddCategoryJSP" so that
* processing is forwarded to add_category.jsp.
*
* @param request
* @param response
* @throws PortalException
* @throws java.lang.Exception
*/
@ProcessAction(name = "categoryDisplayAddSubCategory")
public void categoryDisplayAddSubCategory(ActionRequest request, ActionResponse response) {
try {
long parentCategoryId = ParamUtil.getLong(request, "parentCategoryId");
if (Validator.isNotNull(parentCategoryId)) {
request.setAttribute("parentCategoryId", parentCategoryId);
response.setRenderParameter("jspPage", contentAddCategoryJSP);
}
} catch (Exception e) {
_log.debug(e.getMessage());
request.setAttribute("errorMsg", e.getMessage());
response.setRenderParameter("jspPage", contentErrorJSP);
}
}
ContentPortlet.java 文件源码
java
阅读 18
收藏 0
点赞 0
评论 0
项目:govapps
作者:
评论列表
文章目录