This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
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


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "@RequestBody string is escaped" Watch "@RequestBody string is escaped" New topic
Author

@RequestBody string is escaped

Gajen Logandan
Greenhorn

Joined: May 14, 2009
Posts: 13
Hi,
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
Greenhorn

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