Package net.tinyportal.javax.portlet

Examples of net.tinyportal.javax.portlet.TpActionResponse


  static void doAction(HttpServletRequest request, HttpServletResponse response, PortletHolder portletHolder, GenericPortlet portlet)
      throws WindowStateException, PortletModeException, PortletException, IOException {

    TpPortletContext TpPortletContext = (TpPortletContext) portlet.getPortletContext();
    TpActionRequest actionRequest = new TpActionRequest(portletHolder,request,TpPortletContext);
    TpActionResponse actionResponse = new TpActionResponse(portletHolder,response);

    setWindowState(request, portletHolder);
    setPortletMode(request, portletHolder);
    setPortletParameters(request, portletHolder, actionRequest);
   
    try {
      portlet.processAction(actionRequest, actionResponse);
      if (actionResponse.isRedirected())
        response.sendRedirect(actionResponse.getRedirection());
    } catch (IllegalStateException ise) {
      actionResponse.cancelRedirected();
    }
    portletHolder.setActionResponse(actionResponse);

  }
View Full Code Here

TOP

Related Classes of net.tinyportal.javax.portlet.TpActionResponse

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.