Changes between Version 12 and Version 13 of waue/2010/0608
- Timestamp:
- Jun 8, 2010, 4:53:15 PM (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
waue/2010/0608
v12 v13 35 35 * 專案目錄將呈現以下結構 36 36 37 || /opt/tomcat/webapps/servlet1 || || || || ||37 || /opt/tomcat/webapps/servlet1/ || || || || || 38 38 || + || WEB-INF/ || || || || 39 39 || || - || web.xml || || || 40 || || + || classes || || ||40 || || + || classes/ || || || 41 41 || || || - || HelloServlet.java || || 42 42 … … 204 204 * 專案目錄將呈現以下結構 205 205 206 || /opt/tomcat/webapps/servlet3 || || || || ||206 || /opt/tomcat/webapps/servlet3/ || || || || || 207 207 || - || hello.jsp|| || || || 208 208 || + || WEB-INF/ || || || || 209 209 || || - || web.xml || || || 210 || || + || classes || || ||210 || || + || classes/ || || || 211 211 || || || - || HelloServlet.java || || 212 212 || || || - || Hello.java || || … … 333 333 == 3.7 測試 == 334 334 335 比較以下網址的不同處 336 [http://localhost:8080/servlet3/hello.do?user=momor] 337 [http://localhost:8080/servlet3/hello.do?user=caterpillar] 338 [http://localhost:8080/servlet3/hello.do?user=Justin] 339 [http://localhost:8080/servlet3/hello.do?user=waue] 335 比較以下網址的不同處: 336 337 [http://localhost:8080/servlet3/hello.do?user=momor][[br]] 338 [http://localhost:8080/servlet3/hello.do?user=caterpillar][[br]] 339 [http://localhost:8080/servlet3/hello.do?user=Justin][[br]] 340 [http://localhost:8080/servlet3/hello.do?user=waue][[br]] 340 341 341 342 == 練習 == 342 改寫程式碼,當輸入 user=rock,passwd=123456時,秀出歐八講的圖片,否則回應帳號密碼錯誤 343 344 改寫程式碼,當輸入"user=rock,passwd=123456"時,秀出歐八講的圖片;否則回應帳號密碼錯誤。