DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    shazia Guest

    applet servlet communication: establishing a connection


    Hello,

    I am new in applet servlet communication, and am doing a project on it.
    My project involves choosing some values from a popup menu on an applet and
    posting tose values to a servlet, which should the pass those values back.
    I am having a problem establishing a connection with the servlet.

    can some one give me the code for an applet and a servlet which will do the
    above operation. i.e choose a value from a popup menu on an applet, press
    a button so as to post the value to the servlet. The servlet then passes
    the values back on to a text box in the applet. This will therefore prove
    that applet servlet communication has taken place.


    Thanks in advance



  2. #2
    Jo Desmet Guest

    Re: applet servlet communication: establishing a connection

    there is a nice article about this on JavaWorld; follow
    this link:
    http://www.javaworld.com/javatips/jw-javatip34.html

    The example works fine for me, but as soon as I try to connect to a servlet
    within the companies intranet I get a FileNotFoundException whenever a
    getInputStream() is called. I could not find out why ...


    "shazia" <shaz12000@hotmail.com> wrote in message
    news:3992c6ea$1@news.devx.com...
    >
    > Hello,
    >
    > I am new in applet servlet communication, and am doing a project on it.
    > My project involves choosing some values from a popup menu on an applet

    and
    > posting tose values to a servlet, which should the pass those values back.
    > I am having a problem establishing a connection with the servlet.
    >
    > can some one give me the code for an applet and a servlet which will do

    the
    > above operation. i.e choose a value from a popup menu on an applet, press
    > a button so as to post the value to the servlet. The servlet then passes
    > the values back on to a text box in the applet. This will therefore prove
    > that applet servlet communication has taken place.
    >
    >
    > Thanks in advance
    >
    >




Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links