JSP/Applet communication


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: JSP/Applet communication

  1. #1
    Don Guest

    JSP/Applet communication


    I'd like to run an Applet within a JSP page that uses a JavaBean to communicate
    with a database. The Applet would use a JTree to navigate some objects held
    in a vector by the bean. However, I'm not sure how to:
    a) load the applet initially from the bean
    b) communicate tree events back to the bean that's instantiated by the JSP.

    Any suggestions or pointers to samples are greatly appreciated.

    DH

  2. #2
    Kyle Gabhart Guest

    Re: JSP/Applet communication


    "Don" <dhoellein@nugenesis.com> wrote:
    >
    >I'd like to run an Applet within a JSP page that uses a JavaBean to communicate
    >with a database. The Applet would use a JTree to navigate some objects

    held
    >in a vector by the bean. However, I'm not sure how to:
    > a) load the applet initially from the bean
    > b) communicate tree events back to the bean that's instantiated by the

    JSP.
    >
    >Any suggestions or pointers to samples are greatly appreciated.
    >
    >DH


    Don,

    My suggestion would be to have the applet talk to a servlet which uses JavaBeans
    to access the database. If it is necessary to have the applet served by
    a JSP page, there are several ways to communicate between JSP pages and servlets.
    I recommend you take a look at Marty Hall's "Core Servlets and JavaServer
    Pages" book. It covers Applet-Servlet communication, JavaBeans, and Servlet-JSP
    communication.

    Let me know if you have any additional questions.

    Happy Coding!

    Cordially,

    Kyle Gabhart
    DevX Java Pro

  3. #3
    Mark Guest

    Re: JSP/Applet communication


    And see my comment to ChuckO

    mark

    "Kyle Gabhart" <gabhart@usa.com> wrote:
    >
    >"Don" <dhoellein@nugenesis.com> wrote:
    >>
    >>I'd like to run an Applet within a JSP page that uses a JavaBean to communicate
    >>with a database. The Applet would use a JTree to navigate some objects

    >held
    >>in a vector by the bean. However, I'm not sure how to:
    >> a) load the applet initially from the bean
    >> b) communicate tree events back to the bean that's instantiated by the

    >JSP.
    >>
    >>Any suggestions or pointers to samples are greatly appreciated.
    >>
    >>DH

    >
    >Don,
    >
    >My suggestion would be to have the applet talk to a servlet which uses JavaBeans
    >to access the database. If it is necessary to have the applet served by
    >a JSP page, there are several ways to communicate between JSP pages and

    servlets.
    > I recommend you take a look at Marty Hall's "Core Servlets and JavaServer
    >Pages" book. It covers Applet-Servlet communication, JavaBeans, and Servlet-JSP
    >communication.
    >
    >Let me know if you have any additional questions.
    >
    >Happy Coding!
    >
    >Cordially,
    >
    >Kyle Gabhart
    >DevX Java Pro



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


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center