把tomcat放到eclipse裏:window-->preferece-->runtime envirement-->add-->omcat7-->next-->tomcat解壓路徑(bin的上一級)
新建server:右鍵--》new-->other-->server-->next->finish
新建項目:右鍵
把tomcat放到eclipse裏:window-->preferece-->runtime envirement-->add-->omcat7-->next-->tomcat解壓路徑(bin的上一級)
新建server:右鍵--》new-->other-->server-->next->finish
新建項目:右鍵
http://www.shsay.com http://blog.csdn.net/ladofwind/article/details/7535387
package my.data; import java.sql.*; public class Fy { Connection cn=nul
在JSP頁面中先將中文編碼 import java.net.URLEncoder; <% String z = URLEncoder.encode("中文"); pageContext.
在HttpSession 中有 getSession() 和 getSession(boolean)兩個方法其具體應用如下: getSession() 功能: 從當前的請求狀態中獲取一個session