aspose file tools
The moose likes Servlets and the fly likes Communication between Applets and Servlets Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Servlets
Reply Bookmark "Communication between Applets and Servlets" Watch "Communication between Applets and Servlets" New topic
Author

Communication between Applets and Servlets

Nilesh Srivastava
Ranch Hand

Joined: Aug 29, 2003
Posts: 70
Hi All,,
I dont know where to post this query.Since it is more related to Servlets so I am posting it in this forum.
My question is :
How does an Applet communicates with Servlet.
Thanks in advance.
Idly Vada
Ranch Hand

Joined: Sep 02, 2003
Posts: 135
Originally posted by Nilesh Srivastava:
Hi All,,
How does an Applet communicates with Servlet.

First the servlet to which you want to send parameters should be on the same server where applet is present.
Coming to passing parameters to the servlet , you can do this in two ways
i) Construct url manually. In this approach you should take care of parameter encoding.This can be tricky.
for eg:
to invoke DetailsServlet with parameters name and age
use DetailsServlet?name=abc&age=22
ii)Make use of URLEncoder and URLDecoder classes.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Communication between Applets and Servlets
 
Similar Threads
Completed SCWCD 1.4
Un-downloadable Applets
WA #1.....word association
Downloading HTML page
special characters