Hi,

I think my problem has to do with the path to the source class that I'm referencing. Where should the class I'm referencing be relative to cocoon in order for cocoon to recognize it? Could I include a .jar instead? Do I need to set anything in cocoon.xconf or the sitemap?

Thanks for any advice!
Tricia

On Tue, 27 Jun 2006, Tricia Williams wrote:

Hi All,

I have a Cocoon pipeline which could be done with a lot of awkward branching, or use Flowscript to abstract out some of the complexity and reuse a java class that was built for a similar purpose. The awkwardness and complexity comes from the need to validate and in some cases re-form the parameters to call another pipe. The Flowscript would use the class I mentioned to form a uri and then call coocoon.redirectTo(...) to redirect to that page.

  I've implemented the Flowscript idea but am getting the following error:
org.mozilla.javascript.EvaluatorException: "file:/c:/Development/martini-peel/cocoonproject/flowscript/martini-flow.js", line 44: Not a Java class: [JavaPackage org.martini.search.PeelQueryComponent]

I'm using: importClass(Packages.org.martini.search.PeelQueryComponent); To import my class.

Does anyone have an understanding of what is causing the error I'm getting and can offer me a solution. Is there an alternate way to build the uri with the validation and transformation of parameters in Cocoon?

Thanks,
Tricia

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to