Hi Jitendra, Saurabh & kantartzis, Thanks for all the replies. I appreciate it. I have added the .jar file in classpath as "C:\Program Files\Tomcat5.5\webapps\ROOT\WEB-INF\lib\commons- fileupload-1.1.1.jar;"
Saurabh, since I was trying out some things, I have what you have suggested. I have put the source files where my .java files are. And I have put the .class files in WEB-INF/classes. and it's working now. I am not getting any compilation errors now :) If there is any other way to do it do let me know. -Vrunda