Hi vijay
u need to write following lines in ur Servlet...
ObjectOutputStream ToApplet=new ObjectOutputStream(response.getOutputStream());
ToApplet.writeObject("name of the obj to be written to applet");
ToApplet.flush();
ToApplet.close();
u need to write following lines in ur Applet...
String servletLocation ="http://localhost:8080/servlet/nameofurservlet;
URL empDBservlet = new URL( servletLocation);
URLConnection servletConnection = empDBservlet.openConnection();
servletConnection.setUseCaches (false);
servletConnection.setDefaultUseCaches(false);
ObjectInputStream FromServlet = new ObjectInputStream(servletConnection.getInputStream());
//read the values from the input stream....
gnames = (String) FromServlet.readObject();
------------------------
in gnames u will get the values written by servlet
i think this will solve ur problem
best luck
Ajit