Siddharth,
To be honest with you, I don't do this often enough to be able to debug your code without looking all of this up. I do know that I followed that tutorial and was able to stream objects back and forth from a Swing
Applet to a servlet. This was quite a while ago.
At this point, your problem is not really a Servlet one. It has more to do with calling a web resource from a Swing app. I'm not sure which forum would be the best for this (maybe Distrbuted Java or IO/Streams).
[ April 03, 2005: Message edited by: Ben Souther ]