예제 #1
0
  @Override
  public ActionForward render(
      ActionMapping actionMapping,
      ActionForm actionForm,
      PortletConfig portletConfig,
      RenderRequest renderRequest,
      RenderResponse renderResponse)
      throws Exception {

    try {
      ActionUtil.getLicense(renderRequest);
    } catch (Exception e) {
      if (e instanceof NoSuchLicenseException || e instanceof PrincipalException) {

        SessionErrors.add(renderRequest, e.getClass());

        return actionMapping.findForward("portlet.software_catalog.error");
      } else {
        throw e;
      }
    }

    return actionMapping.findForward(
        getForward(renderRequest, "portlet.software_catalog.edit_license"));
  }