Adding form processing  Processing text to trigger events

Chapter 5: Advanced Portlet Creation

Adding a JSP filter

JSP filters allow you to write custom code to post-process portlet content using programming. When you create JSP filters, you look at a portlet’s content, enter the Java code to transform the content in any way you want, then save the code as a JSP template, which you can later select for post-processing.

StepsSelecting a JSP filter

  1. Log in to Web Studio and select Build | Applications from the menu in the left pane.

  2. In the detail pane, right-click the application to which you want to add post-processing and select Edit from the pop-up.

  3. When the Application Builder displays, right-click the portlet to which you want to add a JSP Filter and select Create JSP Filter from the pop-up.

    The JSP Editor appears with a preview of the portlet.

  4. Complete these options:

  5. Click Finish to associate the JSP Filter with the selected portlet.

You can add more than one JSP filter as post-processing elements on a portlet and you can apply the same JSP filters to numerous portlets. When the JSP filters have been added, the portlet is saved under the same version, regardless of how the global versioning property is set. Once you assign a JSP filter for portlet post-processing, the filter is listed in the Application Builder under the portlet name.





Copyright © 2004. Sybase Inc. All rights reserved. Processing text to trigger events

View this book as PDF