Search This Blog

Sunday, 27 March 2016

Reverse AJAX - Using the Piggback Technique

In the previous post we saw how reverse AJAX was achieved using the polling technique. Although easy, this is not a very popular or scalable solution. An alternative approach is the Piggback Technique.

Friday, 18 March 2016

Reverse AJAX - what and how ?

I had only heard about the concept of reverse AJAX before. So when I started looking at servlets async behavior I was tempted to check out this concept.

Saturday, 27 February 2016

Servlet 3.x - Using MultipartConfig for file uploads

In an earlier post, I had written on performing file upload and download using Spring MVC. In that example I used commons-fileupload-1.2.2.jar. This is because Servlets did not have built in support for File upload operation. However Servlets 3.x provides support - as a part of the specs. So no need to include any additional jars. I decided to try an example of the same.

Sunday, 21 February 2016

Servlet 3.x - HandlesTypes annotation

I came across the @HandlesTypes annotation while looking at Servlet 3.1 specs, and of course with lot of time to spare, I ended up trying it out.

Wednesday, 20 January 2016

Servlet 3.x - Building the web.xml less Web Application

Ever since Java introduced  annotations, every framework has been looking to provide an XML alternative to their configuration information. So how could servlets be left behind.