Announcement Announcement Module
Collapse
No announcement yet.
Problem with LocaleChangeInterceptor and POST-Request Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Problem with LocaleChangeInterceptor and POST-Request

    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:

    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");
          }
          ....
    }
    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.

    Anyone knows what to do here?

    Thanks in advance
Working...
X