用servlet實現(xiàn)數(shù)據(jù)庫查詢 web.xml配置詳解
]頁面請求servlet,servlet獲取參數(shù),然后調(diào)用Dao中的查詢方法(鏈接數(shù)據(jù)庫也在相應的Dao中實現(xiàn))。SQL只寫模糊查詢,比如、“%title name%]”,就是這樣一個過程,servl
]頁面請求servlet,servlet獲取參數(shù),然后調(diào)用Dao中的查詢方法(鏈接數(shù)據(jù)庫也在相應的Dao中實現(xiàn))。SQL只寫模糊查詢,比如、“%title name%]”,就是這樣一個過程,servlet配置、doGet、doPost、link數(shù)據(jù)庫類都是自己寫的。