Running the SetupJSP.vbs Wizard

This wizard creates the directory structure for a JSP application generated by the JSP Generator. It copies all necessary infrastructure files into the application directory. Execute the script from the directory path JSPGenerator\Utilities\Setup directory subfolder of the Component Enabler installation folder.

The SetupJSP.vbs script prompts for the following input:

The following tasks are performed by the script depending on the information being provided:

  1. Creates the output directory structure.

  2. Infrastructure files, which are required by the generated JSP application is copied into the appropriate folders being created.

    The Ispec is copied into the application folder and prefixed by {PackagePrefix}.{ApplicationName}.{BundleName}.

  3. The default.jsp page is initialized as appropriate.

  4. The script, SetupJSP.vbs updates the ce.properties file with the following properties.

    ce.properties: This file identifies host connection parameters and other runtime settings.

    • Application Name

    • Bundle Name

    • Package Prefix

The SetupJSP.vbs creates the directory structure in the Tomcat server.

The Application root contains a separate \langn directory for each language you support. The language directories contain the css files and JSP Pages. There is a separate directory for each language on your system. Each language directory also holds a copy of additional files that are used, for example, for displaying errors. You must have a copy of these in each language directory to allow you to translate any displayed text into the appropriate language.

The following section describes the contents of the Application root and language directories in more detail.

Application root directory

langn directories

The language directories contain the JSP Pages and .css files for each of the Ispecs that you generate. In addition, they contain the following files, which must be translated and tailored for each language.

Note: You must have an understanding of HTML before you attempt to alter the JSP Pages. It is also an advantage if you have knowledge of JavaScript, but this is not essential.