⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 viewproductservlet.java

📁 基于jsp的网上书店
💻 JAVA
字号:
锘縫ackage adminshop;


import java.io.IOException;
import java.util.ArrayList;
import java.util.List;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;




public final class ViewProductServlet extends HttpServlet{  
	protected void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
	              
   		
   		String keyword = (String)req.getAttribute("keyword");
		Integer pageId = (Integer)req.getAttribute("pageId");
	    HttpSession session = req.getSession(true);
		//鑾峰彇鍖归厤鍟嗗搧
	    DB  db=new  DB();
		List productList = null;
		try {
			productList = new shopadmin().getMatchProducts(db, keyword);
		} catch (Exception e) {
			// TODO 鑷

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -