改成ServletException,IOException 试试~

解决方案 »

  1.   

    改成IOException ,ServletException试试~
      

  2.   

    它的错误显示,就是一个服务器内部错误,Http code :550的错误页面,所以我根本找不到它的原因
      

  3.   

    public void doGet (HttpServletRequest request,HttpServletResponse response) 
      throws ServletException,IOException {
        HttpSession sess = request.getSession();
        sess.setAttribute("fbdg","test");
        String URLstr = basePath_1 + basePath_2 + basePath_3+"usergroupinfo.jsp";
        getServletContext().getRequestDispatcher("/html/"+URLstr).forward(request, response);    
    }
      

  4.   

    都不行啊,我不知道是什么原因,无论是用sendRedirect还是用dispather的forward,都不行,大家如果有兴趣的话,可以这样试试,注释掉:sess.setAttribute("fbdg","test"),这样就可以运行。这个问题我想很好久,都想不通啊
      

  5.   

    检查一下你的接收文件
    做一个最简单的
    本人觉得不是servlet的问题
    是html的问题
    将无关数据屏蔽
    一点一点试
    或者吧代码给我,我给你看看