-
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
-
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
-
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
-
Forum Rules
|
Development Centers
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center
|