This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Servlets and the fly likes Applet and Servlet not talking to each other Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Applet and Servlet not talking to each other" Watch "Applet and Servlet not talking to each other" New topic
Author

Applet and Servlet not talking to each other

Rekha Pande
Ranch Hand

Joined: Jan 29, 2004
Posts: 145
Hi all,
I have this applet that needs on load some info from Database. So im getting the parameter in applet - passing it to servlet - then query from DB and then back to servlet and then to applet, to display information in applet. But for some reason my applet and servlet are not communicating...can some one please have a look at my code and tell me where am i going wrong..!!

This is in the get method of the servlet


This is in the init method of my applet


Please can some help me on it...! Thanxs in advance.
Rekha Pande
Ranch Hand

Joined: Jan 29, 2004
Posts: 145
It's working now...
I found this nice tutorial on this link....
http://www.j-nine.com/pubs/applet2servlet/index.htm .....
Download the zip file. It has a nice big example in it..!

Thanxs any ways to all.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Applet and Servlet not talking to each other