Mei-Mei Ho

Greenhorn
+ Follow
since Mar 02, 2012
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Mei-Mei Ho

I have a simple piece of code to attempt connecting to the servlet url and invoke the doPost in the servlet to send along a string (actually I am trying to send some xml strings eventually, but just want to see if this simple string will work first). I put a break point in the servlet doGet or doPost method and it's not stopping there at all! But when I just go straight to that servlet from Internet explorer by typing in http://localhost:8080/Testing Servlets/hello in the address, it hit the servlet's break point, so that's why I know that this piece of HTTP_poster code does not seem to hit that servlet when I run it on the command line. It doesn't even print the "cannot send the string to servlet" in the catch! So I am not sure where it sent to then! I am running the servlet in a simple Tomcat 6.0 environment. Any help or wisdom would be very appreciated. Thanks!


The servlet code is also quite simple:
12 years ago