SyntaxHighlighter

Wednesday, August 29, 2012

Spring MVC - Internet Explorer 7 and JSON

Spring MVC - Internet Explorer 7 and JSON

here's a little "trick" i found out with IE 7... if you're ever in the situation where you need to send JSON directly to the client (say, in an IFrame scenario), IE7 will misunderstand the application/json type and pop up the download dialog.  so, to counter this in Spring MVC 3, add the following to the annotations for the MessageConverter...



No comments:

Post a Comment