Joerg Heinicke wrote
On 12.05.2004 19:43, Christian Rosenberger wrote:
My sitemap would like this:
Generator => call flowscript => user doing updates => flowscript calls transformer
I get XML from my backend java class. This xml data I want to use to present a form with prefilled values. The user make changes and the changed data should be inserted in a XML file which is sent by another
java class back to the backend. (same format, but other values).
To get data from backend I wrote a generator and to send it back to backend I wrote a transformer.
To complicate IMO. Why not having a Data Transfer Object (a simple data bean)? You can bind to that bean, load and save!
Why use a DTO if the woody binding can also bind to XML? Is there a alternative to woody binding? Want to use woody for validation.
No need for a generator and a transformer.
Because I need to send data as XML to my backend (XML database). The transformer sends the plain XML file filled in a XQuery to the backend. So transforming it into a DTO and back would be no good idea in my opinion. The data I got from backend is in XML format, so why transform it in a bean?
Furthermore I can use generator and transformer also for other queries to me backend. (so it is just a reuse of classes in this change-values-process).
Woody XML binding would be great, if it works ;-)
Don't know why my URI points to a null value if i log the values in my flowscript.
Log output:
INFO (2004-05-12) 19:06.05:553 [flow] (/cocoon/work/form2xml.flow) http8080-Processor1/FOM_Cocoon$FOM_Log: HELLO FLOW XML
INFO (2004-05-12) 19:06.05:553 [flow] (/cocoon/work/form2xml.flow) http8080-Processor1/FOM_Cocoon$FOM_Log: DocumentURI: http://localhost/info.xml
INFO (2004-05-12) 19:06.05:553 [flow] (/cocoon/work/form2xml.flow) http8080-Processor1/FOM_Cocoon$FOM_Log: URI:http://localhost/info.xml
INFO (2004-05-12) 19:06.05:613 [flow] (/cocoon/work/form2xml.flow) http8080-Processor1/FOM_Cocoon$FOM_Log: IS:[EMAIL PROTECTED]
INFO (2004-05-12) 19:06.05:613 [flow] (/cocoon/work/form2xml.flow) http8080-Processor1/FOM_Cocoon$FOM_Log: Test:[#document: null]
INFO (2004-05-12) 19:06.05:613 [flow] (/cocoon/work/form2xml.flow) http8080-Processor1/FOM_Cocoon$FOM_Log: XML1: [#document: null]
Christian
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
