File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes Servlet Communication using java.net Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Servlet Communication using java.net" Watch "Servlet Communication using java.net" New topic
Author

Servlet Communication using java.net

harsha madiraju
Greenhorn

Joined: Dec 20, 2004
Posts: 10
Hi all,

I am trying to pass some data to a servlet from a java class using HttpURLConnection. But I am not getting the desired output i.e. the servlet is not invoked (it does not print the dummy strings given println())

Following is the code of the java class



Following is the code of servlet



thanks in advance,
harry


<b><i>FACE YOUR FEARS LIVE YOUR DREAMS</i></b>
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Servlet Communication using java.net
 
Similar Threads
Communication between Servlet and Applet
core java communicates with servlet or jsp?
Calling Servlet from Java application
Communication between a Swing Client and a Servlet via HttpURLConnection
Connecting to the webserver from simple java program with main method