• Post Reply Bookmark Topic Watch Topic
  • New Topic

calling another servlet using HttpURLConnection class  RSS feed

 
Gopi Krrishna
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have two servlets "Servlet" and "Servlet1".

this is the code for Servlet.java




This is the code for Servlet1.java



When i try to run this code i m just getting output as "servlet" and nothing from servlet2. i want to print the memory from servlet1. can anyone help me?
[ March 02, 2007: Message edited by: Gopi Krrishna ]
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You're throwing away all of the debugging information provided by the JVM.


Add:
e.printStackTrace() to your catch block and watch your server's logs while you hit this and it should tell you exactly what's wrong.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!