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" ...

Get IBM Rational Application Developer V6 Portlet Application Development and Portal Tools now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.