Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Applet -> Servlet Communication

 
Jaison Thomas
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1) How to call the doPost method from an applet and
2) pass a value from the applet to the servlet and
3) access the passed value in the servlet.
Below is the code used to call the doGet method of the servlet from the applet
Inside the mouse click event of a button in the applet
----
URL url = new URL "http://computerIP/docBase/servletName?
name="+variableName);
this.getAppletContext().showDocument(url);
----
TomCat is used as web server
 
Andres Gonzalez
Ranch Hand
Posts: 1561
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey Jaison-
I have no idea, but I've seen this question posted many times, just type "applet servlet" in the search option and you'll get lots of results.
hope it helps
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic