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
This week was mostly about bug fixing and integration. The url flow of venue selection facility was different than our current approach. Also there were some major bugs, which we got aware of by testing use cases. I have fixed these problems at venue selection.
Also I have finished Venue Profile View. What I did was basically to provide insiders information which was missing, to add a view which shows a map of the current venue and to provide links to ‘see event’, ‘read comment’ views.
I think that we now have a solid, well integrated application; the only missing part of the project is edit views (user profile, venue etc.) and friendship,networking issues.
I made configuration of apache-tomcat 6.0 on eclipse 3.4(ganymede) in Windows platform and server is running succesfully.
I worked over sample application using JSP and Servlet. I managed to build some sample applications succesfully on my server. I think using JSP together with Servlet will be more beneficial for the understandability and developability of the project.
Slightly I looked over the usage of JavaBean in JSP. Next week, mainly I will focus on the MVC architecture, JDBC connection of a simple application and How we can use JSF in the project.