Hi Srinivas,
As far as I know, when you use the "java.net.URLConnection" class to connect to a servlet from another
java class (like and applet, for example), you are invoking that servlet's "doPost()" method only (and _not_ its "doGet()" method).
In case you haven't read it, this article contains more details:
http://www.javaworld.com/javaworld/jw-03-2001/jw-0323-traps.html Hope this helps.
Good Luck,
Avi.