wood burning stoves 2.0*
The moose likes Servlets and the fly likes Applet -> Servlet Communication Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Applet -> Servlet Communication" Watch "Applet -> Servlet Communication" New topic
Author

Applet -> Servlet Communication

Jaison Thomas
Greenhorn

Joined: Sep 29, 2003
Posts: 5
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

Joined: Nov 27, 2001
Posts: 1561
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


I'm not going to be a Rock Star. I'm going to be a LEGEND! --Freddie Mercury
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Applet -> Servlet Communication
 
Similar Threads
Probelm in applet/servlet communication
applet to servlet
Servlet/applet communication failure
Javascript, Applets, and Parameter Passing
Problem loading applets in servlet