Portlet Factory, Version 6.1.2


 

JavaServer pages guidelines

You can incorporate JavaServer Pages (JSPs) into your models using the following builders:

JSP Directive

Adds JSP directives to a page in the model.

JSP Proxy Page

Routes requests to an existing JSP page to an action in the model, allowing you to insert model functionality into an existing JSP application.

JSP Tag

Allows you to use a JSP Tag library within a page in the model.

In addition to these JSP-specific builders, you can also hand code JSP or use existing JSP in any IBM® WebSphere Portlet Factory pages (Imported Page builder, Page builder, Imported Directory builder, and so on), as long as they do not perform the following actions:

  • Forwarding

  • Setting response headers

WebSphere Portlet Factory pages are always invoked using include, disallowing these actions.

The Imported Directory builder can often work quite well for bringing in a set of existing JSPs, including inter-page actions/links, provided that they adhere to the caveats above.

  • Processing redirections

    If any of the JSP pages that you import for use in a model contain any redirection code, you will need to re-implement this behavior with a method in your model.

  • Pre-compiling model JSPs

    Pre-generating and pre-compiling Java Server Pages (JSPs) prior to deployment eliminates the delay a user experiences due to the lag time caused by waiting for JSP pages to generate and compile.

Parent topic: Overview: creating pages Parent topic: Overview: creating pages and forms


Library | Support |