Once the JSP Web application has been built successfully, a browser can be used to connect to the application. You can access the system by entering or selecting the URL: <your server domain name/IP address>/<application name>. Accessing this URL starts your session, logs you onto the host application, and presents the first application screen.
The default start page should typically be set to default.jsp, which simulates a home page from where the JSP Web Client application can be started.
Following are the steps performed by the script, SetupJSP.vbs:
Within the \webapps directory, the script creates a separate directory on the web server for each application. For example, for the Sample system, the directory created is d:\Tomcat\webapps\Sample. Creates a language subdirectory for each language you support, for example, d:\Tomcat\webapps\Sample\lang1033.
Copies the generated JSP pages and .css files from the corresponding language directories from the generate structure, as follows:
copy c:\NGEN_CE\classes\com\unisys\sample\jsp\views\lang1033\*.jsp d:\Tomcat\webapps\Sample\lang1033
There are additional files that are shared by individual JSP pages, such as Global.jsp, Default.jsp, or Page2.jsp that also needs to be copied to the server. The script copies the additional files from the \JSPGenerator directory, as follows:
copy C:\NGEN_CE\JSP Generator\common d:\Tomcat\webapps\Sample copy C:\NGEN_CE\JSP Generator\lang d:\Tomcat\webapps\Sample\lang1033
Within the WEB-INF directory, the script creates a separate directory, classes and places the generated class for each Ispec, as follows:
copy c:\NGEN_CE\classes\com\unisys\sample\jsp d:\Tomcat-6.0\webapps\sample\WEBINF\ classes\com\unisys\sample\jsp\ispecs
Copies the ce.properties and log4j.properties files from web folder to ..\WEBINF\classes folder.
Updates the ce.properties file on the ..\WEB-INF\classes folder.
Copies the web.xml file from web folder to ..\WEB-INF folder.
Creates a folder, "lib" within the Web application directory, and places the LINCApplet.jar, Controller.jar, servlet-api.jar and log4j.jar files.