• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

calling servlets

 
Krishna Srinivasan
Ranch Hand
Posts: 1862
Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how can we call a servlet from an applet?
Advance Thanx.
 
Sainudheen Mydeen
Ranch Hand
Posts: 218
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

-------------
Sainudheen
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13071
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
note that because of the "http://" what you get is an HttpURLConnection (in the java.net package). This is important because you can then
((HttpURLConnection)con).setRequestMethod("POST");
Do that before opening the connection - otherwise you have a GET connection by default.
Bill
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic