Changes between Version 7 and Version 8 of waue/2010/0608
- Timestamp:
- Jun 8, 2010, 1:48:58 PM (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
waue/2010/0608
v7 v8 30 30 {{{ 31 31 cd /opt/tomcat/webapps/ 32 mkdir -p /opt/tomcat/webapps/ FirstServlet/WEB-INF/classes33 mkdir /opt/tomcat/webapps/ FirstServlet/WEB-INF/lib32 mkdir -p /opt/tomcat/webapps/servlet1/WEB-INF/classes 33 mkdir /opt/tomcat/webapps/servlet1/WEB-INF/lib 34 34 }}} 35 35 … … 37 37 38 38 {{{ 39 cd /opt/tomcat/webapps/ FirstServlet/WEB-INF/classes39 cd /opt/tomcat/webapps/servlet1/WEB-INF/classes 40 40 gedit HelloServlet.java 41 41 }}} … … 75 75 76 76 {{{ 77 cd /opt/tomcat/webapps/ FirstServlet/WEB-INF/classes77 cd /opt/tomcat/webapps/servlet1/WEB-INF/classes 78 78 javac -classpath /opt/tomcat/lib/servlet-api.jar ./HelloServlet.java 79 79 }}} … … 82 82 83 83 {{{ 84 cd /opt/tomcat/webapps/ FirstServlet/WEB-INF/84 cd /opt/tomcat/webapps/servlet1/WEB-INF/ 85 85 gedit web.xml 86 86 }}} … … 114 114 == 2.6 用瀏覽器測試 == 115 115 116 [http://localhost:8080/ FirstServlet/hello.do?name=caterpillar]116 [http://localhost:8080/servlet1/hello.do?name=caterpillar] 117 117 118 118 ps: '''?name=caterpillar''' 可以改成你的名子來測試是否成功