Spring-Json Demo

The following examples demonstrate Spring-Json in action. The returned Json objects are displayed in alert() dialogs before being inserted into the document.

1. Ajax Get (ControllerInterface)

Clicking the 'Get Name' button gets a Json object from 'hello.json'. The 'Clear Name' button simply replaces the existing text with empty strings

Returned values

2. Ajax Post

In this example the values entered on the form are POSTed to the server and then returned in a Json object which is used to update the 'returned values' below

Form values

The following buttons demonstrate the use of ConfiguratorTemplates to exclude properties

Returned values

3. Exception-Handling by JsonExceptionResolver

Hopefully you have not encountered an error so far...