那逗号是否有问题?schNo的定义是否有问题?你再查查

解决方案 »

  1.   

    郁闷了一小时啦!代码详见:
    ........
    public void doPost(HttpServletRequest req,HttpServletResponse res) throws IOException,ServletException{String act=req.getParameter("action");
    String schNo=req.getParameter("schNo");
    String retURL="crs_error.htm";
    HttpSession session;
    int result;
    SchIndexBean schIndxBean; 
    SchCourseBean schCrsBean=new SchCourseBean();if (act!=null){
         if ("add1".equals(act)) {
    //String crsNo=req.getParameter("crsNo");
    schIndxBean=new SchIndexBean();
    schNo=CodeTrans.UniToCn(schNo);
    result=schIndxBean.getSchIndex(schNo);
    if (result==0) {
    schNo=CodeTrans.CnToUni(schNo); session=req.getSession();             //
    session.setAttribute("schNo",schNo);  //这里附近
    req.setAttribute("schIndxBean",schIndxBean); // RequestDispatcher rd=getServletContext().getRequestDispatcher("/html/schCrs_add1.jsp");
    rd.forward(req,res);
    }
      

  2.   

    叫我怎么说呢,真是见鬼了,不知道怎么回事编译成功了。ajiao() ,真是过意不去,大半夜的麻烦你。不嫌少的话,请上面两位到这里接分:
      

  3.   

    http://expert.csdn.net/Expert/topic/1753/1753329.xml?temp=.4392969