Hi,
A lot will depend on how the servlet is to be used - servlets are based around HTTP
comms, so if you're wanting e.g. user interaction you will have fun sorting out
what messages to send from form post operations etc. It is remarkably
straightforward to stick an application that doesn't have a lot of GUI stuff - you
pretty much just take the code from within your main class and bung it in a servlet
class e.g.
public class WasMyMain extends HttpServlet{
I haven't really looked at it, but I guess that you would be able to do redirection
from the Jess UI to HTTP, but this could get a bit fiddly - I'd be tempted to strip
down the front end a bit first and then build a HTTP-based GUI from scratch (no as
bad as it sounds - doesn't need much more than HTML).
I don't know if you've already done this, but it can take a while to get the
servlet runner (Jserv or whatever) going right on your web server - what I'm trying
to say is, get HelloWorldServlet working first before attacking the Jess code.
The Java Tutorial is pretty good on servlets :
http://java.sun.com/docs/books/tutorial/servlets/index.html
and there's the mailing list :
[EMAIL PROTECTED]
I'd love to hear how you get on.
Cheers,
Danny.
Message UK wrote:
> Hello. I'm hoping to write a servlet which will run JESS, and I'd like to
> know if I can do so **simply**, by taking the output of jess.Main and have
> the servlet use this output. I read that the output stream can be altered,
> so rather than standard output I'd send it to the servlet. Any help? I have
> seen an example of a servlet by RF Grove but that's a bit too complex for my
> needs!
>
> Many thanks. Debbie Lampon
>
> ______________________________________________________
> Get Your Private, Free Email at http://www.hotmail.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]
> ---------------------------------------------------------------------
---------------------------------------------------------------------
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]
---------------------------------------------------------------------