Dear All,
I have a set of rules defined in JESS and it works in Java Applet or
jess.Main . I would like to ask how can I apply them to JSP?
As it is in interactive mode, just like the example rule animal.clp, How can I apply the rules such as "animal.clp" and "animal.dat" in JSP without initializing the Rete Class using (reset)(run) every time?
The short answer is to read the book "Jess In Action" by the author of the software you are using.
Otherwise, do the following:
1) Break up your "interactivity" into chunks each of which will fit neatly onto a web page because it's a web app not a command line.
2) Use a session object to store the Rete object. Every page in your app can access it, but remember to call (reset) at the start of every session.
3) Your rules can exchange information with the servlet in several ways but the most straightforward option is to use (store) and (fetch).
Good luck!
alan
P.S. You might want to buy the book anyway as I expect that many problems you *will* run into are already covered at length.
-------------------------------------------------------------------- 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] --------------------------------------------------------------------