wood burning stoves
The moose likes Spring and the fly likes @RequestBody string is escaped Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "@RequestBody string is escaped" Watch "@RequestBody string is escaped" New topic

@RequestBody string is escaped

Gajen Logandan

Joined: May 14, 2009
Posts: 13
I have the following method in my controller,

But the requestbody is getting escaped most probably at the dispatcher. How can I avoid this?
Parth Bhagat

Joined: Mar 14, 2013
Posts: 7

It sounds that you are receiving detail of data posted from the form.

Are you using Spring's form taglib to create & manage form?

In that case @RequestBody will not get detail of your form fields. You can get form data from @ModelAttribute which you've set on form tag.
I agree. Here's the link: http://aspose.com/file-tools
subject: @RequestBody string is escaped
It's not a secret anymore!