Package javax.portlet
Interface PortletRequestDispatcher
-
public interface PortletRequestDispatcherThePortletRequestDispatcherinterface defines an object that receives requests from the client and sends them to the specified resources (such as a servlet, HTML file, or JSP file) on the server. The portlet container creates thePortletRequestDispatcherobject, which is used as a wrapper around a server resource located at a particular path or given by a particular name.- Version:
- $Revision: 5441 $
- Author:
- Julien Viet
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidinclude(RenderRequest request, RenderResponse response)Includes the content of a resource (servlet, JSP page, HTML file) in the response.
-
-
-
Method Detail
-
include
void include(RenderRequest request, RenderResponse response) throws PortletException, IOException
Includes the content of a resource (servlet, JSP page, HTML file) in the response. In essence, this method enables programmatic server-side includes. The included servlet cannot set or change the response status code or set headers; any attempt to make a change is ignored.- Parameters:
request- aRenderRequestobject that contains the client requestresponse- aRenderResponseobject that contains the render response- Throws:
PortletException- if the included resource throws a ServletException, or other exceptions that are not Runtime- or IOExceptions.IOException- if the included resource throws this exception
-
-