30.2. Sample scenario

This section provides a sample scenario to illustrate how to fix compile and runtime errors in portlets using the debug functions provided by Rational Application Developer. You will use the portlet used in Chapter 6, “IBM Portlet API portlet development” on page 203 as a base for this scenario. These activities will allow you to understand the techniques used to debug portlets.

30.2.1. Fixing compile errors

In this section, an example is provided to illustrate a Java code validation. An invalid character will be entered in the Java code to introduce an error and illustrate the correction process.

Rational Application Developer provides different validators for different types of project resources, for example XML, HTML ...

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.