Tag: AJAX

Spring 4 Web MVC with AngularJS

Spring 4 Web MVC with AngularJS

Introduction The project downloadable below is an answer to a question repeated in this blog (Spring 3 MVC – Adding Objects to a List element on the fly at form submit – (Generic method)) “How can I submit nested lists of objects?” The answer is AJAX and JSON. A very good […]

CORS Stateless REST Service with Facebook Authentication

CORS Stateless REST Service with Facebook Authentication

Introduction This blog will demonstrate one way to enable authentication with Facebook on a Stateless CORS enabled REST service. The CORS REST service will be created using the Ninja Framework. Facebook authentication is via the Facebook JavaScript API. RestFB is used to consolidate the authentication with the REST Service. This […]

Spring 4 Web MVC – JSON Handling

Spring 4 Web MVC – JSON Handling

Introduction This blog demonstrates how to process JSON using Spring 4 Web MVC. The JavaScript AJAX call is described in terms of request headers and request data formatting. Spring uses Jackson for JSON parsing. Jackson is configured to ignore extra JSON properties that do not match properties of the bean […]

CORS Stateless REST Service with detached HTML5 client

CORS Stateless REST Service with detached HTML5 client

Introduction This blog will detail in precise steps how to create a stateless REST service that is consumed by a HTML5 client on another domain. The HTML5 client could easily be a Cordova or Phonegap app. The HTML5 client is simple and basic just for demonstration purposes. It shows the […]

Spring 3 Web MVC – Exception Handling – incorporating AJAX

Spring 3 Web MVC – Exception Handling – incorporating AJAX

This tutorial demonstrates how to handle exceptions in Spring 3 Web MCV. Emphasis is given to Handling  exceptions that occur during AJAX requests. I.e. in the event of an exception during an AJAX request,  it is not desirable to redirect to an error page, instead JavaScript error handling code should be […]

.NET MVC 3 Custom AJAX Error Handling

.NET MVC 3 Custom AJAX Error Handling

Custom Message From AJAX Error Handling with jQuery and MVC 3 An exception on the server-side will invoke the JavaScript AJAX error handling function. This blog will detail two methods to provide custom error handling, overriting the default. Both methods allow specific error messages to be returned to the client […]