On Mar 27, 2007, at 2:29 AM, [EMAIL PROTECTED] wrote:

Hi,

I have Jess embedded in a Servlet and was wondering if there was an
alternative to getting Jess to printout to the console window like for
example printing to the Servlet web page for times when the console is not
available for viewing?

You could just pass the ServletOutputStream into Jess and use its methods directly, or if you want to get fancy, the Jess manual describes how to write your own "output router", the mechanism for using Jess's "printout" function to print to any arbitrary Java stream (it's very easy.)


---------------------------------------------------------
Ernest Friedman-Hill
Advanced Software Research          Phone: (925) 294-2154
Sandia National Labs                FAX:   (925) 294-2234
PO Box 969, MS 9012                 [EMAIL PROTECTED]
Livermore, CA 94550                 http://www.jessrules.com

--------------------------------------------------------------------
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