File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Sockets and Internet Protocols and the fly likes Post Parameter Socket Connection Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "Post Parameter Socket Connection" Watch "Post Parameter Socket Connection" New topic

Post Parameter Socket Connection

James Ellis
Ranch Hand

Joined: Oct 14, 2004
Posts: 205
I can post to a page with the following code:

However in the page I am posting to (AmIPosting.jsp), I cannot get the value of param1 that the above method should be sending. What am I doing wrong?

[ December 04, 2007: Message edited by: James Ellis ]
James Ellis
Ranch Hand

Joined: Oct 14, 2004
Posts: 205
I don't know exactly what I was doing wrong...I think it had something to do with using the PrintWriter object, but anyway I got the code working now. The working code is below:

Joe Ess

Joined: Oct 29, 2001
Posts: 9167

Looks like the old "don't println on a socket" bug.

[How To Ask Questions On JavaRanch]
I agree. Here's the link:
subject: Post Parameter Socket Connection
It's not a secret anymore!