> 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:[EMAIL PROTECTED]
>
>
>
> ---------------------------------------------------------------------
> 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: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
>

---------------------------------------------------------------------
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: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>

Reply via email to