Scenario 1: Creating a simple custom tool
This scenario explains how to create a simple custom tool called UIFrameworkTest. You can use the same procedure to deploy custom JSP files in the IBM® Product Master environment.
Before you begin
- Add
customTool="true"
for custom flows, both flows and asynchronous, in theflow-config.xml
file:
This file is located in the $TOP/etc/default directory.<flow path="testCommand" command="test.TestCommand" method="getAction" isCustomTool="true" >
- Add header and footer includes that wrap the custom JSP code in
a try/catch/finally block:
- Header
- Place this include after any declarations and anything else that
will define objects at the JSP class level, such as declarations that
define methods and member variables. The include file mentioned below
opens a try block which will be finished by the closing include. This
try block MUST include all the code in the main method of the JSP.
Avoid using static declarations that access the database.
<%@ include file="/js/utils/customToolHeader.jsp.include" %>
- Footer
- Place this include at the end of the file. The include file mentioned
below closes the try block that is opened in the header include.
<%@ include file="/js/utils/customToolFooter.jsp.include" %>