cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Upayavira ...@upaya.co.uk>
Subject Re: Bean as datasource
Date Thu, 22 Apr 2004 22:07:59 GMT
Craig Christophersen wrote:

>Thank you toto, and thank you Upayavira as well.
>Here is a bit more detail.
>After looking at the BetwixtTransformer I don't think it fits my needs
>because what I will get in an EJB or other object will be well formed xml,
>as a String.
>Where I am hung up is how to get that as the "src" in a generator. Is Castor
>the way to go? If so, does anyone have any examples.
>Another option might be for me to write a servlet to use as the "src" which
>handles getting the bean string.
>Anyway, I guess one main question is if I have the xml as a string, how can
>I put it into a generator?
>
Look at the JXTemplateGenerator. Using flow, you can do 
cocoon.sendPage("url", {"object"::object}; which will make your object 
available within your template. I believe you can get it to parse an XML 
string too, but I can't remember how I'm afraid.

Regards, Upayavira

>----- Original Message ----- 
>From: "toto" <enrico.maccias@free.fr>
>To: <users@cocoon.apache.org>
>Sent: Thursday, April 22, 2004 1:26 PM
>Subject: Re: Bean as datasource
>
>
>  
>
>>Craig Christophersen wrote:
>>
>>    
>>
>>>Hello;
>>>I need to be able to use an Entity bean (or other object) as a datasource
>>>rather than using a direct connection to the database or a file.  Any
>>>      
>>>
>info
>  
>
>>>on setting that up would be helpful.
>>>Thanks,
>>>Craig Christophersen
>>>Software Developer
>>>(406)533-6750
>>>craigch@synesis7.com
>>>
>>>
>>>
>>>
>>>      
>>>
>>Hello,
>>
>>    the BetwixtTransformer may help you to marshal entity beans
>>
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>>For additional commands, e-mail: users-help@cocoon.apache.org
>>
>>    
>>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>For additional commands, e-mail: users-help@cocoon.apache.org
>
>
>  
>



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


Mime
View raw message