You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Andy Lewis <aj...@ascii27.net> on 2003/01/10 15:30:27 UTC
RequestDispatcher with Cocoon
I have a need to, under specific circumstances, do a RequestDispatcher.forward out of Cocoon. I've
not found any support for this in Cocoon. Alternatives won't work since I need to do this while
preserving request attributes. I would expect to be able to code this as an Action without extreme
difficulty, but I thought I would thorw the idea to the list first and see if anyone has any
ideas, comments, or suggestions...(something other than "No! Don't do it!" :)
Many thanks....
--
"The heights of genius are only measurable by the depths of stupidity."
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org
Re: RequestDispatcher with Cocoon
Posted by Andy Lewis <aj...@ascii27.net>.
If I actually get it working, I would certinaly contribute it. Yeah, ugly, but probalby no really
CLEAN way to achieve it.
At any rate, many thanks for the guidance - I'll go with a reader. I suspected that using the
wrong componenet would cause me grief....
> Vadim Gritsenko wrote:
>
>> Andy Lewis wrote:
>>
>>> I have a need to, under specific circumstances, do a
>>> RequestDispatcher.forward out of Cocoon. I've
>>> not found any support for this in Cocoon. Alternatives won't work since I need to do this
>>> while
>>> preserving request attributes. I would expect to be able to code this as an Action without
>>> extreme
>>> difficulty, but I thought I would thorw the idea to the list first and see if anyone has any
>>> ideas, comments, or suggestions...(something other than "No! Don't do it!" :)
>>> Many thanks....
>>>
>>
>> Why do I think that reader is much better place for something like this (...assuming that
>> it's possible...)?
>
>
> Because forwarding delegates the production of the output to the target resource. But Cocoon
> expects the sitemap to produce something or an error is displayed.
>
> So the only place where such forwarding is possible is in a Cocoon component that feeds the
> output with abitrary binary data, and Cocoon names it a reader ;-)
>
> Andy, would you like to contribute a "ForwardReader", how ugly and servlet-tied as it may be ?
>
> Sylvain
>
> --
> Sylvain Wallez Anyware Technologies
> http://www.apache.org/~sylvain http://www.anyware-tech.com { XML, Java, Cocoon,
> OpenSource }*{ Training, Consulting, Projects }
>
>
>
> --------------------------------------------------------------------- To unsubscribe, e-mail:
> cocoon-dev-unsubscribe@xml.apache.org
> For additional commands, email: cocoon-dev-help@xml.apache.org
--
"The heights of genius are only measurable by the depths of stupidity."
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org
Re: RequestDispatcher with Cocoon
Posted by Vadim Gritsenko <va...@verizon.net>.
Sylvain Wallez wrote:
> Vadim Gritsenko wrote:
>
>> Andy Lewis wrote:
>>
>>> I have a need to, under specific circumstances, do a
>>> RequestDispatcher.forward out of Cocoon. I've
>>> not found any support for this in Cocoon. Alternatives won't work
>>> since I need to do this while
>>> preserving request attributes. I would expect to be able to code
>>> this as an Action without extreme
>>> difficulty, but I thought I would thorw the idea to the list first
>>> and see if anyone has any
>>> ideas, comments, or suggestions...(something other than "No! Don't
>>> do it!" :)
>>> Many thanks....
>>>
>>
>> Why do I think that reader is much better place for something like
>> this (...assuming that it's possible...)?
>
>
>
> Because forwarding delegates the production of the output to the
> target resource. But Cocoon expects the sitemap to produce something
> or an error is displayed.
>
> So the only place where such forwarding is possible is in a Cocoon
> component that feeds the output with abitrary binary data, and Cocoon
> names it a reader ;-)
Thanks for explaining my thoughts ;)
Vadim
> Andy, would you like to contribute a "ForwardReader", how ugly and
> servlet-tied as it may be ?
>
> Sylvain
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org
Re: RequestDispatcher with Cocoon
Posted by Sylvain Wallez <sy...@anyware-tech.com>.
Vadim Gritsenko wrote:
> Andy Lewis wrote:
>
>> I have a need to, under specific circumstances, do a
>> RequestDispatcher.forward out of Cocoon. I've
>> not found any support for this in Cocoon. Alternatives won't work
>> since I need to do this while
>> preserving request attributes. I would expect to be able to code this
>> as an Action without extreme
>> difficulty, but I thought I would thorw the idea to the list first
>> and see if anyone has any
>> ideas, comments, or suggestions...(something other than "No! Don't
>> do it!" :)
>> Many thanks....
>>
>
> Why do I think that reader is much better place for something like
> this (...assuming that it's possible...)?
Because forwarding delegates the production of the output to the target
resource. But Cocoon expects the sitemap to produce something or an
error is displayed.
So the only place where such forwarding is possible is in a Cocoon
component that feeds the output with abitrary binary data, and Cocoon
names it a reader ;-)
Andy, would you like to contribute a "ForwardReader", how ugly and
servlet-tied as it may be ?
Sylvain
--
Sylvain Wallez Anyware Technologies
http://www.apache.org/~sylvain http://www.anyware-tech.com
{ XML, Java, Cocoon, OpenSource }*{ Training, Consulting, Projects }
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org
Re: RequestDispatcher with Cocoon
Posted by Vadim Gritsenko <va...@verizon.net>.
Andy Lewis wrote:
>I have a need to, under specific circumstances, do a RequestDispatcher.forward out of Cocoon. I've
>not found any support for this in Cocoon. Alternatives won't work since I need to do this while
>preserving request attributes. I would expect to be able to code this as an Action without extreme
>difficulty, but I thought I would thorw the idea to the list first and see if anyone has any
>ideas, comments, or suggestions...(something other than "No! Don't do it!" :)
>Many thanks....
>
Why do I think that reader is much better place for something like this
(...assuming that it's possible...)?
Vadim
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org