Please download the following files that have been organized.
download
Note: It has been passed under Win2K Tomcat IIS5.0.
README.TXT for file
Use only IIS_C_TOMCAT folders, lib is Mysql and MS SQLServer2000 JDBC driver, TEST is the first JSP and Java programs. *********************************************************** **************************************** IIS_C_TOMCAT usage: 1. Install SDK to any directory; remember environment variables; 2. Install Tomcat To D: / Tomcat; (recommended Tomcat 5.0.28) Test: http: // localhost: 8080 Success, continue below; 3, 3 files under IIS_C_TOMCAT and 1 folder 4 file Copy to D: / Tomcat / CONF overlays the original document (recommended first backup
Series, so as not to be wrong); 4 ) The executable is:
D: / Tomcat/conf/Connector/isapi_redirector2.dll; After determining, the green arrow is high. 6, newly built a virtual directory, name: Jakarta directory pointing: D: / tomcat / conf / connection /; 7, change the IIS home directory to: d: / tomcat / webApps Put the six option boxes all selected, The execution license is: script and executable program 8. Point the plus sign of the default site, find Jakarta, and set its human rights to the largest and main directory, remember to select the script resource visit
ask. Restart IIS and Tomcat now, reopen the browser, http: // localhost can see the files under WebApps, point
JSP-EXAMPLES, perform any of the following Execute, if success is the same as the port 8080, if downloaded or not looking for
Go to the server, where is wrong. *********************************************************** *************************** Below is the Java environment entry example [Old Tight Hello World "newbie] Environment Variable: I am installed In D: / JDK, the root is modified: New: classpath value:.; D: /jdk/lib/dt.jar; d: /java/jdk/lib/tools.jar add a semicolon after Path Plus, ie:; D: / JDK / BIN execution: cmd command: Java -Version appears successfully.
Use Notepad to hit the following code: ------------------------ Class HelloWorld {public static void main (string args []) {system.out. Println ("Hello World!");}} -------------------------- Save as HelloWorld.Java (must be back with that class The same name, why? I have to go online), I have to remember that the file extension is to be displayed, don't: helloworld.java.txt 喔! Save to D: / Java, run the cmd to d: / java; command (in quotation marks): "Javac HelloWorld.java" There is no error after a few seconds, no information is compiled, continue: "Java HelloWorld "
There is no .java, no .class. Then appear: Hello World! Success, the first Java program is passed!
-------------------------------------------------- ------------------ First JSP program: ------------------------- --------------------------- <% @ Page ContentType = "text / html CHARSET = GB2312 "%>
<% out.print ("Hello World!");%> body> head> html> -------------------------------------------------- --------------- Saved as: Test.jsp is put on root, visit: http:// localhost: 8080 / test.jsp If you want your own new virtual directory, I To use MyJSP as a virtual directory name: In the [Tomcat_Home] /conf/server.xml file, you're found in host>, in front of it:
Remember that Java is case sensitive. After the modification, you must restart Tomcat, access: http:// localhost: 8080 / myjsp / test.jsp *************************************** ******************************************************
Chinahom (c) 2005/03/24chinahom@163.com