cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Piroumian, Konstantin" <KPiroum...@flagship.ru>
Subject Re: JSP Reader
Date Tue, 24 Jul 2001 09:27:40 GMT
> Konstantin,
>
> Can you please explain a bit? Generator+Serializer=Reader, so you won't
need a special JSPReader.
> Can you explain why you need one?

Sure.
The problem is that we are using JSP not for XML generation, but for final
HTML output. So, I can't use JSPGenerator because the output of our pages is
not XML comformant and there is no need to generate SAX events. The only
thing I need is to be able to read the output stream of the JSP servlet
(just like HTMLReader does) and output it as is. In JSPGenerator you get the
output and set it as an input for the parser - I don't need the second step.
Currently we are using redirects to JSP servlet to be able to performs
actions and then show the page, but it's an ugly, unsecure and uneffective
way of flow control.

P.S. Don't ask me why we are using such uncommon approach - it wasn't my
decision - there were a number of reasons for that. One of them was the huge
number of JSP developers against a very few (almost absence) of Cocoon
developers or even XML/XSL developers.

>
> Thanks,
> dims
>
> --- "Piroumian, Konstantin" <KPiroumian@flagship.ru> wrote:
> > Hi, dims and team!
> >
> > Just took a look at the JSPGenerator and it occured to me that it'll be
easy
> > to extract from the stream reading part and make a JSP reader. It can be
> > useful for a JSP based site controlled by Cocoon sitemap. (We are at out
> > project using this approach). Now we are using an ugly way of flow
control
> > (redirects to JSP servlet) after sitemap called appropriate actions.
> >
> > Will anybody of the authors of JSPGenerator implement this? If no, then
I'll
> > try it do it myself.
> >
> > Best regards,
> >
> > Konstantin Piroumian
> > Software engineer
> >
> > Protek Flagship LLC
> > Phone: + 7 095 795 0520 (add. 1288)
> > Fax: + 7 095 795 0525
> > E-mail: kpiroumian@flagship.ru
> > http://www.protek.com
> >
>
>
> =====
> Davanum Srinivas, JNI-FAQ Manager
> http://www.jGuru.com/faq/JNI
>
> __________________________________________________
> Do You Yahoo!?
> Make international calls for as low as $.04/minute with Yahoo! Messenger
> http://phonecard.yahoo.com/
>

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message