May
28
2009
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.
no comments | tags: area selection, eray, google maps, gpolygon, javascript, praeda maps
May
28
2009
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
3 comments | tags: cansin, file upload, form-data, jsp, multipart, oreilly, request, servlet