Passing data between a JSP page and servlet using JSON and JQuery (part 2)

In part 1, I discussed the client side code and gave examples of how to use JSON in a web page using JavaScript.  Part 2 discusses the server side code and gives an example of Continue reading

Advertisements

Passing data between a JSP page and servlet using JSON and JQuery (part 1)

JavaScript Object Notation, or JSON for short, is a human-readable and compact way to exchange data between systems.  JSON has been referred to as a fat-free alternative to XML.

There are lots of websites that explain the pros and cons to using XML vs. JSON so I won’t go into that here.  Rather, I’ll give a brief but complete example of how to Continue reading