Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Post to Remote Servlet

 
Brendan Crisler
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Greetings,

I am curious if it is at all possible to POST from a .html page residing in a web server on workstation A, to a Servlet residing in Tomcat on workstation B?

Code: -------------------------------------------------------

<html>
....
...
<body>
<form action="http://hostname/servlet/fooServlet" method="POST">
<input type="submit" value="Submit">
</form>

</body>
<html>

End Code: ------------------------------------------------------

I'll understand if it isn't possible, so if it is, is there a way around it?

Thanks, B
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64623
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you tried it?
 
Brendan Crisler
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yeah, I've tried it, but all I seem to get back to the client (web page on host A) is HTTP Status 500 - Internal Server Error.
 
Paul Clapham
Sheriff
Pie
Posts: 20750
30
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So you're getting connected and you're getting a response. And the response is, there was an error on server B. The thing to do now is to go over to server B and look in its logs to find out what that error was.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic