我在action 中写了一个验证输入的判断  并不区分输入的大小写
代码如下:
public ActionForward showCity(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response) throws IOException {
   if(!(((String)session.getAttribute("rand")).equalsIgnoreCase(request.getParameter("check"))))
 {
 request.setAttribute("msg", "验证码错误");
 return mapping.findForward("fail");
 }
//session.getAttribute("rand")) 用来接收验证码的字符
//request.getParameter("check")用来接收表单 验证码输入框的值这样写了后 在验证码输入框 无论输入大写还是小写 都说 :验证码错误:
是怎么回事啊
 验证码有时候显示的是大小写混合  我想在输入的时候不区分大小写
}