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

6.5. Examining and modifying the source code

You will now add a pair of buttons to the Edit.jsp so that a user can interact with the portlet to generate an action event. Follow these instructions:

1.
Double-click the ActionEventPortletEdit.jsp located in the /WebContent/actionevent/jsp/html/ folder. It will open in its editor. You will now edit this JSP and add two buttons for the user to click, corresponding to the two actions that they will be able to select when they run this portlet. Modify the source code in this file so it matches the source code shown in the following example.
Example 6-6. ActionEventPortletEdit.jsp
<%@ page session="false" contentType="text/html" import="org.apache.jetspeed.portlet.*,actionevent.*" %> <%@ taglib uri="/WEB-INF/tld/portlet.tld" ...

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