hi ... u can easily call an applet from the servlet using the URLConnection ...... here is the code :
location = "http:///?" URL url = new URL(location); BUfferedReader in = new BufferedReader(new InputStreamReader(url.openStream())); in.close();
........ now u can retrieve the value of the parameter in the servlet using the getQueryString method or using the getParameter().
i don't know how to get the values back from the servlet in the HTML page after establishing a connection from the applet.
> > > Hi, > > > Right now I am also working servlet applet communication . I have to call an applet from a servlet .And this applet should parse the HTML tags and should display as it displays in the browser. > > > Can you help me regarding this. > > > I appretiate if you send me some code samples to connect an applet to a servlet.