close
Warning:
Can't synchronize with repository "(default)" (Unsupported version control system "svn": libsvn_swig_py2.7-1.so.1: failed to map segment from shared object: Cannot allocate memory). Look in the Trac log for more information.
- Timestamp:
-
Jun 3, 2010, 11:18:32 AM (16 years ago)
- Author:
-
waue
- Comment:
-
--
Legend:
- Unmodified
- Added
- Removed
- Modified
-
|
v7
|
v8
|
|
| 98 | 98 | 如:原本要網址 http://dx7200:8080/jsp2/FirstJSP.jsp ,有改過 web.xml 則 http://dx7200:8080/jsp2/ 即可 |
| 99 | 99 | |
| 100 | | * |
| 101 | | * |
| 102 | | * |
| 103 | | * |
| 104 | | * |
| 105 | | * |
| 106 | | * |
| 107 | | * |
| 108 | | * |
| | 100 | |
| | 101 | * 7. JSP's and Servlets |
| 109 | 102 | |
| | 103 | 透過此節範例,雖然網頁呈現ok,不過新增、刪除功能怎麼試都似乎總是那兩串資料,其實ShowAll.jsp 秀出那兩串資料也是寫死得印出,當然怎麼新增刪除都無用了 |
| | 104 | |
| | 105 | |
| | 106 | * 8. Web Archive - How to create a war file from Eclipse |
| | 107 | |
| | 108 | File -> Export 即可完成匯出一個 war 檔 |
| 110 | 109 | |
| 111 | 110 | = 重點 = |
| … |
… |
|
| 119 | 118 | * 新增 servlet 則兩者皆可 |
| 120 | 119 | * WebContent 裡面的web.xml 是連接網頁與java的設定樞紐檔,對應到 tomcat 的 webapps/ROOT/WEB-INF 內 |
| 121 | | * |
| 122 | | * |
| 123 | | * |
| 124 | | * |
| 125 | | * |
| 126 | | * |
| 127 | | * |
| 128 | | * |
| 129 | | * |