I've got a simple http POST action in Spring MVC and I don't need to return a full web page. Instead I just need to return an xml string (for example)
true
But when I exec the action below my client is getting a 404
@RequestMapping(value = "/updateStuffAjaxStyle.do", method = RequestMethod.POST)
public String updateStuffAjaxStyle(HttpServletRequest request, HttpServletResponse response) {
//..do something w/ the inputs ...
return "<valid>true</valid>";
}
Is it possible to return a simple xml string like this w/out having to define a ton of bean defs?