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