Greg,
     Thanks for your response. I tried the similar thing. But the question
is where to keep the parameters in the servlet. Specialy in the multi-user
environment how will the client Applet know for which client this request
or parameters are set. Also Multiple clients can overwrite the parameters at
the same time. So I need to make them thread safe.
   I tried to use the HTTPSession to set the parameters. In this case I didn't
use two servlets as u suggested, one dedicated to serve F1 but I used the
single Servlet. HTML from F2 sets the parameters in HTPPSession in Servlet.
Applet in F1 keeps polling on the Servlet HTTPSession and as soon as the
parameters are set it reads them and sets them back to null.
   I am not very femiliar with session thing. Will it work this way?
Any suggestions for improvement? Is it possible to have more than one seesion
from one PC? How do yopu set the session ID?

Thanks in advance

Ashok



Greg Playle <[EMAIL PROTECTED]> wrote:
Have the frame F2 call the Servlet, and the Servlet return
the same (previous) page it was on.  The servlet receives the
parameters as part of the request, calls the OTHER servlet on
the server.  F1 meantime, has a periodic refresh on it, and
polls the server.  The parameters from F2 pass through a
second servlet, update the servlet that is serving F1.
 Therefore F2 updates F1.  Maybe not immediately, but if you
give it a short (2-4 sec refresh) it will seem nearly
immediate.

On Monday, August 23, 1999 1:23 PM, Ashok Kumar
[SMTP:[EMAIL PROTECTED]] wrote:
> Hi,
>
>    I have an application where I have a Applet in one Frame
>    F1 and dynamic HTML in
> other frame F2. I want to send some parameters to the
Applet
> in F1 whenever user
> clicks on a hyper-link in Frame F2, and in turn applet does
> something whenever
> any parameter is sent to Applet from HTML.
>
> My question is, is it possible to do something like this
> using Servlet???
> Is it possible to use Servlet as a gatway for dynamic HTML
> to Applet
> communication?
>
> I know you can use JavaScript LiveConnect to pass
parameters
> on a Applet by
> invoking its methods from Javascript. But this  solution
> doesn't works
> always. e.g. if you use Java Plugin to run Applet it
doesn't
> allow Applet
> scripting.
>
> I was thinking of Invoking Servlet from HTML and set
> parameters on Servlet
> and then Servlet can Pass parameters to Applet. But I
> couldn't find a way
> to invoke Applet directly from Servlet. I know you can
> invoke Servlet from
> Applet but then its diffrent instance of Servlet than the
> one invoked from HTML.
> How do get the parameters set from HTML?
> Other thing is when you click on Hyper link and invoke
> Servlet it tries to
> show the Servlet response page and wipes out the hyper link
> page. Is there a
> way to make the Servlet execution silent. i.e. it should
not
> do anything on
> client, it should keep the same html, it should just set
the
> parameters on
> Servlet and come back.
>
> Any suggestions will be appreciated.
>
> Ashok
>
> [EMAIL PROTECTED]
>
>
____________________________________________________________
> _______________
> 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

___________________________________________________________________________
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


____________________________________________________________________
Get free email and a permanent address at http://www.netaddress.com/?N=1

___________________________________________________________________________
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