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

10.3. Modifying the JSP source

The majority of your JSPs will probably not need to be changed. Both the IBM portlet API and the JSP 168 portlet API can leverage the Servlet 2.3 and JSP 1.2 specifications. You will need to change from the IBM JSP custom tags to the JSR custom tags.

10.3.1. taglib

The tag library needs to be changed to point to the JSR 168 tld and not the IBM tld.

For all JSP using portlet tag, change:

<%@ taglib uri="/WEB-INF/tld/portlet.tld" prefix="portletAPI" %>

to:

<%@taglib uri="http://java.sun.com/portlet" prefix="portlet" %>

You can leave the prefix as portletAPI if you choose.

You will then need to define the tld in the web.xml. The tagib element needs to be placed after the error-page element. If you are not using an ...

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