You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Oleg V Alexeev <go...@penza.net> on 2002/03/06 10:22:12 UTC

Cocoon as visualisation framework.

Hello cocoon-users,

  Can anybody tell be any way to solve a problem with help of Cocoon -
  I want to use Cocoon as base for View level in Web-application. Now
  I use Struts as MVC framework but JSP is not the best choice to
  create and support web-resource. Is there any way to use Cocoon as
  mechanism to generate HTML content from beans from request?
  Or another way - in Action-classes I can serialize beans to the DOM
  or SAX stream - is there any ability to retrieve ContentHandler for
  response from Cocoon and pass all serialized beans to it?

-- 
Best regards,
 Oleg                          mailto:gonza@penza.net



---------------------------------------------------------------------
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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>


Re: Cocoon as visualisation framework.

Posted by "Piroumian, Konstantin" <KP...@flagship.ru>.
> Hello cocoon-users,
>
>   Can anybody tell be any way to solve a problem with help of Cocoon -
>   I want to use Cocoon as base for View level in Web-application. Now
>   I use Struts as MVC framework but JSP is not the best choice to
>   create and support web-resource. Is there any way to use Cocoon as
>   mechanism to generate HTML content from beans from request?

Of course there is. You can use either Castor (there is a Castor transformer
waiting to be added to CVS) or XSP to generate XML from your beans. Another
possibility is to use a logicsheet (like a taglib in JSP).

>   Or another way - in Action-classes I can serialize beans to the DOM
>   or SAX stream - is there any ability to retrieve ContentHandler for
>   response from Cocoon and pass all serialized beans to it?

This is how transformers/generators work. Generators start XML generation
pipeline using any source you need: DB, file, beans in request or something
else. Transformers are used to transform XML input to another XML, e.g.:
This is the input to Castor transformer:
<root>
    <castor:useBean name="MyBean" />
</root>

The result can look like:
<root>
    <MyBean id="1123">
        <Property>A cool property</Property>
    <MyBean>
</root>

Regards,
    Konstantin Piroumian

>
> --
> Best regards,
>  Oleg                          mailto:gonza@penza.net
>
>
>
> ---------------------------------------------------------------------
> 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: <co...@xml.apache.org>
> For additional commands, e-mail: <co...@xml.apache.org>
>

---------------------------------------------------------------------
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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>


Re: AW: Cocoon as visualisation framework.

Posted by Oleg V Alexeev <go...@penza.net>.
Hello mugwump,

I whant to solve problem without changing of core Struts API, but stxx
uses its own extended version of ActionServlet.

Wednesday, March 06, 2002, 1:45:30 PM, you wrote:

mvd> If you have already built some applications with struts, maybe stxx(
mvd> http://www.openroad.ca/opencode/ ) is for you: it enhances struts with
mvd> functionalities to have an action produce XML and forward it to one or more
mvd> Stylesheets...

>> -----Ursprungliche Nachricht-----
>> Von: Oleg V Alexeev [mailto:gonza@penza.net]
>> Gesendet: Mittwoch, 6. Marz 2002 10:22
>> An: cocoon-users@xml.apache.org
>> Betreff: Cocoon as visualisation framework.
>>
>>
>> Hello cocoon-users,
>>
>>   Can anybody tell be any way to solve a problem with help of Cocoon -
>>   I want to use Cocoon as base for View level in Web-application. Now
>>   I use Struts as MVC framework but JSP is not the best choice to
>>   create and support web-resource. Is there any way to use Cocoon as
>>   mechanism to generate HTML content from beans from request?
>>   Or another way - in Action-classes I can serialize beans to the DOM
>>   or SAX stream - is there any ability to retrieve ContentHandler for
>>   response from Cocoon and pass all serialized beans to it?
>>
>> --
>> Best regards,
>>  Oleg                          mailto:gonza@penza.net
>>
>>
>>
>> ---------------------------------------------------------------------
>> 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: <co...@xml.apache.org>
>> For additional commands, e-mail: <co...@xml.apache.org>
>>


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

mvd> To unsubscribe, e-mail: <co...@xml.apache.org>
mvd> For additional commands, e-mail: <co...@xml.apache.org>



-- 
Best regards,
 Oleg                            mailto:gonza@penza.net



---------------------------------------------------------------------
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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>


AW: Cocoon as visualisation framework.

Posted by mu...@vierundsechzig.de.
If you have already built some applications with struts, maybe stxx(
http://www.openroad.ca/opencode/ ) is for you: it enhances struts with
functionalities to have an action produce XML and forward it to one or more
Stylesheets...

> -----Ursprungliche Nachricht-----
> Von: Oleg V Alexeev [mailto:gonza@penza.net]
> Gesendet: Mittwoch, 6. Marz 2002 10:22
> An: cocoon-users@xml.apache.org
> Betreff: Cocoon as visualisation framework.
>
>
> Hello cocoon-users,
>
>   Can anybody tell be any way to solve a problem with help of Cocoon -
>   I want to use Cocoon as base for View level in Web-application. Now
>   I use Struts as MVC framework but JSP is not the best choice to
>   create and support web-resource. Is there any way to use Cocoon as
>   mechanism to generate HTML content from beans from request?
>   Or another way - in Action-classes I can serialize beans to the DOM
>   or SAX stream - is there any ability to retrieve ContentHandler for
>   response from Cocoon and pass all serialized beans to it?
>
> --
> Best regards,
>  Oleg                          mailto:gonza@penza.net
>
>
>
> ---------------------------------------------------------------------
> 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: <co...@xml.apache.org>
> For additional commands, e-mail: <co...@xml.apache.org>
>


---------------------------------------------------------------------
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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>