• 进度日报20


    protected void shenhedetail(HttpServletRequest req,HttpServletResponse resp)throws ServletException,IOException
        {
            req.setCharacterEncoding("utf-8");
            int id=StringUtil.StringToInt(req.getParameter("id"));
            Xuqiuservice xuqiuservice=new Xuqiuservice();
            Zhengjibean zhengjibean=xuqiuservice.searchneed(id);
            req.setAttribute("zhengjibean", zhengjibean);
            req.getRequestDispatcher("/index/shenhedetail.jsp").forward(req, resp);
        }
    public Zhengjibean searchneed(int id)
        {
            Session session = HibernateUtils.getCurrentSession();
            Transaction tr = session.beginTransaction();
            Zhengjibean zhengjibean=null;
            try
            {
                zhengjibean=new Xuqiudao().searchneed(id);;
                tr.commit();
                
            }
            catch (Exception e) {
                e.printStackTrace();
                tr.rollback();
            }
            return zhengjibean;
             
        }
    public Zhengjibean searchneed(int id)
        {
            Session session = HibernateUtils.getCurrentSession();
            Zhengjibean zhengjibean = session.get(Zhengjibean.class, id);
            return zhengjibean;
        }
  • 相关阅读:
    实验报告2
    实验三 网络欺骗技术
    实验3
    心理魔术
    实验报告
    实验4
    实验5
    实验四恶意代码
    网络对抗技术 实验一
    实验二
  • 原文地址:https://www.cnblogs.com/1234yyf/p/14197027.html
Copyright © 2020-2023  润新知