Adding JSP-related capabilities

Unwired Accelerator enables skilled users to enhance its capabilities quickly and easily without code-level changes using JSP. Unwired Accelerator sits within a JSP container (Tomcat, EAServer, or other suitable servlet container), so the framework for calling out to user-provided JSP is already in place. Unwired Accelerator provides hooks to allow users to insert a JSP component where needed.

Typically a JSP interacts with UA via request attributes, which are presented to the JSP when it is invoked; the JSP performs an operation, and returns results via the same or other well-defined attributes.

NoteBecause a JSP is invoked within the context of the servlet session, and in the same JVM as UA, there are issues about security, reliability, and so on. Sybase recommends these JSPs only be added by suitably authorized personnel, and only at development time. See the Unwired Accelerator Administration Guide for information about security.

Following is a summary of ways you can add JSP capabilities in Unwired Accelerator:

In general, for template types of HTML/XSL, it is possible to get the template processor to invoke a JSP to generate the template content. For example, assume you have an XSL template; you have these three choices for defining the template body:

This pattern is also available for HTML templates. This means that you can get the template body output generated via a JSP, either by pointing at a JSP or by including the JSP content directly into the template body.

NoteSee Chapter 6, “Building Templates” for information about creating various types of templates.