Sohaila Roberts wrote:

>  Hi, is it possible to call a servlet to do a certain function from within
>  the code of an applet? If so how exactly would it be set up..
>  Thanks
>
>  Sohaila
> [...]

Hi :-)  I think the following can work:

client-side                       server-side

Applet ->            service/doGet/doPost/do... of Servlet
                      -> working(calculating result)  in:
                           service/doGet/doPost/do...
                           or another method in Servlet
                           or another method in Utility-class
                           or RMI/EJB...
                      -> get the result needed by Applet
Applet <-       return to Applet from service/doGet/doPost/do...

i.e.,   because now I try to use Servlet, so, normally,  I need to send
a HTTP request from client-side, and/so client-side(Applet, html/wml...)
has to use/pass-through service/doGet/doPost/do... to enter server-side,
then in server-side/middle-tie(?),  another Java-method/JNI-invoking/RMI/EJB...

can be invoked.

you also can use RMI/EJB... directly from Applet/Application, but perhaps now
the client-side is heavier: normally, a RMI/EJB... Java-client is heavier than
a
HTTP Java-client, so perhaps it is better to put them into Servlet.


if the above is wrong, please correct it, thanks!  :-)

Bo
May.25, 2001

___________________________________________________________________________
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