CustomerLastName Application Application installation notes: Assumptions: 1. You are using Tomcat 4.0 (available as a free download from www.apache.org) on a Windows PC. 2. You have a TCP/IP connection to an AS/400 or iSeries. 3. You have access to the AS/400 Java Toolbox jar file (jt400.jar) so you can copy it to your PC. Installation: Use the custlastnameSourceCode.zip file (a little tedious, but helps you learn how application resources reside in Tomcat applications) 1. Create a web application directory (I called it custlastname) for your application under the \webapps directory 2. Place these five files in the directory created in step 1: CustNoInput1.html CustNoInput2.html CustomerLastNameOutput1.jsp CustomerLastNameoutput2.jsp CustomerLastNameInstallNotes.txt 3. Create a directory under the web application directory created in step one and call it WEB-INF 4. Place this file in directory created in step 3. jdbc.properties 5. Modify the jdbc.properties text file by changing the system, user and password that will work on your iSeries system. 6. Modify the source code in CustomerLastNameControllerServlet.java file and change the path to the jdbc.properites file on your system. input = new FileInputStream("c:\\Apache Tomcat 4.0\\webapps\\custlastname\\WEB-INF\\jdbc.properties"); (note: there's probably a way to get around this hard coding of the path to the jdbc.properties file, but I haven't discovered it yet.) 7. Create a directory under the WEB-INF directory created in step 3 and call it classes 8. Place these two files in directory created in step 7. CustomerLastNameControllerServlet.java makecustlastname.bat 9. Create a directory under the WEB-INF directory created in step 3 step and call it lib 10. Place a copy of your iSeries Java Toolbox package (jt400.jar) in the lib directory created in step 6. 11. Create a directory under the classes directory created in step 4 and call it com 12. Create a directory under the com directory created in step 6 and call it itechtutor 13. Place this file in the \WEB-INF\classes\com\itechtutor directory: CustomerLastNameBean.java 14. Run the makecustlastname.bat file from the \webapps\custlastname\WEB-INF\classes directory 15. Start or restart the Tomcat server 16. Open a browser and use the following URL: Running the application: 1. Start or Restart the Tomcat server. 2. Open a browser and key one of the following URLs (assumes your Tomcat server uses port 8080): Non-JavaBean version //localhost:8080/custlastname/CustNoInput1.html JavaBean version //localhost:8080/custlastname/CustNoInput2.html