package cardhover; import java.io.IOException; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; public class HoverCardServlet extends HttpServlet{ /** * */ private static final long serialVersionUID = -8649253088211698503L; @Override protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { resp.setCharacterEncoding("UTF-8"); resp.setHeader("content-type","text/html;charset=UTF-8"); String id=req.getParameter("id"); //此处根据用户ID查询用户信息返回页面 System.out.println(id); //这里的demo根据id不同返回2个页面 if("1".equals(id)){ req.getRequestDispatcher("niu1.jsp").forward(req, resp); } else req.getRequestDispatcher("niu2.jsp").forward(req, resp); } }

taobai1212 LV1
2021年2月4日
a695649350 LV1
2016年7月14日
tlmsxu LV1
2016年6月24日
后海小飞侠 LV1
2016年3月26日
yekaigga LV15
2016年3月21日
pwh8023 LV17
2016年1月27日
小小梦工场 LV1
2016年1月8日
zhangchunboy LV1
2015年12月28日
安草儿 LV1
2015年12月6日
xxdainsley LV8
2015年6月22日

harry000720 LV1
2022年11月29日
1054541858 LV1
2022年7月6日
powerlee LV2
2022年5月14日
yogabin LV1
2022年4月17日
488291556 LV5
2021年11月22日
二十一画 LV10
2021年11月14日
李思谕
2021年3月24日
暂无贡献等级
taobai1212 LV1
2021年2月4日
Mrgame LV6
2020年12月16日
xmjying LV13
2020年11月16日