能具体点吗
<------ 仁者见仁,智者见智------>

解决方案 »

  1.   

    public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response)
                throws Exception {            HttpSession session = request.getSession();
                String name = (String) session.getAttribute("mainname");
                String yh = Encode.iso2GBK(request.getParameter("yh"));            ActionForward af = new ActionForward();            System.out.println("======path======="+createExcel(name,yh));            af.setPath("/excel/"+createExcel(name,yh));
        打印出的结果:/excel/adminshow1_yh_20031201(银行).xls
                return af;    }
      

  2.   

    "/excel/"+createExcel(name,yh)
    把这个转个码试试
      

  3.   


    String yh = Encode.iso2GBK(request.getParameter("yh"));
    你对它进行了encode,那读的时候有没有将它decode?