摘要: public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { if(request.getSession().getAttribute("user")!=null){ ... 阅读全文
posted @ 2016-06-07 14:32 胡一生 阅读(186) 评论(0) 推荐(0)
摘要: hibernate实现有两种配置,xml配置与注释配置。 (1):xml配置:hibernate.cfg.xml (放到src目录下)和实体配置类:xxx.hbm.xml(与实体为同一目录中) <?xml version='1.0' encoding='utf-8'?> <!DOCTYPE hibe 阅读全文
posted @ 2016-06-07 13:42 胡一生 阅读(226) 评论(0) 推荐(0)
摘要: 效果图 阅读全文
posted @ 2016-06-07 11:39 胡一生 阅读(646) 评论(0) 推荐(0)
摘要: 访问该页面 点击a1时,页面跳转到:http://localhost:8888/FirstWeb/www.baidu.com 点击a2时,页面跳转到 www.baidu.com 阅读全文
posted @ 2016-06-07 09:58 胡一生 阅读(158) 评论(0) 推荐(0)