Creating a JSP

To create a JSP, you can use either HTML/JSP authoring tools or any regular text editors. You can also use the Rational® Application Developer (RAD) to develop your JSPs.

To create a JSP with the toolkit JSP tags using the Rational Application Developer, do the following:

  1. From your Rational Application Developer, select File > New > Project.
  2. From the New Project window that appears, select Web from the left panel, and then select Dynamic Web Project from the right panel. Click Next.
  3. Type your project name in the Project name field and click Next.
  4. Select Struts in the Web Project features list, then click Finish. You can now see your Web project in the Navigator view of the Application Developer.
  5. Go to <toolkit_root>/samples directory, where <toolkit_root> refers to the root directory of your Bank Transformation Toolkit installation folder and extract BTTHTMLSampleWeb.war from BTTHTMLSample.ear file, and then extract btt-html.tld from BTTHTMLSampleWeb.war. Copy btt-html.tld to /WebContent/WEB-INF.
  6. Copy the following toolkit JAR files to the /WebContent/WEB-INF/lib directory of the Web project:
    • bttstruts.jar
    • bttinvoker.jar
    • bttsm.jar
    • bttbase.jar
    You can find these JAR files in the <toolkit_root>/jars directory.
  7. In the Project Navigator view of the Application Developer, select your Web project. From the menu, select File > New > JSP file to create a new JSP file.
  8. Code your JSP file with utilizing the toolkit JSP tag library.