> > You can create a reader for this purpose. I needed something like that
to
> > get direct output from a JSP page (that is generating HTML, not XML) and
> > have implemented the JSPReader. Now you can use it like this:
> >
> >  <map:match pattern="old_application/**">
> >     <map:act type="checkSession"/>
> >  <map:read src="/jsp/page.jsp"/>
> >     </map>
> >     <map:redirect-to uri="login.html"/>
> >  </map:match>
> >
> > So, I hope you got the idea.
> >
> > Btw, developers, there are ServletGenerator and JSPGenerator componenets
> > that implement almost the same thing: get output from a servlet then
> > generate XML from it. JSPGeneretor uses JSPEngine for that. Maybe it'll
be
> > better to have something like ServletComponenet and use it either in
> > generators or readers that have to interact with other servlets?
> >
>
> For purposes of migration, we're looking at starting from HTML JSPs, and
your
> JSPReader sounds like just the thing.  Is it generally available?  And,
> frankly, why is it not a member of the Cocoon2 project?  (The current
> documentation on most of the Generators is sort of poor, as is.)
>

Yes, it is availavle in C2.1-dev branch. I didn't send a patch for C2.0
cause it seemed to me that nobody is really interested in it. Just now I've
send the source of JSPReader adapted for C2.0 to cocoon-users mail list.

What do you mean by being a member of Cocoon2 project? JSPReader is just a
Cocoon component and if it is really needed to anybody else except me then
I'll spend a little time to improve it and provide some documentation.

You can find a sample of usage in C2.1-dev branch.

Regards,
    Konstantin Piroumian

> Judson
>
> > Regards,
> >     Konstantin Piroumian
>


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

Reply via email to