May 28 2009

Selection of the Preferred Locations for Suggestion on Google Maps

Eray

This week I completed the location selection(actually areaS selection) module for clients. This module will be used by clients for indicating their preferred locations when getting venue suggestions or seeing their friends inside these areas.

The main features of this component is that it supports multiple location adding / updating / deleting. This means clients can indicate more than one location and adjust the size of those areas whatever and whenever they want.

I plan to write a how to for handling polygons on Google Maps asap.


May 28 2009

How-to: File Uploading Using JSP/Servlet

Cansin

As a surprise, I saw that JSPs are not capable of handling multipart form data. So, I have spent some time on figuring out how to upload a file to the server using JSP/Servlet.

There are two known libraries to use to be able to handle multipart form data; Apache Commons’ FileUpload and OReilly’s COS. I have found latter easy to use. At COS, there are two approaches to handle multipart request; push and pull model. You can either use MultipartRequest class  to handle the request (push model) just like you do at a regular request (i.e. using req.getParameter()); or use MultipartParser class to do the job by iterating among request objects (pull model). Continue reading