/**
* This Action sets the "jspPage" parameter to "ActionRequest-param successForward" so that
* processing is forwarded to ActionRequest-param successForward.
*
* @param request
* @param response
* ActionRequest-param exceptionForward
* ActionRequest-param successForward
* ActionRequest-param applicationId
* @throws PortalException
* @throws java.lang.Exception
*/
@ProcessAction(name = "applicationRedirectWId")
public void applicationRedirectWId(ActionRequest request, ActionResponse response) {
String exceptionForward = "/devel/error.jsp";
try {
exceptionForward = ParamUtil.getString(request, "exceptionForward");
String successForward = ParamUtil.getString(request, "successForward");
Application application = ApplicationLocalServiceUtil.getApplication(ParamUtil.getLong(request, "applicationId"));
if (Validator.isNotNull(application)) {
request.setAttribute("application", application);
response.setRenderParameter("jspPage", successForward);
} else {
request.setAttribute("errorMsg", "Internal Error: missing aplicationId");
response.setRenderParameter("jspPage", exceptionForward);
}
} catch (Exception e) {
_log.debug(e.getMessage());
request.setAttribute("errorMsg", e.getMessage());
response.setRenderParameter("jspPage", exceptionForward);
}
}
ContentPortlet.java 文件源码
java
阅读 19
收藏 0
点赞 0
评论 0
项目:govapps
作者:
评论列表
文章目录