[daisy] Adding specific business rules in a jar file

Bruno Dumon bruno at outerthought.org
Fri Jul 28 09:04:30 CDT 2006


On Fri, 2006-07-28 at 13:59 +0200, vincent lamareille wrote:
> Hi,
> 
> I have a question about creating extensions to daisywiki, though I am not
> sure if what I am doing is good practice or if there are better approachs.
> 
> Since the business rules for daisywiki extensions in my project may be
> invoked in a repetitive way, I tried to develop java classes to encapsulate
> them.
> I created a jar file containing utility classes and put it in WEB-INF/lib,
> but I receive a message from the javascript at runtime:
> 
> Error calling flowscript function duplicate
> ReferenceError: "DaisyBusinessDocument" is not defined.

This should work.

Make sure to restart the wiki after adding or updating the jar.

I'm also assuming you know the basic of jars, i.e. the file path in the
jar should correspond to the package of the class.

-- 
Bruno Dumon                             http://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
bruno at outerthought.org                          bruno at apache.org



More information about the daisy mailing list