I am using Spring MVC and Spring Security for the application. We are using spring form tags to request rest calls in the application. For a particular purpose, i am using ajax calls from the jsp. It calls the controller method successfully and does processing, but, the controller method doesn't land to a view for some reason. I am not getting any error or anything in logs.
Controller:
@RequestMapping(value="/createRunOne/saveRun", method = RequestMethod.POST,  consumes = MediaType.APPLICATION_JSON_VALUE)
public String saveRun(@RequestBody Run run, Model model){
    try{
        this.runService.saveRun(run);
    } catch (Exception ex){
            model.addAttribute(ERROR, ex.getMessage());
            ex.printStackTrace();
    }
    return "redirect:/run/list";
}
javascript function written in jsp:
function saveRun() {
                var run = {
                    runName: $('#name').val(),
                    description: $('#description').val(),
                    justification: $('#justification').val(),
                    scheduledTime: new Date($('#scheduledTime').val()),
                    fromReceiptDate: new Date($('#fromdatepicker').val()),
                    toReceiptDate: new Date($('#todatepicker').val()),
                    sourceKeyString: $('#segmentSelect').val().toString(),
                    selectedBlocks: $('#blockList').val().toString(),
                    compareFilter: $('#filtercase').val(),
                    productsSelected: selectedList.toString()
                };
                headers['Content-Type'] = 'application/json';
                headers['dataType'] = 'json'
            $.ajax({
                type: "POST",
                url: "createRunOne/saveRun",
                data: JSON.stringify(run),
                headers: headers,
                responseType: "application/json",
                success: function(response, data){
                    if(data=='success'){
                        }
                },
                error: function (xhr,  textStatus, errorThrown) {
                    alert(xhr.status);
                }
            });
        }
 
    