O'Reilly logo

IBM Rational Application Developer V6 Portlet Application Development and Portal Tools by Ryan Wilson, Gianfranco Rutigliano, George Kroner, Belen Gonzalez, Karla Galvan, Cristiano Cesario, Juan R. Rodriguez

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

11.2. RequestDispatcher

JSR 168 portlets use the PortletRequestDispatcher to delegate responsibility to servlets and JSPs. The PortletRequestDispatcher can only be used while the portlet is processing a render action. Th e request dispatcher is obtained from the portlet context by using either the getRequestDispatcher or the getNamedDispatcher method.

11.2.1. PortletContext.getRequestDispatcher

The getRequestDispatcher method takes a String representing the context root relative path of the included file. This path must begin with a ‘/’. This method will return null if the path is not found.

While using the getRequestDispatcher method, you may include parameters in the path. For example, if your path is /mypath/myjsp.jsp, you can include parameters ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required