The navigation processes use HTML, Java through JSP to display
the simple pages of the HTML Sample Application. For examples of how
the application exploits the BTT tags which are customized JSP tags
by BTT to get information from the context hierarchy, check the contents
of the JSP files and pay special attention to the way the custom JSP
tags have been used. The following BTT tags are used in this sample:
- btt:add: Set the resource bundle file for the user locale in a
concrete context (scope) to provide NLS.
- btt:label: Reference a DataField in the context hierarchy and
creates text on the HTML page with the value of the DataField.
- btt:combo: Reference a DataCollection in the context hierarchy
and creates an HTML select element using the collection's inner elements.
- btt:text: Reference a DataField in the Context hierarchy and creates
either an HTML text or a password Input element, based on the isPassword
attribute value.
- btt:error: Access the data element named dataName and, if this
data element is in error, gets the element error information and writes
it on the HTML page.
When your application requires additional behavior, not provided
by the BTT taglib, you can use custom ".tld" file.
In particular, the com.ibm.btt.cs.html.DSEJspContextServices class
provides a set of useful methods that are used by the JSPs. The following
ones are used in this sample:
- initialize(javax.servlet.http.HttpServletRequest request): The
HttpServletRequest is supposed to have references to the operation
context and exceptions placed by the toolkit during handling of the
request. Use this information to initialize the bean for use by the
JSP that includes it.
- getSessionContext(): Return the session context
for the page which initialized this bean.