Can't invoke the Servlet............
Hi there!!
I'm trying to invoke my servlet from inside my simple Java Application.Though it shows me it has connected to the target URL but the servlet doesn't start its exceution,,here's my code...
System.out.println("========GOING FOR SERVLET=============");
URL url = new URL("http://localhost:8084/servlets-examples/servlet/HelloWorldExample");
URLConnection con = url.openConnection();
// inform the connection that we will send output and accept input
con.setDoInput(true);
con.setDoOutput(true);
con.setUseCaches (false);
con.setDefaultUseCaches (false);
con.setRequestProperty("Content-Type", "application/x-www-form-urlencoded");
System.out.println("?Connected to URL");
......urgent help reqd plz.......thanks in advance...

