Professional Documents
Culture Documents
ECT 7130
Download Tomcat
http://ftp.cuhk.edu.hk/pub/packages/apach
e.org/tomcat/tomcat-5/v5.5.28/bin/apachetomcat-5.5.28.zip
Put under C:\ and unzip to C:\apachetomcat-5.5.28
*.html
*.jsp
WEB-INF
web.xml
classes
*.class
lib
*.jar
Compiling Servlets
Set classpath=%classpath%;c:\apache-tomcat5.5.28\common\lib\servlet-api.jar
Create directory
c:\apache-tomcat5.5.28\webapps\liangweb\WEB-INF\classes
Copy slide/book/FirstServlet.class into
c:\apache-tomcat5.5.28\webapps\liangweb\WEB-INF\classes
Download
www.cs.armstrong.edu/liang/intro6e/supp
lement/web.xml
to
c:\apache-tomcat5.5.28\webapps\liangweb\WEB-INF
Run by typing
http://localhost:8080/liangweb/FirstServlet
1. Put the html file under apache-tomcat/webapps/liangweb. Put the class file
under apache-tomcat/webapps/liangweb/WEB-INF/classes.
http://localhost:8080/liangweb/ComputeLoan.html