Dear ejfried,
So it seems impossible to use batch command having prompt for input in java
application? Now I am reading the book "JESS in Action", but I don't find any applet
example with Jess embedded. Is that possible that you can give me the source code for
Jess Applet Demo at http://herzberg.ca.sandia.gov/jess/demo.shtml ? We need to use
JESS in our project for E-commerce course and we are considering using applet.
======= You wrote on 2003-10-16 #:=======
>I think Yingying Chen wrote:
>
>
>> Value v=r.executeCommand("(batch animal.clp)");
>
>In this line, you start the "animals" program running. The first thing
>it does is prompt for input. executeCommand() is synchronous: i.e.,
>this line doesn't return until the batch program is ended, which it
>can't until you answer the questions!
>
>> r.executeCommand("printout t \"hello\" crlf");
>
>
>This is an erroneous command, by the way; it's missing the
>parentheses.
>
>> contentPane.add(textArea1, BorderLayout.CENTER);
>
>
>Here, we display the panel where the question has been sent. But we
>never get to this line of code -- the program is still back at the
>"batch" comamnd.
>
>So the direct answer is to display the textarea BEFORE you run the
>program. Note that since you haven't provided an input router, input
>is still going to come from the command line.
>
>
>---------------------------------------------------------
>Ernest Friedman-Hill
>Distributed Systems Research Phone: (925) 294-2154
>Sandia National Labs FAX: (925) 294-2234
>PO Box 969, MS 9012 [EMAIL PROTECTED]
>Livermore, CA 94550 http://herzberg.ca.sandia.gov
>
>--------------------------------------------------------------------
>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]
>--------------------------------------------------------------------
>
>.
= = = = = = = = = = = = = = = = = = = =
Yingying Chen
2003-10-16
--------------------------------------------------------------------
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]
--------------------------------------------------------------------