cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brett McLaughlin <brettmclaugh...@earthlink.net>
Subject Re: Difficulties with taglib
Date Fri, 14 Apr 2000 20:25:23 GMT


"Kolb, Mark" wrote:
> 
> Brett,
> 
> Thank you for the pointers.  I am not java fluent yet though I have
> programmed in C for a while.  If I try your inline approach as on page 25
> the XSP Java Compiler complains about syntax issues
> 
> java.lang.Exception: XSP Java Compiler: Compilation failed for _test1.java
> 69: '}' expected.
>      );
> 71: Statement expected.
>         private static int numHits = 0; ^
> 78: Identifier expected.
>       document.createTextNode("\n  \n    ")                             ^
> 3 errors
> 
> Perhaps I have an issue with my setup. I am running Cocoon 1.6.

hmmm... my gut feeling is this is your problem (1.6)... XSP had just
come out in 1.6.  Can you upgrade to 1.7x?

-brett

> 
> By the way the book looks great.  Good Luck with it!
> 
> "Kolb, Mark" wrote:
> >
> > Alex,
> >
> > Thanks that did help.  It also led to other questions.  What I am angling
> > for is an example of a tag library to experiment with.  In particular, I
> am
> > trying to setup my own custom Library to call to.  cocoon.properties ask
> for
> > an entry to do this and though I got it to work I lack the knowledge to
> > understand the syntax of these references.  When I make the reference I
> get
> > a clean, but empty response.
> 
> Not to toot my own horn, but have you checked out my beta chapter
> online?  It walks you through this exact process.
> 
> http://www.oreilly.com/catalog/javaxml/chapter/ch09.html
> 
> Let me know if that doesn't help, I can walk you through it as well.
> 
> -brett
> 
> >
> > Attached is an example of calling the util taglib.  There are two examples
> > in
> > the file, one does a dynamic util:include-uri, the other does a static
> > util:include-file.
> > Hope it helps.  If you're still having problems make sure you have the
> > taglibs
> > defined in your cocoon.properties file.  Cocoon comes with these setup
> > out-of-the-box, but it might be something to check.
> >
> > Alex.
> >
> > "Kolb, Mark" wrote:
> >
> > > Hi all,
> > >
> > > I am having trouble getting a call to a tag library to function via XSP.
> > I
> > > am able to use imbedded techniques but using the examples on the XSP
> page
> > > for tag libraries fail for me.  If anybody could provide an example of a
> > > taglib call and the called library it would really help me.  Many thanks
> > in
> > > advance.
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> > For additional commands, e-mail: cocoon-users-help@xml.apache.org
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: cocoon-users-help@xml.apache.org
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: cocoon-users-help@xml.apache.org

Mime
View raw message