posted 22 years ago
I think his solution would be to take a look at the HTTP protocol RFC. You want a client written in Java to hit the servlet and get data back. If I understand properly, you want to POST to a servlet without a web browser but with Java code.
By checking out the RFC you can check what needs to be sent as a standard HTTP request to a server and how the POST should look like when being sent. Also, if you google, or maybe native Java libraries include classes that write requests and POST data for you.
Another solution is if *YOU* have access to the servlet your trying to hit, you can define the doGet method to call the doPost method, and then you can just send a request within Java with your name/value pairs in the querystring.
Good luck!