Hi Satya,

   In the event handler of the button,
   Construct an URL giving the path of the Servlet

   Eg:
   If the Servlet resides in Ur local m/c in Servlets
   directory,
   try {
   URL url = new URL("http","localhost",8080,path);
   URLConnection servletConnection = url.openConnection();
   }catch(Exception e) { }

   In Ur servlet program, Display some output by HTML.
   If U wish to Pass parameters between Applet and
   Servlet, Use ObjectStreams.

   Hope, This solves Ur problem,

Regards,
Sudhakar



On         Sun, 6 Jun 1999 10:16:50 PDT, Satyashree Mahapatra wrote:

> Hi,
>
> Can anybody help me with how to work out communication between
> applets and servlets.
> Let's say with a button click on an applet a servlet is to be invoked
> which displays an HTML on the browser. How do I achieve this.
>
> Thanks
> Satya




_______________________________________________________
Get your free, private email at http://mail.excite.com/

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to