Package javax.portlet

Examples of javax.portlet.PortletRequestDispatcher.include()


public class HtmlPresentationPortlet extends GenericPortlet {
  private static final Logger logger = Logger.getLogger(HtmlPresentationPortlet.class);
 
  public void doView(RenderRequest request,RenderResponse response) throws PortletException,IOException {
    PortletRequestDispatcher dispatcher = getPortletContext().getRequestDispatcher("/WEB-INF/jsp/portlets/htmlpresentation/index.jsp");
    dispatcher.include(request, response);
  }
 
}
View Full Code Here


      throws PortletException,IOException {
    Set<String> portlets = Portal.getPortletSet();

    request.setAttribute("portlets", portlets);
    PortletRequestDispatcher dispatcher = getPortletContext().getRequestDispatcher("/WEB-INF/jsp/view.jsp");
    dispatcher.include(request, response);
  }
}
View Full Code Here

  public void doView(RenderRequest request,RenderResponse response)
      throws PortletException,IOException {
    Principal user = request.getUserPrincipal();
    if (user == null) {
      PortletRequestDispatcher dispatcher = getPortletContext().getRequestDispatcher("/WEB-INF/jsp/login.jsp");
      dispatcher.include(request, response);
    } else {
      request.setAttribute("user", user);
      PortletRequestDispatcher dispatcher = getPortletContext().getRequestDispatcher("/WEB-INF/jsp/logged.jsp");
      dispatcher.include(request, response);     
    }
View Full Code Here

      PortletRequestDispatcher dispatcher = getPortletContext().getRequestDispatcher("/WEB-INF/jsp/login.jsp");
      dispatcher.include(request, response);
    } else {
      request.setAttribute("user", user);
      PortletRequestDispatcher dispatcher = getPortletContext().getRequestDispatcher("/WEB-INF/jsp/logged.jsp");
      dispatcher.include(request, response);     
    }
  }
}
View Full Code Here

       
        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

                    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

        if (customPage != null)
        {
            PortletContext context = getPortletContext();
            PortletRequestDispatcher rd = context.getRequestDispatcher(customPage);
            rd.include(request, response);
        }
        return;
    }

    /**
 
View Full Code Here

        if (editPage != null)
        {
            PortletContext context = getPortletContext();
            PortletRequestDispatcher rd = context.getRequestDispatcher(editPage);
            rd.include(request, response);
        }
        return;
    }

    /**
 
View Full Code Here

        if (helpPage != null)
        {
            PortletContext context = getPortletContext();
            PortletRequestDispatcher rd = context.getRequestDispatcher(helpPage);
            rd.include(request, response);
        }
        return;
    }

    /**
 
View Full Code Here

        if (viewPage != null)
        {
            PortletContext context = getPortletContext();
            PortletRequestDispatcher rd = context.getRequestDispatcher(viewPage);
            rd.include(request, response);
        }
        return;
    }

    /**
 
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.