The Artima Developer Community
Sponsored Link

Legacy Jini Forum
Adding UIs to Jini Services

Advertisement

Advertisement

This page contains an archived post to the Jini Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

reply

Posted by kajal on January 03, 2002 at 12:10 AM

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.

> > > Thanks in advance,
> > > Sandeep





Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us