John -

The easiest way is to use a logicsheet - the most popular database access
method from Cocoon, for instance, is Donald Ball's esql logicsheet.  There
was an LDAP logicsheet for Cocoon1, which Jeff Turner and I extended and
tweaked over time and ended up with an 'ELDAP' logicsheet which works well
with C1.  I am currently in the process of migrating an application which
uses it to C2, so I'll be making any necessary changes in the next couple of
days.  It _should_ work ok, I think - but I want to make sure everything
still works.  If you like, I can email you a copy as soon as I've finished
the testing process.


Regards,


Tim Bentley
Computer Associates
Senior Software Engineer, eTrust Directory Development Lab.
tel: +61 3 9727-8930
fax: +61 3 9727 3491
mailto:[EMAIL PROTECTED]

 
 -----Original Message-----
From: John Waugh [mailto:[EMAIL PROTECTED]]
Sent: Friday, 29 June 2001 1:30
To: '[EMAIL PROTECTED]'
Subject: RE: Extending C2


I've made a bit of progress, in that: 
taking xsp: 
the xsp logic gets put into a class for that document. 
the class is compiled and loaded up? 
the xsp file is processed and sax events generated (by the just made class) 
if it isn't xsp then you use the type flag in the sitmap generate tag to
tell cocoon to use another generator 
(btw I don't much like the look of the jsp generator, especially the way it
inits the jasper servlet for every? jsp page request, that would be an
overhead)


ok, so if I wanted to write an xsp page that used ldap, this would all be
handled by explicit java code an the serverpagesgenerator.  
So then what if I wanted to extend c2 to have the ldap support builtin (if
it isn't already, and there may be other protocols anyway...) i'd be writing
a Transformer still I think.  but how would I get this to be used by the
original xsp page?  would I have to define an ldap tag library or similar to
use in the xsp page that the transformer would map to? and then how would I
get variables into it?
thanks 
John 
-----Original Message----- 
From: John Waugh [mailto:[EMAIL PROTECTED]] 
Sent: 28 June 2001 15:47 
To: Cocoon-Users (E-mail) 
Subject: Extending C2 


Hi, 
If I wanted to extend cocoon2 to add ldap support, where would I start? 
I looked at the SQLTransformer, and can see how it's setup and takes sax
events and generates others, etc... but I can't make the mental leap to
writing an XSP page and the SAX events coming into the transformer (getting
stuck somewhere near XSP being translated into Java classes and exectued).
cheers 
John 

---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

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

Reply via email to