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


May 21 2009

Tag Cloud & Signup

Cansin

This week, we needed to make a huge database refinement for our system. After modifications, system can now achieve all features that is intended.

One of these features was Tag Cloud. Before this week, our tags had no importance values so they are all treated equally. But now, thanks to database modifications, I have implemented a Tag Cloud logic for tags. I used jquery tagcloud to represent the information.

Also, our sign-up system had still some issues that are needed to be fixed. And I decided that it will be easier to re-implement it than try to bug-fix, since we have some flow control modifications as well. So, I have implemented sign-up again. Hopefully next week, I will finish EditProfile, EditNetworkAccounts and EditVenue features.


May 14 2009

Search Feature

Cansin

I have been working on search feature of MuzikMekan for about two weeks now. Last week I have added the intended functionality, but representation of search results were weak.

So this week I have worked on this issue. After fixing a tiny css bug, I have finalized the representation aspects of search results for Users, Venues and Events. I believe it is much more informative now.


Apr 8 2009

Venue Profile View

Cansin

This week I have mostly completed the venue profile view. The Venue Profile View is integrated with both Database and Last.fm. The main page of the venue view is completed. Since we have too little area for large amount of data, Murat came up with an idea using jQuery’s accordion widget. So, I have integrated jQuery to our project and used an accordion widget (sliding vertical tabs) to show ‘recently played’ and ‘insiders’ data.

Next week we will implement comment structure with Gokhan, both the interface and background. Also while Murat and Eray are implementing event management, I will also implement the necessary interface at venue profile view.


Mar 13 2009

Sun’s Guideline of MVC

Murat

This is a comprehensive guideline about JSP Model 2 architecture, so called MVC. It clearly demonstrates controller design, front controller pattern, template structure, states and sessions:

http://java.sun.com/blueprints/guidelines/designing_enterprise_applications_2e/web-tier/web-tier5.html


Dec 26 2008

JSP / Servlet

Gokhan

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.