[rules-users] Using Drools with JSP application.

Swindells, Thomas TSwindells at nds.com
Mon Nov 14 07:28:08 EST 2011


Drools is just a java library implementing some logic.
The question you are asking is basically how do I write a JSP web application that uses some none JSP specific logic.
It's not really any different to how you would write a JSP web app to read some records from a database, do some processing and then display the results on the UI. There are plenty of (none drools specific) tutorials on how to do this.

The basic pattern is:
You receive a request.
You create a new stateless knowledge session (or a new stateful session, or even load an existing one depending on your requirements).
You insert whatever data the requests says you should
You run the rules.
You extract the results
You use process and return the results as necessary.

Thomas

> -----Original Message-----
> From: rules-users-bounces at lists.jboss.org [mailto:rules-users-
> bounces at lists.jboss.org] On Behalf Of sachintaware
> Sent: 14 November 2011 12:17
> To: rules-users at lists.jboss.org
> Subject: Re: [rules-users] Using Drools with JSP application.
>
> Hi Mike
>
> Waiting to hear from you.I am stuck a bit on these issue.
>
> Please point me to some example,for drools integrated with a simple jsp
> web-application(even standalone will do.).
> I want to display the result of rules on some UI(A web console,like Html-
> jsp).Is it possible?If yes,how??
>
> Thanks and Regards
> Sachin
>
> --
> View this message in context: http://drools.46999.n3.nabble.com/Using-
> Drools-with-JSP-application-tp3498955p3506664.html
> Sent from the Drools: User forum mailing list archive at Nabble.com.
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users


**************************************************************************************
This message is confidential and intended only for the addressee. If you have received this message in error, please immediately notify the postmaster at nds.com and delete it from your system as well as any copies. The content of e-mails as well as traffic data may be monitored by NDS for employment and security purposes. To protect the environment please do not print this e-mail unless necessary.

NDS Limited. Registered Office: One London Road, Staines, Middlesex, TW18 4EX, United Kingdom. A company registered in England and Wales. Registered no. 3080780. VAT no. GB 603 8808 40-00
**************************************************************************************




More information about the rules-users mailing list