permaculture playing cards
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

Applet -> Servlet Communication

Jaison Thomas

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?
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:
subject: Applet -> Servlet Communication
It's not a secret anymore!