I can't help but ask. Why do you want to use JSPs? At best, Cocoon tolerates them. At worst, they simply don't work. IMO there are much better templating approaches around.

Laurent Perez wrote:
I'm using JSPs an Cocoon 2.2, but I still don't understand if I did
the "right" integration : basically, my usecase requires custom JSP
tags to be able to retrieve XML from sitemap patterns. Under 2.1, I
wrote an integration method starting up a CocoonBean instance and use
resolveURI() on it, but it was quite ugly, so since I was already
using Spring, I switched to 2.2 and what I did was to add a setter for
a SourceResolver in my base custom tag class and then "dependency
inject" it via my applicationContext.xml in spring/ folder (my base
custom tag class uses a @Configurable to let the injections work).

The wiring works, all my custom tags can use the injected resolver,
but I HAD to enable the Cocoon JSPReader (map:match pattern="**.jsp",
map:read src(...) type="jsp") to deliver my jsps, otherwise the called
resolver would throw an exception saying it requires an Environment
setup in order to work.

So, it looks like I'm still using a 2.2 environment abstraction, but
your post confuses me : would the block:/ protocol ease my integration
?

thanks,
laurent


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

Reply via email to