> > a) If I had used Forms, I could use doPost or doGet methods so that the
> > server picks up data from the client. But as I am not using them, how do I
> > make the server pick up data from the client?
> 
> If your data from the client is input by the user, your only HTML option is
> to use forms (GET and POST are nearly identical for most purposes...)

> 
> If the data you want from the client is known by the server before sending
> the HTML to the browser, you can use something like:
> 
> <a name="option1" href="servlet/DoMyBidding?param1=x&param2=y">click here to
> cause the servlet to do my bidding with x and y</a>
> 
> <a name="option2" href="servlet/DoMyBidding?param1=a&param2=b">click here to
> cause the servlet to do my bidding with a and b</a>
> 
> This very limited kind of interaction allows the user to select from a set
> of links (option1 vs option2.)
> 
> > b) I have currently written the GUI in Jess. So if I move Jess to the
> > server side, I will have to re-write the GUI in Java, right?
> 
> Well, the GUI itself would be HTML not Java per se - you could use Java to
> create the HTML. If you aren't familiar with servlets, you might want to try
> JSP instead (it's still a servlet.)
> 

************** Actually, my case is not either of the two You have
listed. Probably, my question was not worded properly. I am developing an
Intelligent Help system using Jess for people using virtual labs. The
virtual labs run as applets. Now, let us say that the student forgets to
switch on an instrument, but tries to operate it anyway. So I capture the
fact that he is trying to operate through my Java code. I check whether he
has switched on the instrument, again using Java. When he has not, I want
to send a message from the applet to the servlet(where Jess is
running) which would read something like...

"(assert (switch-not-on) )" 

in plain text(that is all I need, right?). In the server side, my servlet
program(which has an instance of Rete) upon getting this message from
the applet will do 

rete.executeCommand("(assert (switch-not-on) )");

Now I have a rule that says that if (switch-not-on) then set help to be
"Switch on the machine". I want to pass this text from the servlet back to
the applet.

My question basically is how do I initiate the sending process from the
client as there is no direct user-input and all these things happen in the
background. 

In that case, what You have described in the following is what I have to
do? 
*************************

> If this is too much work, you *could* have your existing applet run in the
> client browser as it does now. The applet could then make HTTP requests
> (internally - not using the browser) to send data to the server and get data
> back from the server.
> 
> In this case, some of your applet code would be moved to the server and
> would act as a Web Service-like thingy and has no gui. You would be using
> HTTP simply as a transport for data to/from the server. It's an option if
> your existing app has a complicated gui, you are new to server side coding
> and all you want to do is have some portion of your app run in a centralized
> context (e.g. using shared server data, etc.)
> 
> Good luck!
> 
> alan
> 
> ---------------------------------------------------------------------
> To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
> in the BODY of a message to [EMAIL PROTECTED], NOT to the
> list (use your own address!) List problems? Notify
> [EMAIL PROTECTED]
> ---------------------------------------------------------------------
> ---------------------------------------------------------------------
> To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
> in the BODY of a message to [EMAIL PROTECTED], NOT to the
> list (use your own address!) List problems? Notify [EMAIL PROTECTED]
> ---------------------------------------------------------------------
> 
> 


---------------------------------------------------------------------
To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
in the BODY of a message to [EMAIL PROTECTED], NOT to the
list (use your own address!) List problems? Notify [EMAIL PROTECTED]
---------------------------------------------------------------------

Reply via email to