Re: Business-Process-Management with Cocoon?
Hi all, thanks for all your answers at this time. Meanwhile we analyse different Open Source implementations of the BPEL standard. We know that there are different specifications of business process languages. But from our point of view the only relevant to become a general standard ist BPEL that is a mix between IBM and Microsoft specification. Almost any commercial BPMS tool implements this standard too. For anyone who is interested in this topic there is another Open Source tool that implements the BPEL standard that is called ActiveBPEL (http://www.activebpel.org). Markus oliver charlet schrieb: Hi Markus, it is a late answer, but if you did not yet make up your mind about an BPM Tool - this is a very serious desicion to do - , go to http://www.jbpm.org and check the extensive sources about the subject. Although the site is about one solution, that is more and more mentioned as to be the most promissing, I suggest, that you follow some of the discussions you can find there under http://www.jbpm.org/state.of.workflow.html. Check the links at the end of this article to get more opinions. For me the most important conclusion is, that it is important to understand, that there is *NO* standard BPM language at the moment. Most of the existing (XML) languages are not really sufficiant enough to be a real standard. good look, :olli Markus Heussen schrieb: Hi! Can anybody point me to Open Source BPM Systems using comfortable user (web-) interfaces to design business processes in standard BPL. In a new project starting next week we need such a tool to define our business processes consisting off several Web Service calls. One tool I found is Twister. For informations about it look at http://www.smartcomps.org/twister/. Does anybody have experiences in BPMS and can link me to free alternatives. Maybe there exists a Cocoon based BPM System? Last we would prefer because we started using Cocoon about 2 years ago. Thanks for any hint! Markus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Business-Process-Management with Cocoon?
Hi! Can anybody point me to Open Source BPM Systems using comfortable user (web-) interfaces to design business processes in standard BPL. In a new project starting next week we need such a tool to define our business processes consisting off several Web Service calls. One tool I found is Twister. For informations about it look at http://www.smartcomps.org/twister/. Does anybody have experiences in BPMS and can link me to free alternatives. Maybe there exists a Cocoon based BPM System? Last we would prefer because we started using Cocoon about 2 years ago. Thanks for any hint! Markus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [FORMS] overriding default stylesheets
I do it like this: sitemap.xmap: map:match type=wildcard pattern=*.form map:generate type=file src=forms/templates/{1}.template.xhtml.xml/ map:transform type=forms/ map:transform type=i18n/ map:transform type=xslt src=forms/stylesheets/form.xhtml.xsl/ map:serialize type=xml/ /map:match form.xhtml.xsl: !--+ | This parts includes the default form stylesheets | that are copied from the cocoon forms block to | the stylesheets folder under controlcenter/forms. | This stylesheets processes the standard stylesheets | and customizes with the templates you can see below. +-- xsl:include href=../../../resources/stylesheets/forms.fieldstyling.xhtml.xsl/ xsl:include href=../../../resources/stylesheets/forms.pagestyling.xhtml.xsl/ ... ... ... !--+ | Override common stuff like fi:validation-message, | @required. +-- xsl:template match=fi:* mode=common xsl:if test=@required='true' span class=forms-field-required#160;*#160;/span /xsl:if xsl:apply-templates select=fi:validation-message/ /xsl:template Hope this helps. Merry X-mas! Markus Ben Anderson schrieb: Hi, Does anyone have an elegant solution for overriding the default stylesheets. Basically I don't want to modify the sample stylesheets, because I still want to these to be used as is for most of my forms. I want to be able to specify somehow that the xsl can be overridden, but isn't by default. This is the solution I came up with, but it's not working. Perhaps someone can help me figure out why or maybe point me in a different direction... sitemap.xmap !-- in this example, we'll say {1} is test -- map:match pattern=forms/task/*-display map:select type=resource-exists map:when test=resources/forms-samples-styling-{1}.xsl map:transform src=resources/forms-samples-styling-{1}.xsl label=debug3/ /map:when map:otherwise map:transform src=resources/forms-samples-styling.xsl/ /map:otherwise /map:select This part seems to be working ok... forms-samples-stying-test.xsl -- I changed the following line: xsl:include href=forms-page-styling.xsl/ to: !-- If I do get this working, a parameter would probably work better than the hard-coded test, then this whole thing can probably be generic -- xsl:include href=forms-page-styling-test.xsl/ forms-page-styling-test.xsl - xsl:import href=forms-page-styling.xsl/ xsl:template match=fi:group[fi:styling/@layout='columns'] mode=group-layout table border=0 summary={fi:hint} tbody steel-city-football xsl:apply-templates select=fi:items/* mode=group-columns-content/ /steel-city-football /tbody /table /xsl:template It's this last step that isn't working. I'm relatively new to xsl, but I thought the import makes the stylesheet function the same as the imported stylesheet except for what you override, but this is the part that's broken because nothing is being transformed at all. Any ideas? Thanks and Merry Christmas Eve, Ben - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Forms: how to apply modifications to forms-page-styling.xsl
Include the forms-page-styling.xsl and forms-field-styling.xsl in your own forms.xhtml.xsl stylesheet. Now you can overwrite templates in this forms.xhtml.xsl stylesheet. Markus Enrico Migliore schrieb: Hi guys, I'm using the Cocoon Forms framework. All works well, except I need to modify the default HTML layout contained in forms-page-styling.xsl. This layout generates an HTML file. I need to integrate a form into an HTML page generated by my application. thanks, Enrico - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [CForms] booleanfield, on-value-change = display form fields
Joerg Heinicke schrieb: Thanks for your answer! On 24.11.2004 09:55, Markus Heussen wrote: I'm convinced I did it in a wrong way. But I'm still trying to solve my problem by trial and error principle. Could you help me, please? I need a form that displays a couple of form fields. One field is a check box (booleanfield). If that box is checked I have to display some additional form fields beneath that check box. A boolean field should also be submit-on-change-able. This means adding the following code snippet to your template should be part I: ft:widget id=aBooleanField fi:styling submit-on-change=true/ /ft:widget I've done it like this. How can I solve it using unions, structs and classes? I'm using the jx-macro sample style for my forms of Cocoon 2.1.6. This example shows what I want to do. But a selections-list is used instead of a booleanfield. Don't know about this sample, but it should be similar. Referencing the boolean field as case widget should work IIRC. I have done it myself, I could have a look at latest at monday. The rest should be the same like the selection list sample. Trying it in different ways I get ClassCastExceptions all the time. I'm looking forward for a running code snipped. Thanks for your help, Joerg! Joerg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[CForms] booleanfield, on-value-change = display form fields
I know how to display form fields depending on an option selected in a dropdown list. But if I try to do the same using a booleanfield I get a ClassCastException. Anyone there who can explain me or give some code examples about displaying form fields after checking a checkbox? Many thanks! Markus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: WordML in cocoon
use html generator and transform the xhtml to wordml using xslt Oleksandr Filatov schrieb: Hello all! Does anybody have experience with creation documents for MS Word 2003 in WordML format? I have to write something about transformation of html into wordml. What the best way to solve it? I think, that it will looks like next: 1. create custom reader (or smth.) that reads html from source, 2. turn it into wellformed document (xhtml) 3. and transform it into wordml by xsl transformation. Maybe somebody have other suggestions? Also interested in creating custom taglib that describes layout of word document. Can somebody share your own experience in working with creation documents for ms word? Regards, Oleksandr - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Champagne] Cocoon comes in 2nd at Best Practice Award
Hi Matthew, we knew before that Cocoon and SN are the right choices for our own projects, too ;-) So congratulation to everbody who cares about Cocoon and especially for the investments of your company. In future we also will give some components to the project. So lets all together work on the first place :-) Greetings, Markus Matthew Langham schrieb: Hi, A Cocoon based portal solution developed by Raiffeisen Zentral Bank Austria und Raiffeisen Informatik (with a little help from us) took 2nd place at the recently held Best Practice Award in Germany (German: http://soss.lightwerk.com/content/award/index_ger.html). Congratulations to the whole community and another reason for a few drinks in Gent :-) !! Matthew Competence Center Open Source - SN AG Tel.: +49-5251/1581-30 netBank solutions Fax : +49-5251/1581-71 Klingenderstr. 5mailto:[EMAIL PROTECTED] D-33100 Paderborn http://www.s-und-n.de - - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[ESQL] sql exception: invalid cursor state
Hi. I changed my application from Cocoon-2.0.4 under SDK 1.3.2 to Cocoon-2.1.5.1 and SDK 1.4.2. Without changing anything in my code now I have problems accessing an access db using the esql logicsheet. Somebody there who can help me resolving this problem? The following exception occurs when I use the esql logicsheet for accessing an microsoft access database using SUN's sun.jdbc.odbc.JdbcOdbcDriver bridge. This exception occurs only if I use the DISTINCT or GROUP BY sql statements. org.apache.cocoon.ProcessingException: Exception in ServerPagesGenerator.generate(): org.apache.avalon.framework.CascadingRuntimeException: Error getting ascii data for column HSNName cause: java.sql.SQLException: [Microsoft][ODBC Driver Manager] Ungültiger Cursorstatus (this is german for invalid cursor state) Original Exception: org.apache.avalon.framework.CascadingRuntimeException: Error getting ascii data for column HSNName at org.apache.cocoon.components.language.markup.xsp.EsqlHelper.getAscii(EsqlHelper.java:270) at org.apache.cocoon.www.matrix.areas._050.xsp.enter_level_4_gen_xsp.generate(org.apache.cocoon.www.matrix.areas._050.xsp.enter_level_4_gen_xsp:1502) Thanks for all responses, Markus :-) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[portal] Bug in portal-page.xsl
Playing around with Cocoon's portal engine I found a tiny bug. Switching the sitemaps global style variable to skins/basic/ an error occured. There is the xsl:param name=user/ element missing in the portal-page.xsl. I'm using Cocoon 2.1.5.1. Markus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Browser selector and overview of user agents
Hi! Currently I'm developing a web application for mobile phones publishing iHTML and WML syntax using Apache Cocoon 2.1.5. I made the experience that the different devices interpret the WML specification in different ways. So I need to use Cocoon's browser selector to identify the mobile device by its user agent and I need to handle the different behaviors. Does anybody know if there is a free accessible overview of the different mobiles their user agents and their different interpretations of the WML or iHTML standard? Any help would be appreciated! Greetings, Markus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Programmatically setting fd:output widget values
Hi Steve, try form.getChild(outputWidgetId).setValue(value); wihin your flowscript. Markus Steve Schwarz schrieb: Hi I was reading in the WoodyWidgetReference that you can set the value of output widgets either by binding or programmatically. I'd like to create a widget into which I set user messages from my flowscript but I can't find an example of how to do it w/o using a binding. Thanks, Steve _ MSN Life Events gives you the tips and tools to handle the turning points in your life. http://lifeevents.msn.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Programmatically setting fd:output widget values
You can also set it at the form model, try the following: var form = new Form(...); var model = form.getModel(); model.outputWidgetId = value; Markus Steve Schwarz schrieb: Hi I was reading in the WoodyWidgetReference that you can set the value of output widgets either by binding or programmatically. I'd like to create a widget into which I set user messages from my flowscript but I can't find an example of how to do it w/o using a binding. Thanks, Steve _ MSN Life Events gives you the tips and tools to handle the turning points in your life. http://lifeevents.msn.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Accessing attributes in the sitemap
Try the session input module: http://wiki.cocoondev.org/Wiki.jsp?page=InputModules Markus -Original Message-From: Craig ChristophersenSent: Monday, June 07, 2004 8:11 PMTo: [EMAIL PROTECTED]Subject: Accessing attributes in the sitemap I have set some session attributes in an action and would like to be able to access them directly in the pipeline. I can get these attributes from another action and put them in a map for each request, but is there a way to make them available in the pipelines without calling another action? This is for having the first name and some other session type stuff available. Any help on this would be most appreciated. Craig Christophersen[EMAIL PROTECTED]
Namespace problem while publishing WML pages to some mobiles
Hi. My job is to publish WML pages to mobiles. I generate the source WML syntax using the serverpages generator. Testing it I realized that the namespace declaration in the root wml element is a problem for some mobiles like panasonic. The page cannot be displayed with the following structure: wml xmlns:xsp=http://apache.org/xsp; head meta name=character-set=iso-8859-1 content=charset/ meta forua=true http-equiv=Cache-Control content=max-age=0/ meta forua=true http-equiv=Cache-Control content=no-store/ /head card id=login title=... ... Removing the namespace declaration (xmlns:xsp=http://apache.org/xsp;) manually, the page can be displayed. Therefore this problem is a general problem for me because using the cinclude or cforms or i18n transformer the xmlns declaration is always put to the output. How can I prevent this behavior? Thanx for any help! Markus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Namespace problem while publishing WML pages to some mobiles
Thank you very much for that hint! I will add a transformer to solve my problem. Markus -Original Message- From: Joerg Heinicke [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 27, 2004 11:30 PM To: [EMAIL PROTECTED] Subject: Re: Namespace problem while publishing WML pages to some mobiles On 27.04.2004 23:18, Markus Heussen wrote: Hi. My job is to publish WML pages to mobiles. I generate the source WML syntax using the serverpages generator. Testing it I realized that the namespace declaration in the root wml element is a problem for some mobiles like panasonic. The page cannot be displayed with the following structure: wml xmlns:xsp=http://apache.org/xsp; head meta name=character-set=iso-8859-1 content=charset/ meta forua=true http-equiv=Cache-Control content=max-age=0/ meta forua=true http-equiv=Cache-Control content=no-store/ /head card id=login title=... ... Removing the namespace declaration (xmlns:xsp=http://apache.org/xsp;) manually, the page can be displayed. Therefore this problem is a general problem for me because using the cinclude or cforms or i18n transformer the xmlns declaration is always put to the output. How can I prevent this behavior? Yes, that's a known feature. Do you have a stylesheet in the pipeline? Then don't copy elements in there, but create new of them. Copying elements copies also their namespaces. If you do not have a stylesheet in the pipeline you probably have to add one: http://wiki.cocoondev.org/Wiki.jsp?page=RemoveNamespaces Joerg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Session Handling: Unlimited Session duration
Hi! For my application I need an unlimited session. The users should never login a second time if they once did it. I use the Cocoon authentication framework to control the users access. How can I set an unlimited session duration even if the user closes his browser? I tried it with cocoon.session.setMaxInactiveInterval(-1) within my login function directly after the authentication. The Cocoon docs under http://cocoon.apache.org/2.1/userdocs/flow/api.html#Session+Object says ... A negative time indicates the session should never timeout.. But if I close my browser and reopen it I have to authenticate again. Why? Is there something to do in the servlet environment? Or must I force cookie session handling? And if yes, how can I do this? Thanks for any help. Greetings, Markus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Session Handling: Unlimited Session duration
Thanks Upayavira for your hints :-) I will do it like you said. Markus -Original Message- From: Upayavira Sent: Thursday, April 22, 2004 4:33 PM To: [EMAIL PROTECTED] Subject: Re: Session Handling: Unlimited Session duration Markus Heussen wrote: Hi! For my application I need an unlimited session. The users should never login a second time if they once did it. I use the Cocoon authentication framework to control the users access. How can I set an unlimited session duration even if the user closes his browser? I tried it with cocoon.session.setMaxInactiveInterval(-1) within my login function directly after the authentication. The Cocoon docs under http://cocoon.apache.org/2.1/userdocs/flow/api.html#Session+Objec t says ... A negative time indicates the session should never timeout.. But if I close my browser and reopen it I have to authenticate again. Why? Is there something to do in the servlet environment? Or must I force cookie session handling? And if yes, how can I do this? There's a difference between 'timeout' of a session and 'loss'. Closing and reopening the browser will always create a new session. That's just how sessions work. What I think you need to do is store a cookie on the client's browser, and use that to log the user back in automatically when they come in without a session. I'm not sure of what the effect on memory is of switching the session timeout off - your servlet container might then hold on to sessions forever, and could run out of memory. I'd suggest you leave the session timeout as is, and just use a persistent cookie to relog them in if the session does die. Regards, Upayavira - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[FLOW] Bug in cookie handling?
Hi! Is there a known bug in the Cocoon cookie handling within a flowscript? I created a cookie using cocoon.response.addCookie(cocoon.response.createCookie(test, test)); and tried to get it from the request doing the following: 1. cocoon.log.debug(cocoon.request.getCookies()); -- Lorg.apache.cocoon.components.flow.javascript.fom.FOM_Cocoon$FOM_Cookie;@187 6e5d 2. cocoon.log.debug(cocoon.request.getCookies()[0].name); -- test 3. cocoon.log.debug(cocoon.request.getCookies()[0].getName()); -- org.apache.avalon.framework.CascadingRuntimeException: getName is not a function The docs under http://cocoon.apache.org/2.1/userdocs/flow/api.html#Cookie+Object says that there is a method getName(). Or am I missunderstanding something? I'm using a few weeks old CVS Head under Tomcat 4.1 and Java 1.4.2. Greetings, Markus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[Sitemap] auth-protect action - bug or feature?
Hi all! If I call my following protected pipeline the result is a 404 page not found error. I thought the right behavior is to redirect automatically to the login resource?? Is it a bug or am I doing something wrong? I am using Cocoon from the few days old CVS Head under SDK1.4.2 and TC 4.1.30. Thanks for helping, Markus map:match type=wildcard pattern=secure/** map:act type=auth-protect map:parameter name=handler value={global:handler}/ !-- logout function -- map:match type=wildcard pattern=secure/logout map:call function=logout map:parameter name=handler value={global:handler}/ /map:call /map:match !-- flowscripts -- map:match type=wildcard pattern=secure/*.flow map:call function={1}/ /map:match /map:act /map:match The authentication declaration looks like the following: authentication-manager global-variables handlermyapp/handler /global-variables handlers handler name=myapp redirect-to uri=cocoon:/login/ authentication uri=cocoon:raw:/auth/ /handler /handlers /authentication-manager - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[flow] cocoon.createObject() problem
Hi Friends! I've written a java class User which stores user data selecting from a database. I want to use the cocoon datasource defined in the cocoon.xconf and the logging for it and I need to use the class within my flowscript. How can I manage this? Searching a while I found the cocoon.createObject() flow function that may help me but I don't understand how to use it. I tried something like this var user = cocoon.createObject(some.package.User); which returns the User object. but calling the function user.load(username, password); // (see below) throws the following exception: org.apache.avalon.framework.component.ComponentException: Could not find component (key [org.apache.avalon.excalibur.datasource.DataSourceComponent]) (Key='org.apache.avalon.excalibur.datasource.DataSourceComponent') (key [org.apache.avalon.excalibur.datasource.DataSourceComponent]) The User class looks like the following: public class User implements LogEnabled, Composable { ... public boolean load(String authUsername, String authPassword) { ... ComponentSelector selector = (ComponentSelector) manager.lookup DataSourceComponent.ROLE); DataSourceComponent datasource = (DataSourceComponent)selector.select(this.poolId); Connection con = datasource.getConnection(); ... } ... What am I doing wrong? Can somebody help me please? I really need it. I'm using the current CVS head and SDK 1.4.2. Thanks a lot! Greetings, Markus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [flow] cocoon.createObject() problem
Hi Laurant, thanks for your answer. But there is a jdbc connection described in the datasource section of my cocoon.xconf and the poolId (see method below - this.poolId) is the jdbc name of this connection pool. If I use log.debug() in my User class I also get an exception, a NullPointerException, although I have implemented the LogEnabled Avalong interface. So I guess it has something to do with the flow. It seems that I cannot access the avalon components. I don't know. I'm not really a java / cocoon guru ;-( Any hints? Markus -Original Message- From: Sent: Thursday, April 15, 2004 5:06 PM To: [EMAIL PROTECTED] Subject: Re: [flow] cocoon.createObject() problem Hi Markus , I think that it has nothing to do with flow but I already received such a message when using a component that I created and that has to use a datasource. This datasource has to be defined in cocoon.xconf and if he can not open it you will get an error hope it could help Laurent Markus Heussen 15/04/2004 16:57 Please respond to users To:[EMAIL PROTECTED] cc: Subject:[flow] cocoon.createObject() problem Hi Friends! I've written a java class User which stores user data selecting from a database. I want to use the cocoon datasource defined in the cocoon.xconf and the logging for it and I need to use the class within my flowscript. How can I manage this? Searching a while I found the cocoon.createObject() flow function that may help me but I don't understand how to use it. I tried something like this var user = cocoon.createObject(some.package.User); which returns the User object. but calling the function user.load(username, password); // (see below) throws the following exception: org.apache.avalon.framework.component.ComponentException: Could not find component (key [org.apache.avalon.excalibur.datasource.DataSourceComponent]) (Key='org.apache.avalon.excalibur.datasource.DataSourceComponent') (key [org.apache.avalon.excalibur.datasource.DataSourceComponent]) The User class looks like the following: public class User implements LogEnabled, Composable { ... public boolean load(String authUsername, String authPassword) { ... ComponentSelector selector = (ComponentSelector) manager.lookup DataSourceComponent.ROLE); DataSourceComponent datasource = (DataSourceComponent)selector.select(this.poolId); Connection con = datasource.getConnection(); ... } ... What am I doing wrong? Can somebody help me please? I really need it. I'm using the current CVS head and SDK 1.4.2. Thanks a lot! Greetings, Markus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[CForms] Flowscript - Request - XSPAction - AddValidation - Request - Flowscript
Hi all. Sorry for my following question but I'm still a Java Newbie :( I need to pass a flowscript form object to an xsp-action using the request object. In the xsp-action I need to do something and if this fails I need to add a validation message to the form object and return it to the flowscript using the request object. How can I do this? How can I use the object [EMAIL PROTECTED] (I get back from xsp-action) in my flowscript? I need an object that contains the validation message added in the xsp-action I can work with in my flowscript without instanciating a new form object using var form = new Form(definition). Many thanks for your help! Markus. That's what I have: Flowscript: ... cocoon.log.debug(registration() - get form object from request indicating the registration action failed); var regForm = cocoon.request.getAttribute(regForm); var form = null; if (regForm == null) { cocoon.log.debug(registration() - no form object found); cocoon.log.debug(registration() - create new form object using forms/descriptors/registration.descriptor.xml); form = new Form(forms/descriptors/registration.descriptor.xml); } else { cocoon.log.debug(registration() - form object found); form = // here's my problem; } cocoon.log.debug(registration() - display form to user and wait); form.validator = registrationValidator; form.showForm(registration.view); ... cocoon.request.setAttribute(regForm, form.getWidget()); cocoon.sendPage(registration.action); // this is the xsp-action ... Sitemap: ... map:match type=wildcard pattern=registration.action map:act type=serverpages src=actions/registration.action.xsp map:generate type=serverpages src=views/registration-ok.view/ map:transform type=xslt src=stylesheets/test.html.xsl/ map:serialize type=html/ /map:act map:call function=registration/ !-- back to registration flow -- /map:match ... XSP-Action: ... xsp:logic Form regForm = (Form)request.getAttribute(regForm); Field field = (Field)regForm.getWidget(email); /xsp:logic !-- in some cases the action fails -- !-- add validation message to form and store in request -- xsp-request:set-attribute name=regFormxsp:exprregForm/xsp:expr/xsp-request:set-attribute action:set-failure/ ... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Easy way to include xhtml when transforming xml to xhtml
Well, I don't exactly understand what's your concern. But have a look at the cinclude transformer: http://cocoon.apache.org/2.1/userdocs/transformers/cinclude-transformer.html Markus -Original Message- From: Kirk Storer [mailto:[EMAIL PROTECTED] Sent: Thursday, March 04, 2004 8:25 PM To: [EMAIL PROTECTED] Subject: Easy way to include xhtml when transforming xml to xhtml Is there an easy way to include xhtml. For example, my xslt will process the specified xml document. And some how include the the xhtml file to set up the framework of the page with the content from the xml file in the main area. Thanks, Kirk - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
LetterML
Hi all! Well, I know this posting does not exactly fit in this mailing list. But during my development using the Apache Cocoon Framework every now and then I needed to create my own markup languages for example as the initial point of a pipeline. Once I needed a markup language to describe business letters in XML. Using Google I tried to find out if somebody did this job before but I didn't find any useful things out there. So I did this job on my own and created the Letter Markup Language (LetterML). The specification is free for use and maybe someone is interested in it. You can find the documentation and resources of LetterML on the project homepage under http://www.letterml.de. There are also a couple of stylesheets for free download to transform a LetterML document to HTML or platform independent PDF. A german insurance company already uses LetterML in a production enviroment. Comments and suggestions are very welcome. Thanks for your attention! Markus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Easy way to include xhtml when transforming xml to xhtml
Ah now I understand your concern. Use xsl:copy-of select=content/ or xsl:copy-of select=content/*/. Markus -Original Message- From: Kirk Storer [mailto:[EMAIL PROTECTED] Sent: Thursday, March 04, 2004 9:00 PM To: [EMAIL PROTECTED] Subject: Re: Easy way to include xhtml when transforming xml to xhtml Ok, I will try to explain this better. I am using two files as sources, combined via aggregate in the sitemap. The content of one of the files will be contained in menu/menu The content of the other file will be contained in content/content Both of these are then inside of page /page I want to process the xml within menu into xhtml. I merely want to use what is in the content tags as it is, it is already xhtml. this is an extremely simplified version of the xsl file -- xsl:template match=page xsl:for-each select=menu do whatever /xsl:for-each xsl:value-of select=content/ /xsl:template --- If i use xsl:value-of select=content/ it displays the text, but not all of the markup tags How can it get it to include all of the markup tags that are in the file, such as p /p ulli/li/ul etc. Thanks, Kirk - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: SOAP LogicSheet and request parameters
Try test xsp:attribute name=paramxsp-request:get-parameter name=param//xsp:attribute /test Markus -Original Message- From: Andreas Wombacher [mailto:[EMAIL PROTECTED] Sent: Monday, March 01, 2004 4:08 PM To: [EMAIL PROTECTED]; anwo Subject: SOAP LogicSheet and request parameters Hello, I am using the SOAPLogicSheet and now I am forced to add parameters contained in the request as attributes to the XML element test as depicted below: soap:call test param=content from a parameter set in the request/ /soap:call the usual approach reading the paremeters via xsp-request:get-parameter name=param/ does not work, because it can not be applied to XML attributes. Any comments and ideas are welcome. Thanks in advance. Bets regards Andreas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: How do I set session variables from xslt or jxtransforms?
In a first transformation you can create the xml syntax for the second transformer, the session transformer using xslt/xpath functions. look at http://cocoon.apache.org/2.1/developing/webapps/contexts.html you can do something like this: map:match pattern=test map:generate type=file src=test.xsp/ map:transform type=xalan src=xsl-file-that-produces-the-session-syntax.xsl/ map:transform type=session/ map:serialize type=xml/ /map:match Greetings, Markus -Ursprüngliche Nachricht- Von: Joakim Verona Gesendet: Donnerstag, 29. Januar 2004 13:44 An: [EMAIL PROTECTED] Betreff: How do I set session variables from xslt or jxtransforms? Hello list, I have a XSP file that generates XML by decrypting a string sent in a url parameter. This works, and the XSP generates a XML representation of the decrypted string. Now I would like to pass this generated XML to a transform of some kind, that will extract data and put it in session variables. Whats the best way to do this? The only way I can think of is using a XSLT transform that gets at the data I want with XPath, and then uses xalan java extensions to set the session variables somehow, but this seems so awkward. Any ideas? Here is an example: an XSP generates this XML: root var1foo/var1 var2foo2/var2 /root I want to do something like: setSessionVariable(var1, xpathExpression(/root/var1)) Cheers, /Joakim - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: empty page when using xsltc
Copy xalan-2.5.2 from $COCOON_SRC/WEB-INF/lib to $TOMCAT_HOME/common/endorsed. It's a bug in the xalan processor delivered with the jdk. Markus -Ursprungliche Nachricht- Von: thorsten schmid Gesendet: Mittwoch, 28. Januar 2004 19:30 An: [EMAIL PROTECTED] Betreff: empty page when using xsltc Hello everyone, My System: Cocoon: cocoon 2.1.3 jdk: Sun 1.4.1_02 Servlet engine: Tomcat 4.1.18 (binary distribution) My Problem: xsltc produces an empty output when cocoon runs as servlet within tomcat. Cocoon was compiled as a .war file by calling build.sh war. The problem doesn't occur as I run cocoon within jetty by calling cocoon.sh servlet in my COCOON_HOME directory. I also doubt that using the binary version of tomcat might the reason for the problem, because the applikation worked fine with cocoon2.1-dev. Sitemap snippets: . . . map:transformer logger=sitemap.transformer.xsltc name=xsltc pool-grow=2 pool-max=32 pool-min=8 src=org.apache.cocoon.transformation.TraxTransformer use-request-parametersfalse/use-request-parameters use-session-parametersfalse/use-session-parameters use-cookie-parametersfalse/use-cookie-parameters xslt-processor-rolexsltc/xslt-processor-role check-includestrue/check-includes /map:transformer . . . . . . map:match pattern=sitemap.html map:generate type=xalan src=xml/sitemap.xml/ map:transform type=xsltc src=xsl/sitemap2html.xsl/ map:serialize/ /map:match . . . Does anyone have a clue what the reason could be? best regards, Thorsten - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: AW: parameter in a pipeline
rhld:action is my xsp root element nothing else. this is not the cause of your problem. my action looks like yours and everything works fine for me. here's my action: ?xml version="1.0" encoding="UTF-8"? !-- GetPdfDocumentId.xsp -- xsp:page version="1.0" language="java" xmlns:xsp="http://apache.org/xsp" xmlns:esql="http://apache.org/cocoon/SQL/v2" xmlns:util="http://apache.org/xsp/util/2.0" xmlns:rhld="http://schema.rheinland.net/rhld/1.0" xmlns:action="http://apache.org/cocoon/action/1.0" xmlns:xsp-request="http://apache.org/xsp/request/2.0" rhld:action id="GetPdfDocumentId" esql:connection esql:poolcontrolcenter/esql:pool esql:execute-query esql:querySELECT dokument_id FROM gui_pdf_dokument WHERE pdftyp = 1 AND antragsnummer = 'xsp-request:get-parameter name="id"/'/esql:query esql:results esql:row-results action:set-result name="pdfDocumentId" action:param name="value"esql:get-int column="dokument_id"//action:param /action:set-result action:set-success/ /esql:row-results /esql:results esql:no-resultsaction:set-failure//esql:no-results esql:error-resultsaction:set-failure//esql:error-results /esql:execute-query /esql:connection /rhld:action /xsp:page -Ursprüngliche Nachricht-Von: Vincent Charlot Gesendet: Dienstag, 27. Januar 2004 11:59An: [EMAIL PROTECTED]Betreff: Re: AW: parameter in a pipeline I used what you told me... but unfortunately, it doesn't work... The error message is: org.apache.cocoon.ProcessingException: Language Exception: org.apache.cocoon.components.language.LanguageException: Error compiling num_facture_action_xsp: ERROR 1 (org\apache\cocoon\www\iml\logic\num_facture_action_xsp.java): ... this.actionResultMap.put("num_recup", "" // start error (lines 432-432) "String literal is not properly closed by a double-quote" + " // end error " + " ... Line 432, column 0: String literal is not properly closed by a double-quote What's the use of your rhld:action tag? Here is a copy of my xsp : ?xml version="1.0"? xsp:page language="java" xmlns:action="" xmlns:xsp="http://apache.org/xsp" xmlns:xsp-request="http://apache.org/xsp/request/2.0" xmlns:esql="http://apache.org/cocoon/SQL/v2" action id="num_facture_action" esql:connection esql:poolessaibase/esql:pool esql:execute-query esql:querySELECT num_facture FROM devis WHERE id_client = xsp-request:get-parameter name="id_client"/ ORDER BY num_facture DESC/esql:query esql:max-rows1/esql:max-rows esql:results esql:row-results action:set-result name="num_recup" action:param name="value" esql:get-int column="num_facture"/ /action:param /action:set-result action:set-success/ /esql:row-results /esql:results esql:no-resultsaction:set-failure//esql:no-results esql:error-resultsaction:set-failure//esql:error-results /esql:execute-query /esql:connection /action /xsp:page Markus Heussen [EMAIL PROTECTED] wrote: The Sitemap: map:match pattern="load.pdf"map:act type="serverpages" src="" map:read type="gzdatabasereader" src="" mime-type="{request-param:mime-type}" map:parameter name="table" value="pdf_log_document"/ map:parameter name="image" value="document"/ map:parameter name="key" value="id"//map:read /map:act/map:match The action: rhld:action id="GetPdfDocumentId"esql:connectionesql:poolcontrolcenter/esql:poolesql:execute-queryesql:querySELECT dokument_id FROM gui_pdf_dokument WHERE pdftyp = 1 AND antragsnummer = 'xsp-request:get-parameter name="id"/'/esql:queryesql:resultsesql:row-resultsaction:set-result name="pdfDocumentId"action:param name="value"esql:get-int column="dokument_id"//action:param/action:set-resultaction:set-success//esql:row-results/esql:resultsesql:no-resultsaction:set-failure//esql:no-resultsesql:error-resultsaction:set-failure//esql:error-results/esql:execute-query/esql:connection/rhld:action Greetings, Markus -Ursprüngliche Nachricht-Von: Vincent Charlot Gesendet: Montag, 26. Januar 2004 19:26An: [EMAIL PROTECTED]Betreff: parameter in a pipeline Hi!I'm using an XSP to get the value of a parameter(called num_recup) from a SQL database.I'd like to use thisparameter at the end of the same pipeline with a "redirect":map:redirect-to uri="cocoon:id_data.html?num={num_recup}"/The problem is that I don't know how to recover the value within the pipeline. I tried with a xsp action, but I didn' succeed... How can I do?Thanks! Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !Testez le nouveau Yahoo! Mail Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !Testez le nouveau Yahoo! Mail
WG: [FLOW] cocoon.processPipelineTo, NullPointerException
FLOW: cocoon.processPipelineTo(test,{ test : doc },os); // doc = w3c.doc SITEMAP: map:match pattern=test map:generate type=jx src=jx.xml/ map:transform type=xsltc src=test.xsl/ map:serialize type=xml/ /map:match jx.xml: jx:template xmlns:jx=http://apache.org/cocoon/templates/jx/1.0; ${test} /jx:template After the pipeline processing in my logs I can see the results of the doc transformed with test.xsl. Everything seems to work as expected but in my output stream I also have the following exeption: test xmlns:v=http://schema.rheinland.net/Versicherung.htm; xmlns:kfz=http://schema.rheinland.net/Kfz.htm; xmlns:rhld=http://schema.rheinland.net/soap/header/rhld.htm; test /test?xml version=1.0 encoding=ISO-8859-1? error:notify xmlns:error=http://apache.org/cocoon/error/2.1; error:type=error error:sender=org.apache.cocoon.components.treeprocessor.sitemap.ErrorHandle rHelpererror:titleAn Error Occurred/error:titleerror:sourceorg.apache.cocoon.ProcessingException/e rror:sourceerror:messageFailed to execute pipeline./error:messageerror:descriptionorg.apache.cocoon.ProcessingExce ption: Failed to execute pipeline.: java.lang.NullPointerException/error:descriptionerror:extra error:description=causejava.lang.NullPointerException/error:extraerror :extra error:description=full exception chain stacktraceOriginal Exception: java.lang.NullPointerException#13; at org.apache.xml.dtm.ref.sax2dtm.SAX2DTM.endPrefixMapping(SAX2DTM.java:1828)# 13; at org.apache.xalan.xsltc.trax.TransformerHandlerImpl.endPrefixMapping(Transfor merHandlerImpl.java:390)#13; at org.apache.cocoon.xml.AbstractXMLPipe.endPrefixMapping(AbstractXMLPipe.java: 112)#13; at org.apache.cocoon.generation.JXTemplateGenerator.execute(JXTemplateGenerator .java:3172)#13; at org.apache.cocoon.generation.JXTemplateGenerator.performGeneration(JXTemplat eGenerator.java:2920)#13; at org.apache.cocoon.generation.JXTemplateGenerator$TransformerAdapter$Template Consumer.endDocument(JXTemplateGenerator.java:2698)#13; at org.apache.cocoon.xml.AbstractXMLPipe.endDocument(AbstractXMLPipe.java:91)# 13; ... ... Can anybody tell me what I'm doing wrong? Or is there anybody who can help me finding a better way? I don't want to use flowscript or java within my flowscript to do things that are usally done within the sitemap like transformations. By the way: If I don't do the transformation everything works fine. ` Thanks, Markus -Ursprüngliche Nachricht- Von: Markus Heussen Gesendet: Dienstag, 27. Januar 2004 16:47 An: [EMAIL PROTECTED] Betreff: [FLOW] cocoon.processPipelineTo Hi, can someone tell me how I can use the cocoon.processPipelineTo method with a given w3c document as the initial input (generator) of a pipeline matcher. For example: cocoon.processPipelineTo(matcher,w3cDocumentObject,ouputStream); The w3cDocumentObject is the content normally produced by using a generator, but in this case I do not need to produce the xml content using a generator. But it is required to start a pipeline with it. Any idea? Thanks, Markus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: AW: AW: parameter in a pipeline
What Cocoon Version do you use? I use the current cvs head Cocoon 2.1.4dev with J2SDK-1.4.2. Maybe there is a bug in your version? By the way.Could you please removemail addresses in your postings to prevent spam attacks?Thanx :-) Markus -Ursprüngliche Nachricht-Von: Vincent CharlotGesendet: Dienstag, 27. Januar 2004 17:04An: [EMAIL PROTECTED]Betreff: Re: AW: AW: parameter in a pipeline It still doesn't work although I've got the same content than Markus Can someone help me? VincentMarkus Heussen wrote: rhld:action is my xsp root element nothing else. this is not the cause of your problem. my action looks like yours and everything works fine for me. here's my action: ?xml version="1.0" encoding="UTF-8"? !-- GetPdfDocumentId.xsp -- xsp:page version="1.0" language="java" xmlns:xsp="http://apache.org/xsp" xmlns:esql="http://apache.org/cocoon/SQL/v2" xmlns:util="http://apache.org/xsp/util/2.0" xmlns:rhld="http://schema.rheinland.net/rhld/1.0" xmlns:action="http://apache.org/cocoon/action/1.0" xmlns:xsp-request="http://apache.org/xsp/request/2.0" rhld:action id="GetPdfDocumentId" esql:connection esql:poolcontrolcenter/esql:pool esql:execute-query esql:querySELECT dokument_id FROM gui_pdf_dokument WHERE pdftyp = 1 AND antragsnummer = 'xsp-request:get-parameter name="id"/'/esql:query esql:results esql:row-results action:set-result name="pdfDocumentId" action:param name="value"esql:get-int column="dokument_id"//action:param /action:set-result action:set-success/ /esql:row-results /esql:results esql:no-resultsaction:set-failure//esql:no-results esql:error-resultsaction:set-failure//esql:error-results /esql:execute-query /esql:connection /rhld:action /xsp:page -Ursprüngliche Nachricht-Von: Vincent Charlot Gesendet: Dienstag, 27. Januar 2004 11:59An: [EMAIL PROTECTED]Betreff: Re: AW: parameter in a pipeline I used what you told me... but unfortunately, it doesn't work... The error message is: org.apache.cocoon.ProcessingException: Language Exception: org.apache.cocoon.components.language.LanguageException: Error compiling num_facture_action_xsp: ERROR 1 (org\apache\cocoon\www\iml\logic\num_facture_action_xsp.java): ... this.actionResultMap.put("num_recup", "" // start error (lines 432-432) "String literal is not properly closed by a double-quote" + " // end error " + " ... Line 432, column 0: String literal is not properly closed by a double-quote What's the use of your rhld:action tag? Here is a copy of my xsp : ?xml version="1.0"? xsp:page language="java" xmlns:action="" xmlns:xsp="http://apache.org/xsp" xmlns:xsp-request="http://apache.org/xsp/request/2.0" xmlns:esql="http://apache.org/cocoon/SQL/v2" action id="num_facture_action" esql:connection esql:poolessaibase/esql:pool esql:execute-query esql:querySELECT num_facture FROM devis WHERE id_client = xsp-request:get-parameter name="id_client"/ ORDER BY num_facture DESC/esql:query esql:max-rows1/esql:max-rows esql:results esql:row-results action:set-result name="num_recup" action:param name="value" esql:get-int column="num_facture"/ /action:param /action:set-result action:set-success/ /esql:row-results /esql:results esql:no-resultsaction:set-failure//esql:no-results esql:error-resultsaction:set-failure//esql:error-results /esql:execute-query /esql:connection /action /xsp:page Markus Heussen wrote: The Sitemap: map:match pattern="load.pdf"map:act type="serverpages" src="" map:read type="gzdatabasereader" src="" mime-type="{request-param:mime-type}" map:parameter name="table" value="pdf_log_document"/ map:parameter name="image" value="document"/ map:parameter name="key" value="id"//map:read /map:act/map:match The action: rhld:action id="GetPdfDocumentId"esql:connectionesql:poolcontrolcenter/esql:poolesql:execute-queryesql:querySELECT dokument_id FROM gui_pdf_dokument WHERE pdftyp = 1 AND
[FLOW] cocoon.processPipelineTo
Hi, can someone tell me how I can use the cocoon.processPipelineTo method with a given w3c document as the initial input (generator) of a pipeline matcher. For example: cocoon.processPipelineTo(matcher,w3cDocumentObject,ouputStream); The w3cDocumentObject is the content normally produced by using a generator, but in this case I do not need to produce the xml content using a generator. But it is required to start a pipeline with it. Any idea? Thanks, Markus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: parameter in a pipeline
The Sitemap: map:match pattern="load.pdf"map:act type="serverpages" src="" map:read type="gzdatabasereader" src="" mime-type="{request-param:mime-type}" map:parameter name="table" value="pdf_log_document"/ map:parameter name="image" value="document"/ map:parameter name="key" value="id"//map:read /map:act/map:match The action: rhld:action id="GetPdfDocumentId"esql:connectionesql:poolcontrolcenter/esql:poolesql:execute-queryesql:querySELECT dokument_id FROM gui_pdf_dokument WHERE pdftyp = 1 AND antragsnummer = 'xsp-request:get-parameter name="id"/'/esql:queryesql:resultsesql:row-resultsaction:set-result name="pdfDocumentId"action:param name="value"esql:get-int column="dokument_id"//action:param/action:set-resultaction:set-success//esql:row-results/esql:resultsesql:no-resultsaction:set-failure//esql:no-resultsesql:error-resultsaction:set-failure//esql:error-results/esql:execute-query/esql:connection/rhld:action Greetings, Markus -Ursprüngliche Nachricht-Von: Vincent Charlot Gesendet: Montag, 26. Januar 2004 19:26An: [EMAIL PROTECTED]Betreff: parameter in a pipeline Hi!I'm using an XSP to get the value of a parameter(called num_recup) from a SQL database.I'd like to use thisparameter at the end of the same pipeline with a "redirect":map:redirect-to uri="cocoon:id_data.html?num={num_recup}"/The problem is that I don't know how to recover the value within the pipeline. I tried with a xsp action, but I didn' succeed... How can I do?Thanks! Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !Testez le nouveau Yahoo! Mail
AW: AW: [Woody/CForms] Multipage forms with woody and one XML source to bind
-Ursprungliche Nachricht- Von: Tony Collen Gesendet: Freitag, 16. Januar 2004 04:43 An: [EMAIL PROTECTED] Betreff: Re: AW: [Woody/CForms] Multipage forms with woody and one XML source to bind Markus Heussen wrote: Meanwhile I have found a solution but I don't know if it is the elegant way ;-) Maybe you can have a look at it and do a comment? I have one source but two or more form defintion files and two or more binding files. Also two or more templates. First of all the following call initializes the form part1: cocoon.sendPage(form.init?function=contractConclusionForm1form-d efinition= test1documentURI=testbindingURI=test1); That calls the following sitemap matcher: map:match pattern=form.init map:call function=woody map:parameter name=function value={request-param:function}/ map:parameter name=form-definition value=cocoon:/forms/descriptors/{request-param:form-definition}.d escriptor. xml/ map:parameter name=documentURI value=cocoon:/forms/sources/{request-param:documentURI}.source.xml/ map:parameter name=bindingURI value=cocoon:/forms/bindings/{request-param:bindingURI}.binding.xml/ /map:call /map:match Then the function contractConclusionForm1 is called: function contractConclusionForm1(form) { ... doc = flowHelper.loadDocument(documentURI); // globale form.load(doc); // bind the document data (first part data to first form) form.showForm(portal.base?template=test1, // show with first template { ... } ); form.save(doc); // bind the form's data back to the document cocoon.sendPage(form.init?function=contractConclusionForm2form-d efinition= test2documentURI=testbindingURI=test2); } Then the function contractConclusionForm2 is called: function contractConclusionForm2(form) { form.load(doc); // bind the document data (second part data to second form) form.showForm(portal.base?template=test2, // show with second template { ... } ); form.save(doc); // bind the form's data back to the document flowHelper.saveDocument(doc,test2.xml); cocoon.sendPage(portal.base, { ... } ); } Is this stupid? Markus Well, I don't think putting the function name in the request parameter is all that great of an idea (just think if the wrong function gets called that happens to do something you really don't want), but I'm not all that sure how else it could be done... Regards, Tony Hi Tony, my sample above is just a code snippet. From my flowscript I call an XSP page and give it a javascript object. Using jx transformer I create an cinclude:src/ using the cocoon protocol that includes the form sources from an internal pipeline using request parameters to control the form. So I have everything under control. The request parameters never appear at the gui. Greetings, Markus :-) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: Session Lost between Tomcat and Cocoon
Title: Message Hi Jay, maybe we have the same problem. Actually till now we did not assume that Cocoon could be the problem but maybe it is. We use Tomcat 4.1.28, Cocoon 2.0.3, Sun JDK 1.3.1_07b, Windows 2K Server, Apache 1.3 with mod_jk1 in front to load balance. Our application stores all form values of the user in session attributes of type string and two axis soap responses in a dom session using read/writeDOMsessionTransformer.We have two complex matchers in our pipeline. At first we check if there is a valid session using the session-isvalid action before anything else will be processed. So there must be a valid session otherwise the user cannot access the page. The page itselfs starts with a xsp generator using the xsp-session logicsheet to get the session attribute values. Sometimes it occures that session attributes are lost. The problem occurs even at times there is no load on our page. We send a post to the tomcat users list but anybody seems to have the same problems. Can anyone give us a hint? Markus -Ursprngliche Nachricht-Von: Jay Gesendet: Dienstag, 13. Januar 2004 23:34An: [EMAIL PROTECTED]Betreff: Session Lost between Tomcat and Cocoon Versions being used: Tomcat 4.0.6, Cocoon 2.1.3, Sun JDK 1.4.2_02, Linux Gentoo 1.4 Our basic problem is that our application, which is run on Tomcat (just a collection of .jsp files mostly) calls Cocoon (via a call to http://ipaddress:/reportx.pdf) to generate .pdf reports. But once that happens, the session information is lost. Specifically, you still have a session, but with a different session id than before (and all of the previously saved information is gone). So it appears the the session is now overridden by Cocoon. So is there a way to configure Cocoon to not do so? We also tried running Cocoon under a separate JVM but got the same results. You must refresh the app at this point because it no lost all information stored about itself. Thanks, Jay
AW: Woody with i18n
Title: RE: Woody with i18n that's crasy because for me it does what is expected, take a look a http://cocoon.apache.org/2.1/userdocs/flow/api.html#Request+Object there you can find the getLocale() method. i'm using a currentcvs version. sorry, but i have no further hints. markus -Ursprüngliche Nachricht-Von: [EMAIL PROTECTED] Gesendet: Dienstag, 13. Januar 2004 09:47An: [EMAIL PROTECTED]Betreff: RE: Woody with i18n Thanks but when i use yours proposed : localeParam = cocoon.request.getLocale() the value is null (???) but mine : localeParam = cocoon.request.get("locale"); the value is : fr-FR or en-US but it still can not work!!! ??? i dont know why!! cant somebody show me! thanks very much p.s i checked and compared all my codes but i cant find what's wrong? -Original Message- From: Markus Heussen [mailto:[EMAIL PROTECTED]] Sent: Friday, January 09, 2004 5:29 PM To: [EMAIL PROTECTED] Subject: AW: Woody with i18n -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] Gesendet: Freitag, 9. Januar 2004 10:29 An: [EMAIL PROTECTED] Betreff: Woody with i18n Hi all, i am starting working on woody and i18n! i can not transform from en to fr and vice versa! if i declared in sitemap map:transform type="i18n" map:parameter name="locale" value="fr_FR"/ /map:transform then all my pages will be in FR although i change page?locale="en-US" and if i declared in sitemap map:transform type="i18n" map:parameter name="locale" value="en_US"/ /map:transform then all my pages will be in en although i change page?locale="fr-FR" please show me how to solve this?? thanks a lot and in my flow script (i got in the cocoon example): var localeParam = cocoon.request.get("locale"); how can i debug to see the localeParam?? why cant i use the "alert " function of _javascript_?? thanks a lot Debug with print("some text") to your stdout of your servlet container or with cocoon.log.debug("some text") to your flowscript log. remember to setup logkit.xconf correctly to debug mode. try using: var localeParam = cocoon.request.getLocale(); Markus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[portal] Portat engine JSR-168 support and beta release
Hi! We need to know when apache cocoon releases a beta release of its portal engine which supports the JSR portlet specification standard? We have to develope a portal for a german insurance company. From cocoons homepage: The current state of this engine is alpha which means that the engine can still change in every aspect. So alpha means changes without notice and no backwards compatibility. This is probably a problem for our developement. Also we would like to know if there are bigger german or europe companies that presently uses the portal framework or the portal engine for high loaded portals. Thanks for your comments! Regards, Markus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[CVS] Building error
Hi, in the current cvs there is a bug in lib/jars.xml wrong: file titleXML Xindice/title descriptionNative XML Database by Apache XML project/description used-byxmldb block/used-by libxmldb/lib/xindice-1.1b1.jar/lib homepagehttp://xml.apache.org/xindice//homepage /file right: ... libxmldb/lib/xindice-1.1b3.jar/lib ... Maybe one of the contributors can check if I'm right and then fix it? Best regards, Markus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: Woody with i18n
-Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] Gesendet: Freitag, 9. Januar 2004 10:29 An: [EMAIL PROTECTED] Betreff: Woody with i18n Hi all, i am starting working on woody and i18n! i can not transform from en to fr and vice versa! if i declared in sitemap map:transform type=i18n map:parameter name=locale value=fr_FR/ /map:transform then all my pages will be in FR although i change page?locale=en-US and if i declared in sitemap map:transform type=i18n map:parameter name=locale value=en_US/ /map:transform then all my pages will be in en although i change page?locale=fr-FR please show me how to solve this?? thanks a lot and in my flow script (i got in the cocoon example): var localeParam = cocoon.request.get(locale); how can i debug to see the localeParam?? why cant i use the alert function of javascript?? thanks a lot Debug with print(some text) to your stdout of your servlet container or with cocoon.log.debug(some text) to your flowscript log. remember to setup logkit.xconf correctly to debug mode. try using: var localeParam = cocoon.request.getLocale(); Markus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: Inserting XML
Maybe I don't exactly understand your problem. XML documents stored in database colums you can access using the esql:get-xml column=name/. It parses the text after loading it from the database and builds valid xml. http://cocoon.apache.org/2.1/userdocs/xsp/esql.html If it is no valid xml (just dirty html) you probably have to use the html generator first. You can cinclude the output of another pipeline matcher in your xsp page using the cocoon protocol. Try something like the following (don't even know if it works): In your XSP page do something like this: cinclude:include src=cocoon:/html-include/ And in your pipe something like this: map:match pattern=html-include map:generate type=html src=cocoon:/load-from-db/ map:serialize type=xml/ /map:match map:match pattern=load-from-db map:generate type=serverpages src={a page uses esql:get-string to get html out of the db}/ map:serialize type=html/ /map:match Sources: http://cocoon.apache.org/2.1/userdocs/generators/html-generator.html http://cocoon.apache.org/2.1/userdocs/transformers/cinclude-transformer.html Markus -Ursprngliche Nachricht- Von: Yatin Shah Gesendet: Montag, 5. Januar 2004 22:25 An: [EMAIL PROTECTED] Betreff: Re: Inserting XML Otmar, Here is a snipet from my xsp code: String xml = appl.getNavigationXML(uriVendorCode); System.out.println(*** xml is: + xml); if (xml != null) { util:include-exprutil:exprxsp:exprxml/xsp:expr/util:expr /util:include-expr } This includes the xml for navigation within the xml generated by the xsp logic. In above, the applgetNavigationXML() simply returns a Java string of well formed xml. Hope this helps. -Yatin [EMAIL PROTECTED] wrote: Hi, I'd like to ask, how to insert XML-valid fragment into generated XML document by XSP. I have stored XML fragment (or XHTML or whatever) in the database and I'd like to put it into any element in the serverpages. I tried elementesql:get-string column=xml_part//element or use ESQL helper or tried to wrote own replacing method, but always is returned text with replaced characters ( to lt;, to gt; etc.). Another possibility could be maybe use any features of XSL transformation (maybe it could be still better), but I didn't found anything. Or another (similar) question - how to pull out HTML document (it is not XML valid) from database and consequently send it correctly to the browser? Do you have any idea? Thanks a lot! otmar - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Yatin Shah, President mailto:[EMAIL PROTECTED] Kripa Inc. http://www.kripa.com Dayton, New Jersey USA phone: 732.329.8303 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Developers of real time event driven distributed DB applications - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: [cocoon forms] Javascript error
No I don't believe it. It seems to me as if it is a clientside javascript problem. A function is called that even does not exists. Markus -Ursprungliche Nachricht- Von: Alex Romayev Gesendet: Montag, 5. Januar 2004 22:08 An: [EMAIL PROTECTED] Betreff: RE: [cocoon forms] Javascript error Hi Helma, The error actually happens after the form is submitted, so I would imagine, the control is passed back to the flowscript. It seems like the error is coming from: resource://org/apache/cocoon/woody/flow/javascript/woody2.js. Thanks, -Alex --- [EMAIL PROTECTED] wrote: Hi, Just a wild guess but could it be that it's trying to access the CalendarPopup.js file and cannot find it? I came across this error when a page was loaded which had passed through the woody-sample-styling.xsl file and it couldn't find the Calendarpopup.js where it was expected. Other error I came across: I added an action to my form that was not related to any sitemap pattern. Bye, Helma -Original Message- From: Alex Romayev [mailto:[EMAIL PROTECTED] Sent: Monday, 05 January 2004 19:08 To: [EMAIL PROTECTED] Subject: [cocoon forms] Javascript error Hi, I'm getting a Javascript error when I submit my form. The functionality works fine, except for this error briefly comes up while the browser is openning the next page. Any idea why it's happening? Here is the error: Line: 44 Char: 1 Error: Object expected Code: 0 Javascrip file: cocoon.load(resource://org/apache/cocoon/woody/flow/javascrip t/woody2.js); function change_language() { var form = new Form(portal/xforms/login/language.form-def.xml); form.showForm(language.display.resource); var locale = cocoon.request.get(locale); cocoon.sendPage(/site/login?locale= + locale); } Cheers, -Alex = Alex Romayev Software Architect http://www.romayev.com [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] = Alex Romayev Software Architect http://www.romayev.com [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: [Cocoon forms] interaction between definition validation and flow validator
Hi! I use form.validator = myValidator; placed before form.showForm(form.display); and in my validator function something like this function myValidator(form) { var validationError = new Packages.org.apache.cocoon.woody.datatype.ValidationError(xxx); if (!isDate(form.getWidget(vn_geburtsdatum).getValue(),dd.MM.)) { form.getWidget(vn_geburtsdatum).setValidationError(validationError); return false; } return true; } and this works fine for me. Only if all validations (in descriptor file and my flow validator function) give true the form is no more redisplayed. Regards, Markus -Ursprungliche Nachricht- Von: news Im Auftrag von Olivier Billard Gesendet: Dienstag, 6. Januar 2004 16:56 An: [EMAIL PROTECTED] Betreff: [Cocoon forms] interaction between definition validation and flow validator Hi cocooners ! I asked a question yesterday, that is maybe not clear, so let me explain cleaner. Cocoon forms offers 2 ways of validating a form : definition validation (with wd:validation in the form def file) and in the flow with the validator property of the flow form object. And how can I combine the 2, if it's possible ? I would like to use the definition validation pour simple validations like required fields or min/max, and the flow validation in addition, for more complex things like unique values control in repeaters, or business actions... My flow validator function begins with : code if (!form.getWidget().isValid()) { return false; } /code But even when the form seems to be valid, isValid() returns false, and I can never run business validation code after the test... I'm using 2.1.2 version of cocoon. Thanks, -- Olivier BILLARD - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: clinclude-Transformer with dynamic xml-gen. by cocoon
yes you can. you have to use the cocoon:/{your pipe matcher} protocol to call the pipelines. -Ursprüngliche Nachricht- Von: Hans-Peter Maurer Gesendet: Mittwoch, 24. Dezember 2003 09:45 An: [EMAIL PROTECTED] Betreff: clinclude-Transformer with dynamic xml-gen. by cocoon hi, can i use the cinclude transformer if i want to call a pipeline, which generate xml finally by ending with an xml-serializer? Peter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: AW: AW: AW: [Woody] Binding problem for missing elements in source file
-Ursprüngliche Nachricht- Von: Marc Portier Gesendet: Montag, 22. Dezember 2003 12:41 An: [EMAIL PROTECTED] Betreff: Re: AW: AW: AW: [Woody] Binding problem for missing elements in source file Markus Heussen wrote: Many thanks to you, now everything works fine :-) yeah, we get there *eventually* But two questions I still have: 1. Is it possible to control the position where nodes will be created within a context? Sometimes this is necessary if the xml schema defines the sequence of nodes. could you be more specific? naieve first thought: the @path attribute of the wb:context has precisely this purpose (given your previous questions and remarks that sounds like a too simplistic answer though) My source file contains something like this: ... v:Person Rolle=Versicherungsnehmer v:Anrede Schlüssel=1/ !-- here a v:Titel node is missing -- v:Vornamefirstname/v:Vorname v:Namename/v:Name v:Anschrift v:Straßestreet/v:Straße v:Plz12345/v:Plz v:Ortlocation/v:Ort /v:Anschrift v:Geschlecht Schlüssel=1/ v:Geburtsdatum-00-00/v:Geburtsdatum v:Familienstand Schlüssel=1/ v:StaatsangehörigkeitD/v:Staatsangehörigkeit ... /v:Person ... And here is my binding: ... wb:context path=v:Partner/[EMAIL PROTECTED]'Versicherungsnehmer'][1] wb:value id=vn_anrede path=v:Anrede/@Schlüssel lenient=true/ wb:value id=vn_titel path=v:Titel lenient=true/ wb:value id=vn_vorname path=v:Vorname lenient=true/ wb:value id=vn_name path=v:Name/ wb:value id=vn_namenszusatz path=v:Namenszusatz lenient=true/ wb:context path=v:Anschrift wb:value id=vn_strasse path=v:Straße lenient=true/ wb:value id=vn_plz path=v:Plz/ wb:value id=vn_ort path=v:Ort/ /wb:context ... /wb:context ... After submission the v:Titel node is recognized as missing and will be created as the last node of the context. So my result looks like this: ... v:Person Rolle=Versicherungsnehmer v:Anrede Schlüssel=1/ !-- here the v:Titel node has to be created --!--v:TitelDr./v:Titel-- v:Vornamefirstname/v:Vorname v:Namename/v:Name v:Anschrift v:Straßestreet/v:Straße v:Plz12345/v:Plz v:Ortlocation/v:Ort /v:Anschrift v:Geschlecht Schlüssel=1/ v:Geburtsdatum-00-00/v:Geburtsdatum v:Familienstand Schlüssel=1/ v:StaatsangehörigkeitD/v:Staatsangehörigkeit ... !-- here the node was created --v:TitelDr./v:Titel /v:Person ... But the W3C schema not allows this position for this node because the sequence of the nodes has to be like this: ... v:Person Rolle=Versicherungsnehmer v:Anrede Schlüssel=1/ v:TitelDr./v:Titel v:Vornamefirstname/v:Vorname v:Namename/v:Name v:Anschrift v:Straßestreet/v:Straße v:Plz12345/v:Plz v:Ortlocation/v:Ort /v:Anschrift v:Geschlecht Schlüssel=1/ v:Geburtsdatum-00-00/v:Geburtsdatum v:Familienstand Schlüssel=1/ v:StaatsangehörigkeitD/v:Staatsangehörigkeit ... /v:Person ... Is there a way woody supports this? A workaround can be a transformation of the result message that constructs the xml document that is valid against the schema. But that's not my favor :-( Thank you for your help! Markus 2. If the input of a date form field is for example 31.02.2004 after submission this value is automatically set to 02.03.2004. How can I change this behavior? Is there a attribute I can set in the woody binding or definition file to get the behavior like using the setLenient(false) method of the class SimpleDateFormat? not yet, see other thread where you originally posted this... Thanks for helping me! de nada, -marc= Greetings, Markus -Ursprüngliche Nachricht- Von: Marc Portier Gesendet: Samstag, 20. Dezember 2003 16:08 An: [EMAIL PROTECTED] Betreff: Re: AW: AW: [Woody] Binding problem for missing elements in source file Yo, all. answer is in the combination of using - @lenient (for surviving reads from paths that don't exist yet) - and the o.a.c.util.jxpath.DOMFactory (for creating new paths on the target XML) for some mysterious reason one of my commits messed up the auto-registry of that factory on Nodes, fixed now. regards, -marc= Markus Heussen wrote: -Ursprüngliche Nachricht- Von: Upayavira [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 18. Dezember 2003 12:12 An: [EMAIL PROTECTED] Betreff: Re: AW: [Woody] Binding problem for missing elements in source file Markus Heussen wrote: -Ursprungliche Nachricht- Von: Upayavira Gesendet: Mittwoch, 17. Dezember 2003 16:49 An: [EMAIL
AW: AW: AW: AW: AW: [Woody] Binding problem for missing elements in source file
Many thanks to you marc for your full description :-) -Ursprüngliche Nachricht- Von: Marc Portier Gesendet: Montag, 22. Dezember 2003 17:12 An: [EMAIL PROTECTED] Betreff: Re: AW: AW: AW: AW: [Woody] Binding problem for missing elements in source file oh blast, sorry for being so bone-headed, but I really needed your example here... you refer to the document-order of the node! so not just about the creation of the new node, but creating it at a very specific place only way out (for now) seems to be to get into writing your own custom DOMfactory that knows about your specific document (see over at o.a.c.util and register that on the JXPAthContext before handing it over to the binding using some javascript that looks like this:) example snatched from a recent posting on cocoon-dev: see http://marc.theaimsgroup.com/?l=xml-cocoon-devm=107062994517119w=2 in the flow, don't load/save the DOM directly, but through a JXPathContext as follows; var doc = readDocument(url); var bindingCtx = createBindingContext(doc); form.load(bindingCtx); form.showForm(pipeline); form.save(bindingCtx); And here's the createBindingContext function: function createBindingContext(document) { // Create a JXPath context on the document. var xpathContext = Packages.org.apache.commons.jxpath.JXPathContext.newContext(document); you should replace this by instantiating your own implementation of the Factory interface for jxpath (see here: http://jakarta.apache.org/commons/jxpath/apidocs/org/apache/common s/jxpath/AbstractFactory.html) you should find some hints for doing this in the current implementation of the generic (but simply adding at the end) DOMFactory implementation over at: http://cvs.apache.org/viewcvs.cgi/cocoon-2.1/src/java/org/apache/c ocoon/util/jxpath/DOMFactory.java?rev=1.1view=auto in case you get tempted in doing the generic implementation for any possible DTD, then be sure to send in the patch :-) // Set it to lenient xpathContext.setLenient(true); // Add the necessary factory create elements and attributes as needed on non-existing paths xpathContext.setFactory(new Packages.org.apache.cocoon.util.jxpath.DOMFactory()); return xpathContext; } HTH, -marc= Markus Heussen wrote: -Ursprüngliche Nachricht- Von: Marc Portier Gesendet: Montag, 22. Dezember 2003 12:41 An: [EMAIL PROTECTED] Betreff: Re: AW: AW: AW: [Woody] Binding problem for missing elements in source file Markus Heussen wrote: Many thanks to you, now everything works fine :-) yeah, we get there *eventually* But two questions I still have: 1. Is it possible to control the position where nodes will be created within a context? Sometimes this is necessary if the xml schema defines the sequence of nodes. could you be more specific? naieve first thought: the @path attribute of the wb:context has precisely this purpose (given your previous questions and remarks that sounds like a too simplistic answer though) My source file contains something like this: ... v:Person Rolle=Versicherungsnehmer v:Anrede Schlüssel=1/ !-- here a v:Titel node is missing -- v:Vornamefirstname/v:Vorname v:Namename/v:Name v:Anschrift v:Straßestreet/v:Straße v:Plz12345/v:Plz v:Ortlocation/v:Ort /v:Anschrift v:Geschlecht Schlüssel=1/ v:Geburtsdatum-00-00/v:Geburtsdatum v:Familienstand Schlüssel=1/ v:StaatsangehörigkeitD/v:Staatsangehörigkeit ... /v:Person ... And here is my binding: ... wb:context path=v:Partner/[EMAIL PROTECTED]'Versicherungsnehmer'][1] wb:value id=vn_anrede path=v:Anrede/@Schlüssel lenient=true/ wb:value id=vn_titel path=v:Titel lenient=true/ wb:value id=vn_vorname path=v:Vorname lenient=true/ wb:value id=vn_name path=v:Name/ wb:value id=vn_namenszusatz path=v:Namenszusatz lenient=true/ wb:context path=v:Anschrift wb:value id=vn_strasse path=v:Straße lenient=true/ wb:value id=vn_plz path=v:Plz/ wb:value id=vn_ort path=v:Ort/ /wb:context ... /wb:context ... After submission the v:Titel node is recognized as missing and will be created as the last node of the context. So my result looks like this: ... v:Person Rolle=Versicherungsnehmer v:Anrede Schlüssel=1/ !-- here the v:Titel node has to be created --!--v:TitelDr./v:Titel-- v:Vornamefirstname/v:Vorname v:Namename/v:Name v:Anschrift v:Straßestreet/v:Straße v:Plz12345/v:Plz v:Ortlocation/v:Ort /v:Anschrift v:Geschlecht Schlüssel=1/ v:Geburtsdatum-00-00/v:Geburtsdatum v:Familienstand Schlüssel=1/ v:StaatsangehörigkeitD/v:Staatsangehörigkeit ... !-- here the node
AW: AW: AW: [Woody] Binding problem for missing elements in source file
Many thanks to you, now everything works fine :-) But two questions I still have: 1. Is it possible to control the position where nodes will be created within a context? Sometimes this is necessary if the xml schema defines the sequence of nodes. 2. If the input of a date form field is for example 31.02.2004 after submission this value is automatically set to 02.03.2004. How can I change this behavior? Is there a attribute I can set in the woody binding or definition file to get the behavior like using the setLenient(false) method of the class SimpleDateFormat? Thanks for helping me! Greetings, Markus -Ursprüngliche Nachricht- Von: Marc Portier Gesendet: Samstag, 20. Dezember 2003 16:08 An: [EMAIL PROTECTED] Betreff: Re: AW: AW: [Woody] Binding problem for missing elements in source file Yo, all. answer is in the combination of using - @lenient (for surviving reads from paths that don't exist yet) - and the o.a.c.util.jxpath.DOMFactory (for creating new paths on the target XML) for some mysterious reason one of my commits messed up the auto-registry of that factory on Nodes, fixed now. regards, -marc= Markus Heussen wrote: -Ursprüngliche Nachricht- Von: Upayavira [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 18. Dezember 2003 12:12 An: [EMAIL PROTECTED] Betreff: Re: AW: [Woody] Binding problem for missing elements in source file Markus Heussen wrote: -Ursprungliche Nachricht- Von: Upayavira Gesendet: Mittwoch, 17. Dezember 2003 16:49 An: [EMAIL PROTECTED] Betreff: Re: [Woody] Binding problem for missing elements in source file Markus Heussen wrote: Hi all. I'm new to the Woody framework but till now it works fine for me. But I have one problem I don't know how to solve at best :-( I get the following exception when I submit the form: org.apache.cocoon.woody.binding.BindingException: Problem binding field vn_titel (parent = ) to xpath v:Titel (context xpath = /soap-env:Envelope[1]/soap-env:Body[1]/v:Versicherung[1]/v:Par tner[1]/v:P er son[1]) org.apache.commons.jxpath.JXPathException: No value for xpath: v:Titel The field is defined in the form definition file and a binding is also defined in the woody binding file. But in one case there is no corresponding XML tag in my source file. In other case there is one. I have to create the element if it is missing. So how can I manage this situation at best? Who can point me to the right direction? Not sure if I'm right here, but I think you need 'lenient' jxpath within binding - this means that, if jxpath doesn't find a node, it ignores it, rather than causing an exception. But this is not exactly what I have to do. If there is no node in the source file I have to create this node before the binding saves it back to the source. How can I manage this at best? I have no experience in using the woody framework. When I set @readonly to true within the binding I get no exceptions because there is no saving process. But in fact I have to save it. I tried something around wb:insert-node/ but it didn't work :-( wb:delete-node/ does what I expected. Anyone there who can give me a hint? I really need this feature. I'm no expert either, and I've never used binding. I am talking about 'lenient' not 'readonly' or 'direction'. It was committed into CVS this morning, here's a snippet from the status.xml file: action dev=MPO type=add Changed semantics on the cforms binding. Added a @direction (which replaces the @read-only) and a @lenient attribute on all binding implementations in the pool. /action Still don't know if this is what you're after. Regards, Upayavira I spend some time learning more about this lenient thing and meanwhile I use a current developer version (about two hours old) for my application. But still it doesn't work :-( Maybe somebody can explain what I'm doing wrong. I have something like this: woody binding: wb:value id=vn_titel path=v:Titel lenient=true/ woody field: wd:field id=vn_titel required=false wd:labelTitel/wd:label wd:datatype base=string/ /wd:field On submit I get the following exception: org.apache.commons.jxpath.JXPathException: Exception trying to create xpath v:Titel; Factory is not set on the JXPathContext - cannot create path: /soap-env:Envelope[1]/soap-env:Body[1]/v:Versicherung[1]/v:Partner [1]/v:Pers on[1] Though it was recognized that the v:Titel node is not present in my source file. But what's my mistake? I also tried to set the lenient attribute on the parent context element but I still get the exception. I need your help because this feature is very basic for me. Thanks for your help. Markus Markus There has been discussion on the dev list about adding this over
[Woody] wd:datatype base=date - setLenient(false) behavior
If the input of the date form field is for example 31.02.2004 after submission this value is automatically set to 02.03.2004. How can I change this behavior? Is there a attribute I can set in the woody binding or definition file to get the behavior like using the setLenient(false) method in java? Thanks for your help! Markus woody defintion: wd:field id=vn_geburtsdatum required=true wd:labelGeburtsdatum/wd:label wd:datatype base=date wd:convertor wd:patterns wd:patterndd.MM./wd:pattern /wd:patterns /wd:convertor /wd:datatype /wd:field woody binding: wb:value id=vn_geburtsdatum path=v:Geburtsdatum wd:convertor datatype=date type=formatting wd:patterns wd:pattern-MM-dd/wd:pattern /wd:patterns /wd:convertor /wb:value - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[Woody] Help needed doing date validation
How can I validate a date within the form definition file? I need to check if the date is given in the right format (dd.MM.) and if the date is valid. I have something like this: source: v:Geburtsdatum1973-11-16/v:Geburtsdatum definition: wd:field id=vn_geburtsdatum required=true wd:labelGeburtsdatum/wd:label wd:datatype base=date wd:convertor wd:patterns wd:patterndd.MM./wd:pattern /wd:patterns /wd:convertor /wd:datatype /wd:field binding: wb:value id=vn_geburtsdatum path=v:Geburtsdatum wd:convertor datatype=date type=formatting wd:patterns wd:pattern-MM-dd/wd:pattern /wd:patterns /wd:convertor /wb:value Thanks for your help! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: [Woody Validation] general.field-required - how to change it?
Hi, add the i18n transformer to your pipe after the woody transformer and don't forget to add the transformer deklaration to your sitemap components. At last you have to create a xml file with the error messages. Look at the woody examples under samples/woody/. EXAMPLE sitemap: map:components map:transformer logger=sitemap.transformer.i18n name=i18n pool-grow=5 pool-min=50 pool-max=150 src=org.apache.cocoon.transformation.I18nTransformer catalogues default=woody catalogue id=woody name=[messages file name] location=[path to your message file]/ /catalogues cache-at-startuptrue/cache-at-startup /map:transformer /map:components map:match pattern=form-display map:generate type=file src=resources/forms/templates/test.template/ map:transform type=woody/ map:transform type=i18n map:parameter name=locale value=en-US/ /map:transform map:transform type=xsltc src=stylesheets/woody.xsl/ map:serialize type=html/ /map:match xml file with messages: ?xml version=1.0 encoding=ISO-8859-1? catalogue message key=general.field-requiredThis field is required./message /catalogue Greetings :-) Markus -Ursprungliche Nachricht- Von: Marcin Okraszewski Gesendet: Mittwoch, 17. Dezember 2003 22:28 An: [EMAIL PROTECTED] Betreff: [Woody Validation] general.field-required - how to change it? Hi, How to change default error message when a field is required (general.field-required)? Regards, Marcin Okraszewski - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: [Woody] Binding problem for missing elements in source file
-Ursprungliche Nachricht- Von: Upayavira Gesendet: Mittwoch, 17. Dezember 2003 16:49 An: [EMAIL PROTECTED] Betreff: Re: [Woody] Binding problem for missing elements in source file Markus Heussen wrote: Hi all. I'm new to the Woody framework but till now it works fine for me. But I have one problem I don't know how to solve at best :-( I get the following exception when I submit the form: org.apache.cocoon.woody.binding.BindingException: Problem binding field vn_titel (parent = ) to xpath v:Titel (context xpath = /soap-env:Envelope[1]/soap-env:Body[1]/v:Versicherung[1]/v:Partner[1]/v:P er son[1]) org.apache.commons.jxpath.JXPathException: No value for xpath: v:Titel The field is defined in the form definition file and a binding is also defined in the woody binding file. But in one case there is no corresponding XML tag in my source file. In other case there is one. I have to create the element if it is missing. So how can I manage this situation at best? Who can point me to the right direction? Not sure if I'm right here, but I think you need 'lenient' jxpath within binding - this means that, if jxpath doesn't find a node, it ignores it, rather than causing an exception. But this is not exactly what I have to do. If there is no node in the source file I have to create this node before the binding saves it back to the source. How can I manage this at best? I have no experience in using the woody framework. When I set @readonly to true within the binding I get no exceptions because there is no saving process. But in fact I have to save it. I tried something around wb:insert-node/ but it didn't work :-( wb:delete-node/ does what I expected. Anyone there who can give me a hint? I really need this feature. Markus There has been discussion on the dev list about adding this over the last couple of days. I'm not sure if it is in CVS Cocoon yet, but I suspect it will be within a day or so. Regards, Upayavira Thanks for your help, Markus. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: AW: [Woody] Binding problem for missing elements in source file
-Ursprüngliche Nachricht- Von: Upayavira [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 18. Dezember 2003 12:12 An: [EMAIL PROTECTED] Betreff: Re: AW: [Woody] Binding problem for missing elements in source file Markus Heussen wrote: -Ursprungliche Nachricht- Von: Upayavira Gesendet: Mittwoch, 17. Dezember 2003 16:49 An: [EMAIL PROTECTED] Betreff: Re: [Woody] Binding problem for missing elements in source file Markus Heussen wrote: Hi all. I'm new to the Woody framework but till now it works fine for me. But I have one problem I don't know how to solve at best :-( I get the following exception when I submit the form: org.apache.cocoon.woody.binding.BindingException: Problem binding field vn_titel (parent = ) to xpath v:Titel (context xpath = /soap-env:Envelope[1]/soap-env:Body[1]/v:Versicherung[1]/v:Par tner[1]/v:P er son[1]) org.apache.commons.jxpath.JXPathException: No value for xpath: v:Titel The field is defined in the form definition file and a binding is also defined in the woody binding file. But in one case there is no corresponding XML tag in my source file. In other case there is one. I have to create the element if it is missing. So how can I manage this situation at best? Who can point me to the right direction? Not sure if I'm right here, but I think you need 'lenient' jxpath within binding - this means that, if jxpath doesn't find a node, it ignores it, rather than causing an exception. But this is not exactly what I have to do. If there is no node in the source file I have to create this node before the binding saves it back to the source. How can I manage this at best? I have no experience in using the woody framework. When I set @readonly to true within the binding I get no exceptions because there is no saving process. But in fact I have to save it. I tried something around wb:insert-node/ but it didn't work :-( wb:delete-node/ does what I expected. Anyone there who can give me a hint? I really need this feature. I'm no expert either, and I've never used binding. I am talking about 'lenient' not 'readonly' or 'direction'. It was committed into CVS this morning, here's a snippet from the status.xml file: action dev=MPO type=add Changed semantics on the cforms binding. Added a @direction (which replaces the @read-only) and a @lenient attribute on all binding implementations in the pool. /action Still don't know if this is what you're after. Regards, Upayavira I spend some time learning more about this lenient thing and meanwhile I use a current developer version (about two hours old) for my application. But still it doesn't work :-( Maybe somebody can explain what I'm doing wrong. I have something like this: woody binding: wb:value id=vn_titel path=v:Titel lenient=true/ woody field: wd:field id=vn_titel required=false wd:labelTitel/wd:label wd:datatype base=string/ /wd:field On submit I get the following exception: org.apache.commons.jxpath.JXPathException: Exception trying to create xpath v:Titel; Factory is not set on the JXPathContext - cannot create path: /soap-env:Envelope[1]/soap-env:Body[1]/v:Versicherung[1]/v:Partner[1]/v:Pers on[1] Though it was recognized that the v:Titel node is not present in my source file. But what's my mistake? I also tried to set the lenient attribute on the parent context element but I still get the exception. I need your help because this feature is very basic for me. Thanks for your help. Markus Markus There has been discussion on the dev list about adding this over the last couple of days. I'm not sure if it is in CVS Cocoon yet, but I suspect it will be within a day or so. Regards, Upayavira Thanks for your help, Markus. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[Woody] Binding problem for missing elements in source file
Hi all. I'm new to the Woody framework but till now it works fine for me. But I have one problem I don't know how to solve at best :-( I get the following exception when I submit the form: org.apache.cocoon.woody.binding.BindingException: Problem binding field vn_titel (parent = ) to xpath v:Titel (context xpath = /soap-env:Envelope[1]/soap-env:Body[1]/v:Versicherung[1]/v:Partner[1]/v:Per son[1]) org.apache.commons.jxpath.JXPathException: No value for xpath: v:Titel The field is defined in the form definition file and a binding is also defined in the woody binding file. But in one case there is no corresponding XML tag in my source file. In other case there is one. I have to create the element if it is missing. So how can I manage this situation at best? Who can point me to the right direction? Thanks for your help, Markus. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: [Woody] Map key values after woody xml binding to values stored in database tables [solved]
With some tiny changes to the xslt that does the transformation to html I have the solution. Many thanks to you Marc! :-) -Ursprüngliche Nachricht- Von: Marc Portier Gesendet: Dienstag, 16. Dezember 2003 09:13 An: [EMAIL PROTECTED] Betreff: Re: [Woody] Map key values after woody xml binding to values stored in database tables Markus, have a look into the documentation on the wiki via http://wiki.cocoondev.org/Wiki.jsp?page=Woody check out the possibilities of the wd:select-list here: http://wiki.cocoondev.org/Wiki.jsp?page=WoodyDatatypeReference that should get you going, regards, -marc= Markus Heussen wrote: Hi Cocooners! I decided to use the woody form framwork for my application but I have one problem to solve. I bind a XML message to the form model like it is presented in the woody samples. But in my XML structure I have some keys that have to be mapped to values stored in some database tables. My XML message to bind to the form: ... v:Anrede Schlüssel=1/ ... My form definition XML file: ... wd:output id=anrede required=true wd:labelAnrede/wd:label wd:datatype base=string/ /wd:output ... My binding XML file: ... wb:value id=anrede path=//v:Anrede/@Schlüssel/ ... My form template XML file: ... wt:widget-label id=anrede/ : wt:widget id=anrede/ ... My result: ... Anrede : 1 ... But 1 is the key for the value Herr which is stored in a rdbms. Can anyone show me an elegant way to get the values from the database? Thank's for your help! Markus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Marc Portierhttp://outerthought.org/ Outerthought - Open Source, Java XML Competence Support Center Read my weblog athttp://blogs.cocoondev.org/mpo/ [EMAIL PROTECTED] [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: XSP making call to fetch html to include for final output?
Title: XSP making call to fetch html to include for final output? why don't you use the html generator to do this? it uses jtidy to generate xhtml from the source html code which can be used in later transformations http://cocoon.apache.org/2.0/userdocs/generators/html-generator.html -Ursprüngliche Nachricht-Von: Tsui, AlbanGesendet: Mittwoch, 19. November 2003 11:08An: Cocoon UsersBetreff: XSP making call to fetch html to include for final output? Hi I am thinking of writing an xsp page and internally it will try to make a POST request (hiding from the user that we are donig this...) to another web server to fetch a html page and serialises this back as my own html. Could this be done? The returned html from the foreign server is only html and not xhtml and how would I include it in XSP as part of the xml? Any html to xhtml converter in cocoon or even from java api itself? Btw, i am using cocoon 2.0.3. Cheers AT This message may contain privileged and/or confidential information. If you have received this e-mail in error or are not the intended recipient, you may not use, copy, disseminate or distribute it; do not open any attachments, delete it immediately from your system and notify the sender promptly by e-mail that you have done so. Thank you.
AW: XSP making call to fetch html to include for final output?
Title: XSP making call to fetch html to include for final output? But you can also cinclude/ a sitemap resource. What about doing something like this in your xsp? cinclude xsp:attribute name="src"cocoon:/html-generator-matcher?param1=xsp-request:get-parameter name="param1"/amp;param2=xsp-request:get-parameter name="param2"//xsp:attribute /cinclude The posted request parameters are used to pass form values to the matcher. And in your pipeline matcher which generates xhtml from your external source something like this could be done: map:match pattern="html-generator-matcher" map:generate src=""http://some-uri?parameter1={request-param:param1}amp;parameter2={request-param:param2">http://some-uri?parameter1={request-param:param1}amp;parameter2={request-param:param2}" type="html"/ map:transform src=""/ map:serialize type="xml"/ /map:match This matcher should be placed in a pipeline with internal-only attribute is set to true. Maybe this help?! -Ursprüngliche Nachricht-Von: Tsui, AlbanGesendet: Mittwoch, 19. November 2003 11:45An: '[EMAIL PROTECTED]'Betreff: RE: XSP making call to fetch html to include for final output? Thanks for your info but it doesn't seem like what I need. I need to "POST" a form to get the page and this jtidy thing seems to take in an url path for the page. So inside my XSP I need to do some manipulation to set up a form to POST first which I was not clear in my original message. Sorry. Any more suggestions? -Original Message-From: Markus Heussen [mailto:[EMAIL PROTECTED]Sent: 19 November 2003 10:42To: [EMAIL PROTECTED]Subject: AW: XSP making call to fetch html to include for final output? why don't you use the html generator to do this? it uses jtidy to generate xhtml from the source html code which can be used in later transformations http://cocoon.apache.org/2.0/userdocs/generators/html-generator.html -Ursprüngliche Nachricht-Von: Tsui, AlbanGesendet: Mittwoch, 19. November 2003 11:08An: Cocoon UsersBetreff: XSP making call to fetch html to include for final output? Hi I am thinking of writing an xsp page and internally it will try to make a POST request (hiding from the user that we are donig this...) to another web server to fetch a html page and serialises this back as my own html. Could this be done? The returned html from the foreign server is only html and not xhtml and how would I include it in XSP as part of the xml? Any html to xhtml converter in cocoon or even from java api itself? Btw, i am using cocoon 2.0.3. Cheers AT This message may contain privileged and/or confidential information. If you have received this e-mail in error or are not the intended recipient, you may not use, copy, disseminate or distribute it; do not open any attachments, delete it immediately from your system and notify the sender promptly by e-mail that you have done so. Thank you. This message may contain privileged and/or confidential information. If you have received this e-mail in error or are not the intended recipient, you may not use, copy, disseminate or distribute it; do not open any attachments, delete it immediately from your system and notify the sender promptly by e-mail that you have done so. Thank you.
AW: XSP esql problem with Cocoon 2.1.2
Are u sure you have configured the driver in your web.xml and the jdbc connection in cocoon.xconf? -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] Gesendet: Dienstag, 18. November 2003 15:44 An: [EMAIL PROTECTED] Betreff: XSP esql problem with Cocoon 2.1.2 Hello, Since I migrated a xsp application to Cocoon 2.1.2 this esql code produces the error below. Is someone has a idea? **code** esql:connection esql:poolwfmgt/esql:pool esql:execute-query esql:querySELECT ur_sector, ur_fullname, ur_role FROM Users WHERE ur_name = 'TFRTHSY1'/esql:query esql:results esql:row-results xsp:logic sector = esql:get-string column=ur_sector/; session.setAttribute(sector,sector); user = esql:get-string column=ur_fullname/; session.setAttribute(user,user); role = esql:get-string column=ur_role/; session.setAttribute(role,role); /xsp:logic /esql:row-results /esql:results /esql:execute-query /esql:connection **code** **error** ERROR (2003-11-18) 15:23.34:842 [sitemap.sitemap.generator.serverpages] (/woc_cocoon_2.1.2/wfm/login) Thread-8/login_xsp: java.sql.SQLException: No suitable driver at java.sql.DriverManager.getConnection(Unknown Source) at java.sql.DriverManager.getConnection(Unknown Source) at org.apache.avalon.excalibur.datasource.JdbcConnectionFactory.newInstance(Jdb cConnectionFactory.java:185) at org.apache.avalon.excalibur.pool.ResourceLimitingPool.newPoolable(ResourceLi mitingPool.java:672) etc... **error** Thanks Sylvain - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Esql: Error getting ascii data for column xxx
I'm using the esql logicsheet to query an ms access database. Running under Cocoon 2.0.4 everything works fine, but now using Cocoon 2.1.2 I'm getting the following error: Error getting ascii data for column xxx cause: java.sql.SQLException: [Microsoft][ODBC Driver Manager] Ungültiger Cursorstatus Anybody out there who can help me solving this error? Thanks, Markus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
access session context from flowscript
Hi everybody, I need to access the session authentication context created by the authentication framework using javascript within flowscript. Can anybody give some javascript code that does it for me? Or how can I use the class XSPSessionHelperFw to do it for me (see below)? public class XSPSessionFwHelper { /** GetXML Fragment from the given session context and path * * * @param session The Session object * @param context The Session context tha define where to search * @param path The parameter path * @param defaultValue Value to substitute in absence of the required Fragment **/ public static DocumentFragment getXML(ComponentManager cm, String context, String path) throws ProcessingException { SessionManager sm = null; DocumentFragment df = null; try { // Start looking up the manager sm = (SessionManager)cm.lookup(SessionManager.ROLE); // Make our work df = sm.getContextFragment(context, path); if (sm != null) { cm.release((Component)sm); } } catch (ComponentException ce) { throw new ProcessingException(Error during lookup of SessionManager component., ce); } finally { // End releasing the sessionmanager cm.release((Component)sm); } return df; } } Many thanks, Markus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: Passing objects as parameters
Hi Ralph, you can use flowscript with sendPage() or sendPageAndWait() functions to pass any java or javascript object to your sitemap. Greetings, Markus I was hoping to use an input module to create an object to pass as a parameter to my generator. However, Parameters only accepts Strings. Is there another easy way to do this? Ralph Goers Sr. Software Engineer, Software Architecture Digital Insight Corporation web: www.digitalinsight.com voice: 818-878-6020 fax: 818-878-7555 The fine print: this email may contain confidential and privileged material for the sole use of the intended recipient. Any review or distribution by others is strictly prohibited. If you are not the intended recipient please contact the sender and delete all copies. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Session attributes lost
Hi all, Our environment: * Win2K * first Apache Tomcat/4.1.18 with JDK 1.3.1_07-b02 * Apache 2.0.44 in Front of the Tomcat an with mod_jk2 2.0.43 running for load balancing * JBoss 3.2.1 with a separate JDK 1.3.1_07 included a Tomcat 4.1.24 We have some strange losts of session attribute values. It seems that the problem occurs in particular when the servers load is high. Our Cocoon 2.0.4 application stores each request parameter and any user given form data in separate session attributes. Again and again it happens, that stored session attributes are lost. In all cases the session itself seems to be valid. It also happens that a date like 19.10.2000 stored in a session attribute returns on getAttribute the value 19.10.. Mostly the informations stored in session attributes are string objects. I searched round about few days in different mailing lists for hints finding a fix for this problem. It seems that we are not alone with this problem. But still I did not find a answer :-( Anybody out there who can turn us to the right direction to solve this behavior? Please help us! Best regards, Markus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: cocoon url redirection using action?
Title: cocoon url redirection using action? Hi Alban, map:redirect-to uri="cocoon:/{gatewayredirectURL}"/ should work because if cocoon:/ protocol is used it is only a internal redirect and not a new request. "A redirection URI can make use of the cocoon: protocol to return content from another Cocoon pipeline. In this case, the redirection happens internally. The content from the redirected URI is returned to the client as if it came from the original URI." (http://cocoon.apache.org/2.1/userdocs/concepts/redirection.html) Greetings, Markus -Ursprüngliche Nachricht-Von: Tsui, Alban [mailto:[EMAIL PROTECTED]Gesendet: Donnerstag, 23. Oktober 2003 17:30An: [EMAIL PROTECTED]Betreff: cocoon url redirection using action? Hi I want to do some redirection using map:mathc pattern="gateway" map:act type="xsp-action" src="" map:redirect-to uri="{gatewayredirectURL}"/ /map:act /map:match Assuming the redirect url is generated by my action as above, would it automatically redirect all the queryparameters (POSTed) along to the redirect url? Or do I need to do something special in the action codes to pass along the posted query parameters? What I have in mind is that I have a url like: cocoon/gateway and a form is posted to this url and then from my action, it would examine some parameters and then redirect the posted form to another url for further processing by keeping all the request parameters orginally posted to cocoon/gateway. Any help would be appreciated. Thanks. Alban P.S. I am using cocoon 2.0.3 on tomcat. Join us at Cognos' biggest event of the year Enterprise 2003, The Cognos Business Forum. Taking place in over 25 cities around the world, it's an opportunity for Business and IT leaders to learn about strategies for driving performance. Visit http://www.cognos.com/enterprise03 for more details. This message may contain privileged and/or confidential information. If you have received this e-mail in error or are not the intended recipient, you may not use, copy, disseminate or distribute it; do not open any attachments, delete it immediately from your system and notify the sender promptly by e-mail that you have done so. Thank you.
sendmail logicsheet
hi all, is it possible to send html mails using the xsp logicsheet sendmail.xsl? ` i'm using cocoon 2.1.2. html attachments work fine, but i need to send the body with mime-type text/html. i tried something like sendmail:body mime-type=text/htmlutil:get-source uri=cocoon:/xhtml//sendmail:body but it doesn't work :-( thanks for any hint, markus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: xsp-session:getxml XSP
maybe use session:getxml context=mycontext path=/User/Name/ and the session transformer of cocoon 2.1? http://cocoon.apache.org/2.1/developing/webapps/authentication.html -Ursprungliche Nachricht- Von: Patrick Hess [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 17. Oktober 2003 15:03 An: [EMAIL PROTECTED] Betreff: xsp-session:getxml XSP I'm trying to get my authentification stuff back from the session in a XSP page - using xsp-session:getxml does not work for me. In the wiki there is an article that says the same: http://wiki.cocoondev.org/Wiki.jsp?page=LDAPPortalAuthentification+and+Reque stUserInfoFromXSP (Part2 : Getting user info from XSP) Since it's not possible to use xsp-session:getxml I had to find an alternative. Is it really not possible? Thanks and have a nice weekend, Patrick - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Flowscript problem using function in form.sendView()
Hi all! I'm new to Flowscript (2.1.2) and I have some problems using the jxforms functionality. I modified the jxforms samples delivered with Cocoon and get NullPointerExceptions always after the second wrong value. I need to use a custom function keyIsValid which does some decoding and checkings for me. This function (see below) uses an Java class (import) to do it. The function returns the decoded key or an empty string. Even if I do the function functionality inline I have the same negative effect. Only if I don't do the function call the validation does what I expect. If I do the function call, the first validation does what I expect, but if I try a second wrong value for my identCode I get a NullPointerException. I don't excactly know how continuations are working. So maybe after the second request I don't have access to a program state? Can anybody help me please? Thanx :-) The first flowscript file defined in the sitemap contains the following form handler function snippet: form.sendView(views/UserIdentification.view, function(form) { var bean = form.getModel(); if (bean.age 40) { form.addViolation(/age, Hey, you're too old); } // if i comment out the following it works fine if (keyIsValid(bean.identCode) == ) { form.addViolation(/identCode, Try again); } } ); The second flowscript file defined in the sitemap contains the following code: importPackage(Packages.com.rheinland.online.util); function keyIsValid(key) { var decodeKey = ; try { decodeKey = Encoder.decode(key); } catch (Exception) { cocoon.log.debug(Failed); } return decodeKey; } - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: Call Axis based web services using flowscript
Thanx for your help, Tony! :-) I'm new to Cocoon and especially new to 2.1.1 and the flowscript concept. Now I realized that I can use any Java packages within a flowscript. So I decided to do it with java. Maybe someone have the same question so here is what I did: To generate the java classes to call the web service I use Axis wsdl2java, copy them into the WEB-INF/lib directory and load them into my flowscript using importPackage(java.util); importPackage(Packages.com.rheinland.online.tarifierung.binding); (I also need java.util cause the response is a hash map). I add the following pipeline into my sitemap map:match pattern=soap map:call function=soapCall/ /map:match and the the following flowscript function into my script function soapCall() { var service = new KfzTarifierungWsServiceLocator(); cocoon.log.debug(service.getKfzTarifierungWsAddress()); var port = service.getKfzTarifierungWs(); var hm = port.call(5791, 4711, User, Password, 2004-01-01, 1, 112, 1, 87, kw, 0005, 644, 2000-10-19, 1, 0, 2001-04-11, 1440, 28500, -1, -1, 10, 51, 56, OH022, 0, 0, 33, 50, OV022, 0, 3, 1944-11-02, 1, 1973-05-24, 20, 3, 2, 3, -1, -1, -1, 3, -1, -1); cocoon.log.debug(hm); ... ... cocoon.sendPageAndWait(views/...); ... ... } and it works fine. This way to do a rpc call to a web service is much more efficient than using the soap logicsheet within xsp pages. Latter I did before using Cocoon 2.0.4. Best regards to all Cocooners :-) Markus -Ursprungliche Nachricht- Von: Tony Collen [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 1. Oktober 2003 05:32 An: [EMAIL PROTECTED] Betreff: Re: Call Axis based web services using flowscript Markus Heussen wrote: Hi all, can someone give me a hint how I can call a rpc or document style based Axis web service from a flowscript? Maybe there are useful descriptions somewhere in the web? Markus, Have a look at the recent thread entitled, Flow and Web Services [1] on the mailing list archive for cocoon-dev. That should point you in the right direction. [1] http://marc.theaimsgroup.com/?l=xml-cocoon-devm=106432248511659w=2 Greetings, Markus Regards, Tony - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: Apache 2.0.44 + Tomcat 4.1.25 + mod_jk2-2.0.43 + Cocoon 2.0.4
That's my fault. We are using 4.1.24 win32 binaries. Sorry ;-) -Ursprungliche Nachricht- Von: Chris Wilkes [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 11. Juli 2003 15:10 An: [EMAIL PROTECTED] Betreff: Re: Apache 2.0.44 + Tomcat 4.1.25 + mod_jk2-2.0.43 + Cocoon 2.0.4 On Fri, Jul 11, 2003 at 02:48:52PM +0200, Markus Heussen wrote: I've crasy error messages in the apache logs. something like the following is printed out after the second request that is routed to tomcat: [error] ChannelSocket.receive(): Error receiving message body -1 0 [error] workerEnv.processCallbacks() Error reading reply [error] ajp13.service() ajpGetReply recoverable error 12 And so on. But the Apache 2 is receiving a response from tomcat, but with a scaring performance. Also the Tomcat logs throw error. stderror.log contains something like this after the second request: [INFO] JKMain - -Jk running ID=0 time=0/15 config=D:\APPSERVER\tomcat41\conf\jk2.properties [INFO] ChannelSocket - -Connection timeout reached [INFO] ChannelSocket - -Connection timeout reached [INFO] ChannelSocket - -Connection timeout reached Are you using Tomcat 4.1.25? The latest stable release is 4.1.24, you might want to try and use that. Did you use the binary release from the Jakarta site? Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]