welobic9.2部署j2ee程序后,登录进行输入验证码后报验证码错误!
错误如下:
Invalid ID,could not validate unexisting or already validated captcha

解决方案 »

  1.   

     HttpServletRequest req = ServletActionContext.getRequest();
     HttpServletResponse resp = ServletActionContext.getResponse();
     String captchaId = ServletActionContext.getRequest().getSession().getId();
     String userCaptchaResponse = req.getParameter("captcha");//输入的验证码  
         boolean captchaPassed = CaptchaServiceSingleton.getInstance().validateResponseForID(captchaId, userCaptchaResponse);最后这样将上面那个问题解决了。看用到你那可以不?
      

  2.   

    我没有用单态,用的spring+servlet代理