Thanasis Papakostas wrote:
> Hi ,
>
> I'm having trouble passing information between a Jsp and an applet. The
> applet is embedded in the jsp file with the <jsp:plugin> tag. However i
> want to use the same applet as the javabean for the jsp as well (e.g.
> jsp:useBean ) .
Keep in mind that applets execute inside the client browser, while the bean
referenced by <jsp:useBean> is on the server -- the applet won't be able to
talk to them directly.
> For example i want the user to fill a few textfields in
> the applet --> and then pushing a submit button in an html form call the
> doPost method of a servlet ,which will make a database query using the
> entries from the applet. I would appreciate it if someone could show me
> a way or give me a related URL.
>
If the user is filling in fields in the applet, you're going to need to either
use your browser's connection between applets and the HTML forms (LiveConnect
in Netscape, for example), or you are going to have to do the form "submit"
itself in the applet, rather than an HTML form. If you want to do the latter,
the applet can use java.net.URLConnection to do the submit.
Craig McClanahan
___________________________________________________________________________
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