Package javax.portlet

Examples of javax.portlet.PortletRequestDispatcher


    }

    protected void doEdit(RenderRequest request, RenderResponse response)
    throws PortletException, IOException {
        PortletContext context = getPortletContext();
        PortletRequestDispatcher requestDispatcher =
            context.getRequestDispatcher(getEditPage());
        requestDispatcher.include(request, response);
    }
View Full Code Here


    }

    protected void doHelp(RenderRequest request, RenderResponse response)
    throws PortletException, IOException {
      PortletContext context = getPortletContext();
      PortletRequestDispatcher requestDispatcher =
          context.getRequestDispatcher(getHelpPage(request));
      requestDispatcher.include(request, response);
    }
View Full Code Here

        if (index > 0 && index < path.length() - 1) {
            queryString = path.substring(index + 1);
        }

        // Construct PortletRequestDispatcher.
        PortletRequestDispatcher portletRequestDispatcher = null;
        try {
            RequestDispatcher servletRequestDispatcher = servletContext
                .getRequestDispatcher(path);
            if (servletRequestDispatcher != null) {
                portletRequestDispatcher = new PortletRequestDispatcherImpl(
View Full Code Here

        if (testConfig != null) {
          displayUri = testConfig.getDisplayURI();
        } else {
          displayUri = "/jsp/introduction.jsp";
        }
        PortletRequestDispatcher dispatcher = getPortletContext()
            .getRequestDispatcher(displayUri);
        dispatcher.include(request, response);
    }
View Full Code Here

     * @param request  the portlet request.
     * @param response  the portlet response.
     */
    protected void doEdit(RenderRequest request, RenderResponse response)
    throws PortletException, IOException {
        PortletRequestDispatcher dispatcher = getPortletContext()
            .getRequestDispatcher("/jsp/edit.jsp");
        dispatcher.include(request, response);
    }
View Full Code Here

     * @param request  the portlet request.
     * @param response  the portlet response.
     */
    protected void doHelp(RenderRequest request, RenderResponse response)
    throws PortletException, IOException {
      PortletRequestDispatcher dispatcher = getPortletContext()
          .getRequestDispatcher("/jsp/help.jsp");
      dispatcher.include(request, response);
    }
View Full Code Here

        { // dispatch only allowed for RenderRequest
            String msg = "Can not call dispatch() during a portlet ActionRequest";
            throw new IllegalStateException(msg);
        }

        PortletRequestDispatcher requestDispatcher
            = _portletContext.getRequestDispatcher(path); //TODO: figure out why I need named dispatcher
        try
        {
            requestDispatcher.include((RenderRequest)_portletRequest,
                                      (RenderResponse)_portletResponse);
        }
        catch (PortletException e)
        {
            if (e.getMessage() != null)
View Full Code Here

    /** {@inheritDoc} */
    public void include(String path) throws IOException {
        if (isRenderRequest) {
            try {
                PortletRequestDispatcher rd = context.getRequestDispatcher(path);

                if (rd == null) {
                    throw new IOException(
                            "No portlet request dispatcher returned for path '"
                                    + path + "'");
                }

                rd.include((RenderRequest) request,
                    (RenderResponse) response);
            } catch (PortletException e) {
                throw new TilesIOException(
                        "PortletException while including path '" + path + "'.",
                        e);
View Full Code Here

  }
 
  protected void include(String path, RenderRequest req, RenderResponse res)
    throws IOException, PortletException {

    PortletRequestDispatcher prd =
      getPortletContext().getRequestDispatcher(path);

    if (prd == null) {
      _log.severe(path + " is not a valid include");
    }
    else {
      prd.include(req, res);
    }
  }
View Full Code Here

  }

  protected void forward(String path, RenderRequest req, RenderResponse res)
  throws IOException, PortletException {

  PortletRequestDispatcher prd =
    getPortletContext().getRequestDispatcher(path);

  if (prd == null) {
    _log.severe(path + " is not a valid include");
  }
  else {
    prd.forward(req, res);
  }
}
View Full Code Here

TOP

Related Classes of javax.portlet.PortletRequestDispatcher

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.