Hi,
I'm using the LocaleChangeInterceptor and it worked perfectly until I tried to send Data via POST to the Controller. Here is a small piece of code:
If i enable the LocaleChangeInterceptor, the breader.readLine() always returns null, so there is nothing to read, but Data was sent to the Controller! If i disable the LocaleChangeInterceptor, the breader.readLine() reads the sent data correctly. So the LocaleChangeInterceptor seems to destory my sent data.Code:protected ModelAndView handleRequestInternal(HttpServletRequest request, HttpServletResponse response) throws Exception { BufferedReader breader = request.getReader(); StringBuffer buffer = new StringBuffer(); while ((line = breader.readLine()) != null) { buffer.append(line + "\n"); } .... }
Anyone knows what to do here?
Thanks in advance


Reply With Quote