You can use certain builders to incorporate JavaServer Pages (JSPs) into your models.
The following builders can be used.
Adds JSP directives to a page in the model.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 (for example, Imported Page builder, Page builder, and Imported Directory builder), as long as they do not perform the following actions.
- 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 and links, provided that they adhere to the caveats above.
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.
Parent topic: Creating pages
Pre-compiling model JSPs