Invoking JSPs

About this task

Within a BTT portlet application, a JSP is normally invoked from within another JSP. The user action in the form usually requires the execution of some business logic and a JSP reply form. However, in some cases a simple page is required to display some data values that are available in the session context, or an initial form is requested to start a simple navigation process that might be composed of a single reply page.

Invoking a JSP directly from the user interface as a standard HTTP resource is not suggested because it does not invoke the BTT multichannel interfaces, which disables the ability to get access to the contexts hierarchy. In these cases, JSPs must be invoked through a special operation built for this purpose. See the following code for example:

<btt:a opName="displayPageOp" nextEventName="dseSkipRender" errorPage="menu1.jsp" extraParams="pageName=accountinquiry.jsp">
	<btt:label text="Account_Summary"/>
</btt:a>