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.