Cocoon deffo does not work in Jetty
Hi, The Jetty guys confirmed that Cocoon 2.0.3 does not work in Jetty (JBoss 3.0.3/JBossWeb) - so I am not going mad. Anyone else searching the groups with the same problem can follow the thread on YahooGroups under the title JSP Engine in the group 'jetty-support'. HTH someone in the future Charlene __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: i18n and xmlform combination-HELP
Title: RE: i18n and xmlform combination-HELP I just applied i18n into the XMLForm sample of Cocoon2.1 like this, but it cant apply i18n in sitemap i declare : map:match pattern=* map:act type=WizardAction map:parameter name=xmlform-validator-schema-ns value=http://www.ascc.net/xml/schematron/ map:parameter name=xmlform-validator-schema value=wizard/validate.xml/ map:parameter name=xmlform-id value=form-feedback/ map:parameter name=xmlform-scope value=session/ map:parameter name=xmlform-model value=org.apache.cocoon.samples.xmlform.UserBean/ map:generate type=serverpages src=""> map:transform type=xmlform label=xml/ map:transform src=""> map:act type=locale map:transform type=i18n map:parameter name=locale value=vi/ /map:transform /map:act map:transform type=xalan src=""> map:transform src=""> map:act type=locale map:transform type=i18n map:parameter name=locale value=vi/ /map:transform /map:act map:serialize type=html/ /map:act /map:match and my start.xsp like this: ?xml version=1.0? xsp:page language=java xmlns:xsp=http://apache.org/xsp xmlns:xsp-request=http://apache.org/xsp/request/2.0 xmlns:i18n=http://apache.org/cocoon/i18n/2.0 document menu lang hrefstart?locale=en/href titleEnglish/title /lang lang hrefstart?locale=fr/href titleFrench/title /lang /menu br/ br/ br/ table align=center width=50% cellspacing=20 tr td align=center h3 a href="" i18n:texthomepage/i18n:text /a /h3 /td /tr /table /document /xsp:page and my userIdentity.xsp like this : ?xml version=1.0? xsp:page language=java xmlns:xsp=http://apache.org/xsp xmlns:xsp-request=http://apache.org/xsp/request/2.0 xmlns:i18n=http://apache.org/cocoon/i18n/2.0 document xmlns:xf=http://xml.apache.org/cocoon/xmlform/2002 menu lang hrefwizard?cocoon-action-start=trueamp;locale=en/href titleEnglish/title /lang lang hrefwizard?cocoon-action-start=trueamp;locale=fr/href titleFrench/title /lang /menu xf:form id=form-feedback view=userIdentity action="" method=GET xf:caption i18n:textpersonal_information/i18n:text /xf:caption . and wizard2html.xsl : ?xml version=1.0 encoding=UTF-8? xsl:stylesheet version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform xmlns:xf=http://xml.apache.org/cocoon/xmlform/2002 exclude-result-prefixes=xalan xmlns:i18n=http://apache.org/cocoon/i18n/2.0 xsl:template match=document html head titleXMLForm - Cocoon Feedback Wizard/title /head body xsl:apply-templates / /body /html /xsl:template xsl:template match=menu xsl:for-each select=lang a href="" select=title//a /xsl:for-each /xsl:template but every time i click to change from english to french in the userIdentify form and even in the english form the part xf:caption i18n:textpersonal_information/i18n:text /xf:caption always display 'personal_information' (message key)- not 'Personal Information' although i define the messages files and in sitemap : map:transformer logger=sitemap.transformer.i18n name=i18n src=""> catalogue-namemessages/catalogue-name catalogue-locationtranslation/catalogue-location cache-at-startuptrue/cache-at-startup /map:transformer for the directory and the file i am really getting crazy with it!! can somebody tell me what i did wrong ??? thanks very very much in advance GD -Original Message- From: Kirchhoff, Lars [mailto:[EMAIL PROTECTED]] Sent: 10 December 2002 13:54 To: '[EMAIL PROTECTED]' Subject: AW: i18n and xmlform combination-HELP have you set the {locale} variable correctly or are you sure this working. my sitemap looks like this: - code - map:act type=locale map:transform type=i18n map:parameter name=locale value={locale}/ /map:transform /map:act - /code try to set the locale parameter to a hard coded value to see if this is working: eg. map:parameter name=locale value=tw/ to reference a dictionary like dict_tw.xml ciao Lars -Ursprüngliche Nachricht- Von: Hong Gia Dinh [mailto:[EMAIL PROTECTED]] Gesendet: Montag, 9. Dezember 2002 18:38 An: [EMAIL PROTECTED] Betreff: i18n and xmlform combination-HELP could sb explain me why i cant use the message key in the message when i use i18n and xmlform ? i applied the sample in the how-to i18n and xml form for my application but it cant read the message key ? what will the link i will call for translation in xmlform? thanks very much in advance GD - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: XMLForm: content listbox problem
Hi Ivelin, Thanks for your suggestions. Do you create this method in the Bean file or Action file? What does the method should return? The dom document? Thank you Regards Sylvain -Message d'origine- De: Ivelin Ivanov [mailto:[EMAIL PROTECTED]] Date: lundi, 9. décembre 2002 20:49 À: [EMAIL PROTECTED] Objet: Re: XMLForm: content listbox problem The best place to do a one-time initialization of the data model is the getFormModel() method. This is the orginial in the AbstractXMLFormAction: /** * Extract xmlform-model * action parameter and * instantiate a new form model it. * * * Subclasses may override this method * to use custom model instantiation technique * */ protected Object getFormModel() { try { String modelClassName = getParameters().getParameter(xmlform-model, null); Class modelClass = Class.forName ( modelClassName ); Object o = modelClass.newInstance (); return o; } catch ( Exception e) { throw new CascadingRuntimeException( Failed instantiating form model , e ); } } You can override this method and do the following: protected Object getFormModel() { // create a dom document and initialize it // preferably use the JXPath DocumentContainer } This way, the first XMLForm page will use the initialized version. Let me know if this works for you. Ivelin - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, December 09, 2002 10:13 AM Subject: RE: XMLForm: content listbox problem Hi Lars, You said that I should initialize the bean in the prepare method. What do you do exactly? For my Bean I started from the Wizard example code. The initialization is in the perform method. regards Thank you Sylvain -Message d'origine- De: Kirchhoff, Lars [mailto:[EMAIL PROTECTED]] Date: lundi, 9. décembre 2002 09:38 À: '[EMAIL PROTECTED]' Objet: AW: XMLForm: content listbox problem I'm sorry confusing you with this. This are just integer values which returns me how the function was executed. That means getTransactionData returns an integer value with the number of elements. So that I can decide on this what should be done next. (I'm new to cocoon and java as well and am not sure if this is a correct or good way to do, but it works for me now, if anybody has a clearer or better aproach I would be very pleased to know about it) public int getTransactionData() { ... return numberOfTransactions; } so try to initialize the bean in the prepare method as well and see whats happening. ciao Lars -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Gesendet: Montag, 9. Dezember 2002 16:28 An: [EMAIL PROTECTED] Betreff: RE: XMLForm: content listbox problem Hello Lars, I call the getModel() method in the perform function, like the Wizard example: code public Map perform() { AddWorkstationBean jBean = (AddWorkstationBean) getForm().getModel(); if (getCommand().equals(CMD_NEXT) getForm().getViolations() != null) { return page(getFormView()); } else { getForm().clearViolations(); String command = getCommand(); String formView = getFormView(); if (formView.equals(VIEW_FORM1)) { if (command.equals(CMD_NEXT)) { return page(VIEW_FORM2); } } else if (formView.equals(VIEW_FORM .. etc .. code I don't understand what mean the result_trans and result_cust properties. Are they Bean properties? Thank you Regards Sylvain -Message d'origine- De: Kirchhoff, Lars [mailto:[EMAIL PROTECTED]] Date: lundi, 9. décembre 2002 03:32 À: '[EMAIL PROTECTED]' Objet: AW: XMLForm: content listbox problem Hello Sylvian, I always initialize the data for the appropriate form. This means I put the initialize data actions in different functions and call them if I reach the stage. Here is an example: - code if ( formView.equals ( VIEW_START ) ) { if ( command.equals( CMD_COMMIT ) ) { int result_trans = jBean.getTransactionData(); int result_cust = jBean.getUserData(); if ( result_cust == 0 ) { return page( VIEW_ERROR ); } else if ( result_trans == 0 ) { return page( VIEW_ERROR ); } else if ( result_cust 1 ) { return page( VIEW_CUSTOMER ); } else { return page( VIEW_INVOICE ); } } } - /code this allows me also to react on different results from these functions. When did you call the getModel() method from the bean? Are you doing that in the prepare or perform function? ciao Lars -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Gesendet: Freitag, 6. Dezember 2002 00:01 An: [EMAIL PROTECTED] Betreff: XMLForm: content listbox problem Hello, I have an XMLForm app like this: Navigation: Start-Form1-Form2-Confirm-End In the Form1 view I
get real path is always null in TomCat
Hi, The TomCat guys confirmed getRealPath returns null, and this is how it is supposed to be - because embedded TomCat does not expand the war file (and Jetty does). Anyone searching on this can look in the tomcat mail archives under the subject getRealPath is null HTH someone in the future Charlene PS - damn helpful the people on the Jetty and TomCat lists, unlike :-) __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Unit Test Cocoon
Hi, Does anyone successfully use JUnit and/or Cactus to Unit Test Cocoon actions/generators etc ? I have my own generators and actions but I'm not sure how to call them from JUnit, how to pass in what they would normally expect to receive. e.g. an action receives public Map act(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters params) Thanks (hopefully) in advance for any tips/info Charlene PS - the CVS test cases didn't shed any extra light __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: get real path is always null in TomCat
(To moderator: please remove alias for my @protek.com email for this list and I'll subscribe with correct address) Comments below: From: Charlene Mitchell [EMAIL PROTECTED] Hi, The TomCat guys confirmed getRealPath returns null, and this is how it is supposed to be - because embedded TomCat does not expand the war file (and Jetty does). Anyone searching on this can look in the tomcat mail archives under the subject getRealPath is null This is not a Tomcat specific behavior. According to Servlet specification, the getRealPath() can return null at the servlet container discretion (this can happen also for security reasons). Konstantin HTH someone in the future Charlene PS - damn helpful the people on the Jetty and TomCat lists, unlike :-) __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Cocoon deffo does not work in Jetty
I'm running JBoss 3.0.4/JBossWeb, and it was by far the easiest install of cocoon 2.1dev I've done so far. Cheers, Thor HW On Tuesday, December 10, 2002, at 12:04 AM, Charlene Mitchell wrote: Hi, The Jetty guys confirmed that Cocoon 2.0.3 does not work in Jetty (JBoss 3.0.3/JBossWeb) - so I am not going mad. Anyone else searching the groups with the same problem can follow the thread on YahooGroups under the title JSP Engine in the group 'jetty-support'. HTH someone in the future Charlene __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Cocoon deffo does not work in Jetty
I can't confirm this. I used all C2.0.x versions with Jetty without problems. Apart from this known redirection problem, that Nicola pointed out to be probably a Jetty bug. http://marc.theaimsgroup.com/?l=xml-cocoon-devm=103926206004897w=2 The simple workaround is to put a leading slash to your redirect url. What exactly is the problem? /Leo On Tuesday, December 10, 2002, at 09:04 AM, Charlene Mitchell wrote: Hi, The Jetty guys confirmed that Cocoon 2.0.3 does not work in Jetty (JBoss 3.0.3/JBossWeb) - so I am not going mad. Anyone else searching the groups with the same problem can follow the thread on YahooGroups under the title JSP Engine in the group 'jetty-support'. HTH someone in the future Charlene - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
i18n transformer and serializer charset
Hello I'm currently trying to create an application, which should be running in english, german, thai and several other asian languages. The i18n transformer is working correctly, but to display the characters in the correct manner it is needed to use the specific charset in the meta tag of html. Therefore I tried to setup the sitemap with different serializers according the different languages and tried to use the locale variable to select one of the serializers. But this doesn't work. here are some snippets of my sitemap: - code - ... map:serializer name=html_th mime-type=text/html src=org.apache.cocoon.serialization.HTMLSerializer encodingTIS-620/encoding /map:serializer map:serializer name=html_de mime-type=text/html src=org.apache.cocoon.serialization.HTMLSerializer encodingUTF-8/encoding /map:serializer ... map:act type=locale map:serialize type=html_{locale} label=debug/ /map:act ... - code - At first is this possible at all? As far as I read the documentation or the mailling list archives I could find anything. At second is it possible to get the http request paramater oder session parameter in the sitemap. Any help is appreciated. thanks ciao Lars - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: i18n transformer and serializer charset
From: Kirchhoff, Lars [EMAIL PROTECTED] Hello I'm currently trying to create an application, which should be running in english, german, thai and several other asian languages. The i18n transformer is working correctly, but to display the characters in the correct manner it is needed to use the specific charset in the meta tag of html. Therefore I tried to setup the sitemap with different serializers according the different languages and tried to use the locale variable to select one of the serializers. But this doesn't work. here are some snippets of my sitemap: - code - ... map:serializer name=html_th mime-type=text/html src=org.apache.cocoon.serialization.HTMLSerializer encodingTIS-620/encoding /map:serializer map:serializer name=html_de mime-type=text/html src=org.apache.cocoon.serialization.HTMLSerializer encodingUTF-8/encoding /map:serializer Why don't you use UTF-8 for all the languages? That works in the Cocoon 2.1 i18n sample for such languages as Japanese, Chinese and Korean (and many others). ... map:act type=locale map:serialize type=html_{locale} label=debug/ /map:act I'm not sure that this is supported. Are you using the compiled sitemap engine or interpreted? ... - code - At first is this possible at all? As far as I read the documentation or the mailling list archives I could find anything. At second is it possible to get the http request paramater oder session parameter in the sitemap. You can easily get either request parameters, request and session attributes in the sitemap using input modules from the latest release, e.g.: map:parameter name=locale value=request-param:locale / See Input modules sample (/samples/module) in C2.1 for details. Konstantin Any help is appreciated. thanks ciao Lars - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Oracle SP with ESQL an c2 2.0.3
I had this stored procedure running well with SQL Transformer: query lang=1 isstoredprocedure=true begin dbchem.scheda_xml('substitute-value sql:name=lingua/', ?, 'substitute-value sql:name=codice/', 'substitute-value sql:name=revisione/', ''); end; /query I have to convert it to ESQL because the out parameter is xml. I've tried everything and the most possible candidate to work is the following: esql:execute-query esql:call {call dbchem.scheda_xml( esql:parameter direction=in type=Stringxsp-request:get-parameter name=lingua//esql:parameter, esql:parameter direction=out type=String/, esql:parameter direction=in type=Stringxsp-request:get-parameter name=codice//esql:parameter, esql:parameter direction=in type=Stringxsp-request:get-parameter name=revisione//esql:parameter, ,'0')} /esql:call esql:results esql:call-results esql:get-xml column=1 from-call=yes/ /esql:call-results /esql:results /esql:execute-query The error is: The org.apache.cocoon.www.sitemap_xmap notifies that org.apache.cocoon.ProcessingException says: Exception in ServerPagesGenerator.generate() Original exception : java.lang.NullPointerException at org.apache.cocoon.components.language.markup.xsp.EsqlQuery.init(EsqlQuery.java:99) at org.apache.cocoon.www.scheda_tecnica.oracletestesql_risposta_xml.generate(C:\Program Files\tomcat\work\Standalone\localhost\cocoon\cocoon-files\org/apache/cocoon/www/scheda_tecnica\oracletestesql_risposta_xml.java:306) at org.apache.cocoon.generation.ServerPagesGenerator.generate(ServerPagesGenerator.java:258) at org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEventPipeline.java:250) at org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingStreamPipeline.java:399) at org.apache.cocoon.www.scheda_tecnica.sitemap_xmap.matchN400065(C:\Program Files\tomcat\work\Standalone\localhost\cocoon\cocoon-files\org/apache/cocoon/www/scheda_tecnica\sitemap_xmap.java:716) Is there something that I could try? Should I upgrade to cocoon 2.0.4? Thank you anyway -- Gabriele Domenichini [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Oracle SP with ESQL an c2 2.0.3
On 10.Dec.2002 -- 12:26 PM, Gabriele Domenichini wrote: I had this stored procedure running well with SQL Transformer: query lang=1 isstoredprocedure=true begin dbchem.scheda_xml('substitute-value sql:name=lingua/', ?, 'substitute-value sql:name=codice/', 'substitute-value sql:name=revisione/', ''); end; /query I have to convert it to ESQL because the out parameter is xml. I've tried everything and the most possible candidate to work is the following: esql:execute-query esql:call {call dbchem.scheda_xml( esql:parameter direction=in type=Stringxsp-request:get-parameter name=lingua//esql:parameter, esql:parameter direction=out type=String/, esql:parameter direction=in type=Stringxsp-request:get-parameter name=codice//esql:parameter, esql:parameter direction=in type=Stringxsp-request:get-parameter name=revisione//esql:parameter, ,'0')} /esql:call esql:results esql:call-results esql:get-xml column=1 from-call=yes/ /esql:call-results /esql:results /esql:execute-query The error is: The org.apache.cocoon.www.sitemap_xmap notifies that org.apache.cocoon.ProcessingException says: Exception in ServerPagesGenerator.generate() Original exception : java.lang.NullPointerException at org.apache.cocoon.components.language.markup.xsp.EsqlQuery.init(EsqlQuery.java:99) Check that you *really* need to use esql:call-results and that esql:row-results does not work for you. Please search this list for others that used Oracle with SP and esql. Chris. -- C h r i s t i a n H a u l [EMAIL PROTECTED] fingerprint: 99B0 1D9D 7919 644A 4837 7D73 FEF9 6856 335A 9E08 - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Oracle SP with ESQL an c2 2.0.3
hi, some time ago i had the same question and the same problems, here's is my working solution for calling a ORACLE SP : !-- search for businessunit's -- esql:execute-query esql:call needs-query=true{ call CONTACTS.searchBusinessUnit(esql:parameter direction=in type=Stringxsp:exprpattern/xsp:expr/esql:parameter,esql:parameter direction=out type=CLOB/) }/esql:call esql:call-results businessunit-search esql:get-xml column=2 from-call=yes/ /businessunit-search /esql:call-results /esql:execute-query annother strange effect , take care the your call statement starts on the same line like your esql:call element. hth, Frank - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
xml+xsl - xsp
is i possible to create an .xsp from a xml-xsl compination (through cocoon) an then ask from cocoon to execute this .xsp? and all this on the fly? i want to call http://../some.xsp and cocoon create the some.xsp and then execute it thnx stavros Kounis - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Cocoon Servlet errors: Closing a stream?
Running Cocoon 2.03, under Tomcat 4.04 (UNIX/Solaris) One moment Cocoon is working, and the next BAM! no response: just the same error (see below for one of many duplicates) for each call that gets made to it - can anyone please help with this!? Thanks Derek ERROR (2002-12-10) 13:47.27:684 [access] (Unknown-URI) Unknown-thread/CocoonServlet: Cocoon servlet threw an Exception while trying to close stream. java.io.IOException: The stream has been closed at org.apache.catalina.connector.ResponseStream.flush(ResponseStream.java:237) at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1126) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.connector.warp.WarpRequestHandler.handle(WarpRequestHandler.java:217) at org.apache.catalina.connector.warp.WarpConnection.run(WarpConnection.java:194) at java.lang.Thread.run(Thread.java:484) - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Cocoon deffo does not work in Jetty
Sorry, I forgot to quantify. JSP in Cocoon deployed in Jetty does not work - everything else does work (AFAIK), but JSP's do not. So, unless you use JSP's you can easily be misled unto thinking that everything works fine - but it doesn't. Charlene --- leo leonid [EMAIL PROTECTED] wrote: I can't confirm this. I used all C2.0.x versions with Jetty without problems. Apart from this known redirection problem, that Nicola pointed out to be probably a Jetty bug. http://marc.theaimsgroup.com/?l=xml-cocoon-devm=103926206004897w=2 The simple workaround is to put a leading slash to your redirect url. What exactly is the problem? /Leo On Tuesday, December 10, 2002, at 09:04 AM, Charlene Mitchell wrote: Hi, The Jetty guys confirmed that Cocoon 2.0.3 does not work in Jetty (JBoss 3.0.3/JBossWeb) - so I am not going mad. Anyone else searching the groups with the same problem can follow the thread on YahooGroups under the title JSP Engine in the group 'jetty-support'. HTH someone in the future Charlene - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: xml+xsl - xsp
Hi Stavros, Well, yes, why not. I haven't done it and haven't tested it, but it should be something like the following... map:match pattern=*.xsp map:generate src=xsp_xmls/{1}.xml/ map:transform src=xml2xsp.xsl/ map:serialize type=xml/ /map:match map:match pattern=*.html map:generate src=cocoon:/{1}.xsp type=serverpages / map:transform src=something2html.xsl / map:serialize/ /map:match The first match will answer a request to an xsp, and create it using your xml and xsl. The second match will answer the user request of some html page. For example: if the user requests boskabouter.html, the second match will try to find the boskabouter.xsp, run the xsp and transform it using the something2html.xsl. By looking for the boskabouter.xsp it will trigger the first match, which will look for the boskabouter.xml in the xsp_xmls directory, transform it using the xml2xsp.xsl and return the result. Warning: this is just to get you started, there are probably some errors in the example. Also, this *.xsp should not be requested from outside, so you have to protect it from the user. You don't want him/her to see the xsp, do you? I guess you have to use map:pipeline internal-only=true somewhere Have fun, Jelle -Oorspronkelijk bericht- Van: Cocoon User [mailto:[EMAIL PROTECTED]] Verzonden: dinsdag 10 december 2002 12:37 Aan: [EMAIL PROTECTED] Onderwerp: xml+xsl - xsp is i possible to create an .xsp from a xml-xsl compination (through cocoon) an then ask from cocoon to execute this .xsp? and all this on the fly? i want to call http://../some.xsp and cocoon create the some.xsp and then execute it thnx stavros Kounis - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
ExcaliburComponentManager - Looking up uninitialized and Attemptingto release a null component.
Hi Folks, Does anybody know enough about the Cocoon's use of the ExcaliburComponentManager to help me please? I'm getting lots of warnings in my core.log Looking up component on an uninitialized ComponentLocator and Attempted to release a null component. I'm guessing that they are related to each other. My web.xml, config.xconf are pruned down versions of the ones for the cocoon examples. I have no idea what I should be checking and have searched the archives. What is a ComponentLocator? Why would it be uninitialised? How do I initialise it? Why would I have a null component? Why would there be an attempt to release it? What should I expect if I ignore these warnings? I seem to get them for most of my requests/pipelines, so I don't think it is directly related to an individual pipeline. Any ideas for debugging this one would be very welcome. Thanks in advance. Peter. WARN(2002-12-10) 11:46.29:634 [core.manager] (/developing-self-roster/tbar-menu.html) Thread-12/ExcaliburComponentManager: Looking up component on an uninitialized ComponentLocator [org.apache.cocoon.generation.GeneratorSelector] WARN(2002-12-10) 11:53.32:853 [core.manager] (/developing-self-roster/tbar-menu.html) Thread-10/ExcaliburComponentSelector: Attempted to release a null component. RH Linux 8.0, j2sdk1.4.1_01, jakarta-tomcat-4.1.12-LE-jdk14, Cocoon 1.0.4 - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Cocoon authentication - anyone got samples?
Hello, I want to protect a single page with Cocoon. How do I provide an authentication dialog and check user's input? Would you point me to a basic sample? -- Lenya Khachaturov mailto:[EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
SVG - PNG/JPG , browser problems
Hello I am having problems with the PNG and JPG serializers, but only in Netscape. I know about similar problems in IE but Netscape ?! I have the following config: map:match pattern=jsp/map.svg map:generate src=/docs/samples/jsp/my.jsp type=jsp/ map:transform src=stylesheets/page/style.xsl/ map:serialize type=svgxml/ /map:match map:match pattern=jsp/map.jpg map:generate src=/docs/samples/jsp/my.jsp type=jsp/ map:transform src=stylesheets/page/style.xsl/ map:serialize type=svg2jpeg/ /map:match map:match pattern=jsp/map.png map:generate src=/docs/samples/jsp/my.jsp type=jsp/ map:transform src=stylesheets/page/style.xsl/ map:serialize type=svg2png/ /map:match Hopefully you can see what I am doing. I have the same jsp (my.jsp). If it is matched with .svg, then SVG is sent back, .png and .jpg get sent to the appropriate serializer. Variables to the JSP get POSTed. I have had problems, I am using the Adobe SVG plugin to my browsers. 1. Opera - it all works fine. No problems whatsoever. 2. Internet Explorer. The SVG document gets requested twice but that is a known IE feature whereby the browser basically don't trust your Content-type header so it checks out the whole document and re-requests it, This has been discussed on this list (and others) previously. 3. Netscape 6.2. SVG is fine. One request, data viewed nicely. However, when I request the .png and .jpg, I get the image back and I can see it briefly but then the page seems to be re-requested but no parameters are posted so I get nothing. Any ideas ? Obviously it is browser-related but I was just wondering whether others had encountered the same thing. Thanks Chris Faulkner - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Cocoon deffo does not work in Jetty
Hello, I've tried cocoon 2.0.3 and cocoon 2.0.4 on jboss/jbossweb(jetty), and it works. But I've only tried xsps. Charlene Mitchell wrote: Sorry, I forgot to quantify. JSP in Cocoon deployed in Jetty does not work - everything else does work (AFAIK), but JSP's do not. So, unless you use JSP's you can easily be misled unto thinking that everything works fine - but it doesn't. Charlene --- leo leonid [EMAIL PROTECTED] wrote: I can't confirm this. I used all C2.0.x versions with Jetty without problems. Apart from this known redirection problem, that Nicola pointed out to be probably a Jetty bug. http://marc.theaimsgroup.com/?l=xml-cocoon-devm=103926206004897w=2 The simple workaround is to put a leading slash to your redirect url. What exactly is the problem? /Leo On Tuesday, December 10, 2002, at 09:04 AM, Charlene Mitchell wrote: Hi, The Jetty guys confirmed that Cocoon 2.0.3 does not work in Jetty (JBoss 3.0.3/JBossWeb) - so I am not going mad. Anyone else searching the groups with the same problem can follow the thread on YahooGroups under the title JSP Engine in the group 'jetty-support'. HTH someone in the future Charlene - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Jordi Valldaura i Riqué CSI - Centre de Serveis Informàtics Enginyeria i Arquitectura La Salle Universitat Ramón Llull - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Add/Remove/Edit Sql entries with buttons (using ESQL)
Hello, I want to Add/Remove/Edit Sql entries by clicking on buttons. I tryied with these 3 actions : map:actions map:action name=add-workflow src=org.apache.cocoon.acting.DatabaseAddAction / map:action name=del-workflow src=org.apache.cocoon.acting.DatabaseDeleteAction / map:action name=upd-workflow src=org.apache.cocoon.acting.DatabaseUpdateAction / And these action-sets map:action-sets map:action-set name=workflow map:act type=add-workflow action=Add / map:act type=del-workflow action=Delete / map:act type=upd-workflow action=Update / /map:action-set /map:action-sets . These actions are in my sitemap. Now, if I want them on a button, like : - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
FW: Add/Remove/Edit Sql entries with buttons (using ESQL)
Excuse me, previous message was not complete : Hello, I want to Add/Remove/Edit Sql entries by clicking on buttons. I tryied with these 3 actions : map:actions map:action name=add-workflow src=org.apache.cocoon.acting.DatabaseAddAction / map:action name=del-workflow src=org.apache.cocoon.acting.DatabaseDeleteAction / map:action name=upd-workflow src=org.apache.cocoon.acting.DatabaseUpdateAction / And these action-sets map:action-sets map:action-set name=workflow map:act type=add-workflow action=Add / map:act type=del-workflow action=Delete / map:act type=upd-workflow action=Update / /map:action-set /map:action-sets . These actions are in my sitemap. Now, if I want them on a button, like : form action=process-workflow method=POST input name=process type=hidden value=Upd/ select name=SELdispatcher esql:connection esql:poolpersonnel/esql:pool esql:execute-query esql:queryselect usrID, usrName from wfUsers order by usrName/esql:query esql:results esql:row-results option xsp:attribute name=valueesql:get-int column=usrID//xsp:attribute esql:get-string column=usrName/ /option /esql:row-results /esql:results /esql:execute-query /esql:connection /select input name=wfName type=text/ input type=submit value=Save/ /form Where input type=submit value=Save/ is the button to update sql database. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Photo Album sample?
I would also be interested in the if you have no objections...thanks! You can now download the basics from: http://www.upaya.co.uk/photoalbum.zip This contains the sitemap, the XSL stylesheets, and an XML file for describing the themes and the images. If people think it a good idea, I could create a Wiki page about this. Question is though - how would one make source files available via Wiki? Can you upload a ZIP file onto Wiki? Regards, Upayavira North London (uk) - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Does FormValidatorAction work with 2.0.4?
Hello, I am experiencing problems when trying to use FormValidatorAction. Descriptor file: root parameter name=lastname type=string max-len=255 nullable=no/ parameter name=firstname type=string max-len=255 nullable=no/ parameter name=birthdate type=string nullable=no matches-regex=^[0-9]{2}\.[0-9]{2}\.[0-9]{4}$/ /root Sitemap: map:match pattern=url map:act type=form-validator map:parameter name=descriptor value=file6/ map:parameter name=validate value=*/ map:generate type=serverpages src=file1/ map:transform src=file2/ map:serialize/ /map:act map:generate type=serverpages src=file3/ map:transform src=file4/ map:serialize/ /map:match It reports that the validation fails when I omit the above-mentioned parameters. But max-len and matches-regex seem to be completely ignored: Request string: ...?lastname=afirstname=abirthdate=INVALID Log says: DEBUG (2002-12-10) 15:39.19:590 [sitemap.action.form-validator] (/cocoon/edit-admin/lp/newspeaker) Thread-10/AbstractComplementaryConfigurableAction: Using cached configuration for lp/form-speaker.xml DEBUG (2002-12-10) 15:39.19:590 [sitemap.action.form-validator] (/cocoon/edit-admin/lp/newspeaker) Thread-10/FormValidatorAction: Validating parameters as specified via 'validate' parameter DEBUG (2002-12-10) 15:39.19:591 [sitemap.action.form-validator] (/cocoon/edit-admin/lp/newspeaker) Thread-10/AbstractValidatorAction: Validating parameter: lastname using rule: lastname DEBUG (2002-12-10) 15:39.19:591 [sitemap.action.form-validator] (/cocoon/edit-admin/lp/newspeaker) Thread-10/AbstractValidatorAction: Validating string parameter lastname DEBUG (2002-12-10) 15:39.19:592 [sitemap.action.form-validator] (/cocoon/edit-admin/lp/newspeaker) Thread-10/AbstractValidatorAction: Validating parameter: firstname using rule: firstname DEBUG (2002-12-10) 15:39.19:592 [sitemap.action.form-validator] (/cocoon/edit-admin/lp/newspeaker) Thread-10/AbstractValidatorAction: Validating string parameter firstname DEBUG (2002-12-10) 15:39.19:593 [sitemap.action.form-validator] (/cocoon/edit-admin/lp/newspeaker) Thread-10/AbstractValidatorAction: Validating parameter: birthdate using rule: birthdate DEBUG (2002-12-10) 15:39.19:593 [sitemap.action.form-validator] (/cocoon/edit-admin/lp/newspeaker) Thread-10/AbstractValidatorAction: Validating string parameter birthdate DEBUG (2002-12-10) 15:39.19:594 [sitemap.action.form-validator] (/cocoon/edit-admin/lp/newspeaker) Thread-10/FormValidatorAction: All form params successfully validated Restarting and cleaning up the work dir does not show any effects. What am I doing wroing? SW: Cocoon 2.0.4, Tomcat 4.1.12, JDK 1.4.1_01, Linux Thanks in advance! -- Matthias Brunner [EMAIL PROTECTED] PGP FP 7862 32B3 3B75 292A F76F 5042 8587 21AB 5B89 D501 Check out http://blumenstrasse.vol.at/~mb/gpgkey.asc - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Cocoon deffo does not work in Jetty
On Tuesday, December 10, 2002, at 02:43 PM, Charlene Mitchell wrote: Hi, Yes, I have XSP's working as well, but they aren't very performant and usage seem to be discouraged in Carsten's book. I have not read the book yet, but this is very hard to believe! On the contrary, I think the JSP-Generater is added for legacy stuff only. Anyway, you're right, I don't use JSP, and if there is a problem with Jetty/JSP I missed it. sorry I could't help you. /L But JSP's deffo do -not- workand I have yet to hear otherwise. My workaround was to deploy org.apache.jasper.jar and servlet.jar into WEB-INF/lib but I haven't dared see if this will impact on a deployment in TomCat Charlene --- Jordi_Valldaura_i_Riqué [EMAIL PROTECTED] wrote: Hello, I've tried cocoon 2.0.3 and cocoon 2.0.4 on jboss/jbossweb(jetty), and it works. But I've only tried xsps. Charlene Mitchell wrote: Sorry, I forgot to quantify. JSP in Cocoon deployed in Jetty does not work - everything else does work (AFAIK), but JSP's do not. So, unless you use JSP's you can easily be misled unto thinking that everything works fine - but it doesn't. Charlene --- leo leonid [EMAIL PROTECTED] wrote: I can't confirm this. I used all C2.0.x versions with Jetty without problems. Apart from this known redirection problem, that Nicola pointed out to be probably a Jetty bug. http://marc.theaimsgroup.com/?l=xml-cocoon-devm=103926206004897w=2 The simple workaround is to put a leading slash to your redirect url. What exactly is the problem? /Leo On Tuesday, December 10, 2002, at 09:04 AM, Charlene Mitchell wrote: Hi, The Jetty guys confirmed that Cocoon 2.0.3 does not work in Jetty (JBoss 3.0.3/JBossWeb) - so I am not going mad. Anyone else searching the groups with the same problem can follow the thread on YahooGroups under the title JSP Engine in the group 'jetty-support'. HTH someone in the future Charlene - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Jordi Valldaura i Riqué CSI - Centre de Serveis Informàtics Enginyeria i Arquitectura La Salle Universitat Ramón Llull - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cocoon 2.0.4
I 'm not able to use cocoon 2.0.4 ; it should work under tomcat 4.0.4, with JDK1.3.1 , but .. it doesn't work at all , it displays The requested resource (/cocoon/) is not available ; am I def or just insane ? - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Add/Remove/Edit Sql entries with buttons (using ESQL)
You need a proper name attribute on your submit button to get it to call the action. For instance, in your case (if you are not using an older version of cocoon): input type=submit value=Save name=cocoon-action-Add/ would call the Add action from your workflow action-set. Similarly, cocoon-action-Delete and cocoon-action-Update would call the others. The value attribute is only there for display (this was not true at some point in the past) and the name attribute is not visible to the end user. As such, you probably want to name your actions more restrictively as you may have many Add, Delete, and Update. something like action=add-workflow corresponding to cocoon-action-add-workflow might keep things easier to follow and potentially prevent problems. The magic string cocoon-action- is not easily modified (I believe it's compiled in). Geoff -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 10, 2002 8:30 AM To: [EMAIL PROTECTED] Subject: FW: Add/Remove/Edit Sql entries with buttons (using ESQL) Excuse me, previous message was not complete : Hello, I want to Add/Remove/Edit Sql entries by clicking on buttons. I tryied with these 3 actions : map:actions map:action name=add-workflow src=org.apache.cocoon.acting.DatabaseAddAction / map:action name=del-workflow src=org.apache.cocoon.acting.DatabaseDeleteAction / map:action name=upd-workflow src=org.apache.cocoon.acting.DatabaseUpdateAction / And these action-sets map:action-sets map:action-set name=workflow map:act type=add-workflow action=Add / map:act type=del-workflow action=Delete / map:act type=upd-workflow action=Update / /map:action-set /map:action-sets . These actions are in my sitemap. Now, if I want them on a button, like : form action=process-workflow method=POST input name=process type=hidden value=Upd/ select name=SELdispatcher esql:connection esql:poolpersonnel/esql:pool esql:execute-query esql:queryselect usrID, usrName from wfUsers order by usrName/esql:query esql:results esql:row-results option xsp:attribute name=valueesql:get-int column=usrID//xsp:attribute esql:get-string column=usrName/ /option /esql:row-results /esql:results /esql:execute-query /esql:connection /select input name=wfName type=text/ input type=submit value=Save/ /form Where input type=submit value=Save/ is the button to update sql database. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: xml+xsl - xsp
There's an example of this in the samples, but it's likely to be quite slow if it is recreated for each request because of the overhead of compiling the xsp. While there may be people out there successfully using that technique, you'd probably be better advised to see if there's another way to accomplish what you need. If the final source of the xsp is likely to change only infrequently and can be cached, you may be ok. Geoff Howard -Original Message- From: Cocoon User [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 10, 2002 6:37 AM To: [EMAIL PROTECTED] Subject: xml+xsl - xsp is i possible to create an .xsp from a xml-xsl compination (through cocoon) an then ask from cocoon to execute this .xsp? and all this on the fly? i want to call http://../some.xsp and cocoon create the some.xsp and then execute it thnx stavros Kounis - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: cocoon 2.0.4
On Tuesday 10 December 2002 16:10, Lorenzo Bucciarelli wrote: I 'm not able to use cocoon 2.0.4 ; it should work under tomcat 4.0.4, with JDK1.3.1 , but .. it doesn't work at all , it displays The requested resource (/cocoon/) is not available ; am I def or just insane ? What do the logs say? (TOMCAT\logs) -- Matthias Brunner [EMAIL PROTECTED] PGP FP 7862 32B3 3B75 292A F76F 5042 8587 21AB 5B89 D501 Check out http://blumenstrasse.vol.at/~mb/gpgkey.asc - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Add/Remove/Edit Sql entries with buttons (using ESQL)
If I write input type=submit value=Save name=cocoon-action-Add/ I just come back to the previous page. I think it's because I haven't write the ID. That means : The database contains following collumns : ID - Name - Dispatcher The xsp page contains : text field for name - Select object for dipatcher I used a form. -Original Message- From: Geoff Howard [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 10, 2002 4:13 PM To: [EMAIL PROTECTED] Subject: RE: Add/Remove/Edit Sql entries with buttons (using ESQL) You need a proper name attribute on your submit button to get it to call the action. For instance, in your case (if you are not using an older version of cocoon): input type=submit value=Save name=cocoon-action-Add/ would call the Add action from your workflow action-set. Similarly, cocoon-action-Delete and cocoon-action-Update would call the others. The value attribute is only there for display (this was not true at some point in the past) and the name attribute is not visible to the end user. As such, you probably want to name your actions more restrictively as you may have many Add, Delete, and Update. something like action=add-workflow corresponding to cocoon-action-add-workflow might keep things easier to follow and potentially prevent problems. The magic string cocoon-action- is not easily modified (I believe it's compiled in). Geoff -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 10, 2002 8:30 AM To: [EMAIL PROTECTED] Subject: FW: Add/Remove/Edit Sql entries with buttons (using ESQL) Excuse me, previous message was not complete : Hello, I want to Add/Remove/Edit Sql entries by clicking on buttons. I tryied with these 3 actions : map:actions map:action name=add-workflow src=org.apache.cocoon.acting.DatabaseAddAction / map:action name=del-workflow src=org.apache.cocoon.acting.DatabaseDeleteAction / map:action name=upd-workflow src=org.apache.cocoon.acting.DatabaseUpdateAction / And these action-sets map:action-sets map:action-set name=workflow map:act type=add-workflow action=Add / map:act type=del-workflow action=Delete / map:act type=upd-workflow action=Update / /map:action-set /map:action-sets . These actions are in my sitemap. Now, if I want them on a button, like : form action=process-workflow method=POST input name=process type=hidden value=Upd/ select name=SELdispatcher esql:connection esql:poolpersonnel/esql:pool esql:execute-query esql:queryselect usrID, usrName from wfUsers order by usrName/esql:query esql:results esql:row-results option xsp:attribute name=valueesql:get-int column=usrID//xsp:attribute esql:get-string column=usrName/ /option /esql:row-results /esql:results /esql:execute-query /esql:connection /select input name=wfName type=text/ input type=submit value=Save/ /form Where input type=submit value=Save/ is the button to update sql database. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: cocoon 2.0.4
Seeding of random number generator has been completed 2002-12-10 14:58:34 HostConfig[localhost] Error deploying web application archive cocoon.war java.lang.UnsupportedClassVersionError: org/apache/cocoon/servlet/CocoonServlet (Unsupported major.minor version 48.0) at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:486) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111) at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1643) at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:937) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1372) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1254) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:867) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:810) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3279) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3421) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:785) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:478) at org.apache.catalina.core.StandardHost.install(StandardHost.java:738) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:324) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:389) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:232) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:155) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1131) at org.apache.catalina.core.StandardHost.start(StandardHost.java:638) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343) at org.apache.catalina.core.StandardService.start(StandardService.java:388) at org.apache.catalina.core.StandardServer.start(StandardServer.java:506) at org.apache.catalina.startup.Catalina.start(Catalina.java:781) at org.apache.catalina.startup.Catalina.execute(Catalina.java:681) at org.apache.catalina.startup.Catalina.process(Catalina.java:179) at java.lang.reflect.Method.invoke(Native Method) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243) At 16:09 10/12/2002 +0100, Matthias Brunner wrote: On Tuesday 10 December 2002 16:10, Lorenzo Bucciarelli wrote: I 'm not able to use cocoon 2.0.4 ; it should work under tomcat 4.0.4, with JDK1.3.1 , but .. it doesn't work at all , it displays The requested resource (/cocoon/) is not available ; am I def or just insane ? What do the logs say? (TOMCAT\logs) -- Matthias Brunner [EMAIL PROTECTED] PGP FP 7862 32B3 3B75 292A F76F 5042 8587 21AB 5B89 D501 Check out http://blumenstrasse.vol.at/~mb/gpgkey.asc ~ Lorenzo Bucciarelli~ - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: cocoon 2.0.4
Is this a fresh install or are you upgrading? Geoff -Original Message- From: Lorenzo Bucciarelli [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 10, 2002 10:11 AM To: [EMAIL PROTECTED] Subject: cocoon 2.0.4 I 'm not able to use cocoon 2.0.4 ; it should work under tomcat 4.0.4, with JDK1.3.1 , but .. it doesn't work at all , it displays The requested resource (/cocoon/) is not available ; am I def or just insane ? - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: cocoon 2.0.4
I got such an error, when my appserver was running on java1.2 while my webapp was compiled with java1.3. I found, that my JAVA_HOME was not defined, when i started the tomcat server. That forces tomcat to guess, which java env it shall use and this was unfortunately not the expected one... Maybe this helps... regards, hussayn Geoff Howard wrote: Is this a fresh install or are you upgrading? Geoff -Original Message- From: Lorenzo Bucciarelli [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 10, 2002 10:11 AM To: [EMAIL PROTECTED] Subject: cocoon 2.0.4 I 'm not able to use cocoon 2.0.4 ; it should work under tomcat 4.0.4, with JDK1.3.1 , but .. it doesn't work at all , it displays The requested resource (/cocoon/) is not available ; am I def or just insane ? - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: cocoon 2.0.4
Lorenzo Bucciarelli wrote: 2002-12-10 14:58:34 HostConfig[localhost] Error deploying web application archive cocoon.war java.lang.UnsupportedClassVersionError: org/apache/cocoon/servlet/CocoonServlet (Unsupported major.minor version 48.0) You are using a version of Cocoon compiled for JDK 1.4 on a 1.3 JVM. Download the correct binary or compile the sources using JDK 1.3 if you plan to install on a 1.3 JVM. Ugo -- Ugo Cei - Consorzio di Bioingegneria e Informatica Medica P.le Volontari del Sangue, 2 - 27100 Pavia - Italy Phone: +39.0382.525100 - E-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: cocoon 2.0.4
I'm upgrading; I have no problem using tomcat 4.0.4 - cocoon 2.0.3 - JDK1.3.1 , it works fine; I thought to use the new cocoon.war, but .. At 10:23 10/12/2002 -0500, you wrote: Is this a fresh install or are you upgrading? Geoff -Original Message- From: Lorenzo Bucciarelli [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 10, 2002 10:11 AM To: [EMAIL PROTECTED] Subject: cocoon 2.0.4 I 'm not able to use cocoon 2.0.4 ; it should work under tomcat 4.0.4, with JDK1.3.1 , but .. it doesn't work at all , it displays The requested resource (/cocoon/) is not available ; am I def or just insane ? - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ~ Lorenzo Bucciarelli~ - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: cocoon 2.0.4
Well, first make sure the version you're using is compiled for the JDK you're using as just mentioned. But I've also found that when upgrading, I need to delete the contents of the tomcat/work directory that pertain to cocoon (while tomcat is stopped is probably better). Also, make sure you've replaced the xalan, xerces and xml-apis jars in tomcat/common/endorsed with the same versions in WEB-INF/lib. Mismatches there have caused me problems. HTH, Geoff -Original Message- From: Lorenzo Bucciarelli [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 10, 2002 10:27 AM To: [EMAIL PROTECTED] Subject: RE: cocoon 2.0.4 I'm upgrading; I have no problem using tomcat 4.0.4 - cocoon 2.0.3 - JDK1.3.1 , it works fine; I thought to use the new cocoon.war, but .. At 10:23 10/12/2002 -0500, you wrote: Is this a fresh install or are you upgrading? Geoff -Original Message- From: Lorenzo Bucciarelli [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 10, 2002 10:11 AM To: [EMAIL PROTECTED] Subject: cocoon 2.0.4 I 'm not able to use cocoon 2.0.4 ; it should work under tomcat 4.0.4, with JDK1.3.1 , but .. it doesn't work at all , it displays The requested resource (/cocoon/) is not available ; am I def or just insane ? - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ~ Lorenzo Bucciarelli~ - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Add/Remove/Edit Sql entries with buttons (using ESQL)
Well, either you have your config file for your database action configured wrong for the tables in your database, or you have the field names wrong on your form (I'm assuming the DatabaseActions work similarly to the ModularDatabaseActions), or the action is actually working and your pipeline is routing successful actions to the wrong place (meaning you've set up the pipeline wrong, not that it's making a mistake). I'd suggest taking a fresh look at the samples (the code of them that is) and the javadocs for the database actions. If I remember correctly, the abstract class javadoc is the one with the helpful configuration information. Geoff -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 10, 2002 10:11 AM To: [EMAIL PROTECTED] Subject: RE: Add/Remove/Edit Sql entries with buttons (using ESQL) If I write input type=submit value=Save name=cocoon-action-Add/ I just come back to the previous page. I think it's because I haven't write the ID. That means : The database contains following collumns : ID - Name - Dispatcher The xsp page contains : text field for name - Select object for dipatcher I used a form. -Original Message- From: Geoff Howard [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 10, 2002 4:13 PM To: [EMAIL PROTECTED] Subject: RE: Add/Remove/Edit Sql entries with buttons (using ESQL) You need a proper name attribute on your submit button to get it to call the action. For instance, in your case (if you are not using an older version of cocoon): input type=submit value=Save name=cocoon-action-Add/ would call the Add action from your workflow action-set. Similarly, cocoon-action-Delete and cocoon-action-Update would call the others. The value attribute is only there for display (this was not true at some point in the past) and the name attribute is not visible to the end user. As such, you probably want to name your actions more restrictively as you may have many Add, Delete, and Update. something like action=add-workflow corresponding to cocoon-action-add-workflow might keep things easier to follow and potentially prevent problems. The magic string cocoon-action- is not easily modified (I believe it's compiled in). Geoff -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 10, 2002 8:30 AM To: [EMAIL PROTECTED] Subject: FW: Add/Remove/Edit Sql entries with buttons (using ESQL) Excuse me, previous message was not complete : Hello, I want to Add/Remove/Edit Sql entries by clicking on buttons. I tryied with these 3 actions : map:actions map:action name=add-workflow src=org.apache.cocoon.acting.DatabaseAddAction / map:action name=del-workflow src=org.apache.cocoon.acting.DatabaseDeleteAction / map:action name=upd-workflow src=org.apache.cocoon.acting.DatabaseUpdateAction / And these action-sets map:action-sets map:action-set name=workflow map:act type=add-workflow action=Add / map:act type=del-workflow action=Delete / map:act type=upd-workflow action=Update / /map:action-set /map:action-sets . These actions are in my sitemap. Now, if I want them on a button, like : form action=process-workflow method=POST input name=process type=hidden value=Upd/ select name=SELdispatcher esql:connection esql:poolpersonnel/esql:pool esql:execute-query esql:queryselect usrID, usrName from wfUsers order by usrName/esql:query esql:results esql:row-results option xsp:attribute name=valueesql:get-int column=usrID//xsp:attribute esql:get-string column=usrName/ /option /esql:row-results /esql:results /esql:execute-query /esql:connection /select input name=wfName type=text/ input type=submit value=Save/ /form Where input type=submit value=Save/ is the button to update sql database. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:
cocoon-2.0.4 problem with multipart file upload
Hello, after cocoon-2.0.4 upgrade the following check inside my self-implemented UploadGenerator (transfers an uploaded multipart file to a backend server, receives an XML response from the backend server and transforms it into HTML) does not become true any more: if (request.get(parameterNames[i]) instanceof FilePartFile) { ... Have there been made any changes in cocoon-2.0.4 in this context? Mit freundlichen Grüßen/ Best regards Elmar Sternath Siemens AG Information and Communication Networks ICN IT CA EB 2 - Web Applications Mch H/Me19 - 99801-231a Meglinger Straße 19 (99801-231a) D-84577 München Tel.: +49(89)722-24045 Mobil: +49(0)160-5860351 Fax.: +49(89)722-53384 EMail: [EMAIL PROTECTED] Sternath Elmar.vcf Sternath Elmar.vcf Description: Binary data - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Accessing DatabaseAddAction result
Hello, is there any way to find out whether a DatabaseAddAction was successful / display the error message? I would like to do the following: map:match ... map:action-set name=mydb map:parameter .../ /map:action map:generate .../ ... ... /map:match I do not want to have to different input sources dependent on whether the action was successful. Actually, I just want the same form to be reloaded and to display record added (or an error message on top of the page). I see in the source that DatabaseUpdateAction sets a request attribute rows to indicate how many rows where updated. Why does DatebaseAddAction not set something like two request attributes success and errorMessage? Or is this not the cocoon way of doing it? How is this realised without having to rely on xsp? (AFAIK, it is also possible to access request attributes in xsl) Best regards! -- Matthias Brunner [EMAIL PROTECTED] PGP FP 7862 32B3 3B75 292A F76F 5042 8587 21AB 5B89 D501 Check out http://blumenstrasse.vol.at/~mb/gpgkey.asc - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Accessing DatabaseAddAction result
On 10.Dec.2002 -- 05:05 PM, Matthias Brunner wrote: Hello, is there any way to find out whether a DatabaseAddAction was successful / display the error message? I would like to do the following: map:match ... map:action-set name=mydb map:parameter .../ /map:action map:generate .../ ... ... /map:match I do not want to have to different input sources dependent on whether the action was successful. Actually, I just want the same form to be reloaded and to display record added (or an error message on top of the page). I see in the source that DatabaseUpdateAction sets a request attribute rows to indicate how many rows where updated. Why does DatebaseAddAction not set something like two request attributes success and errorMessage? At least the one from the modular package does set the error message as request attribute. Or is this not the cocoon way of doing it? How is this realised without having to rely on xsp? (AFAIK, it is also possible to access request attributes in xsl) Like you say it is possible to access request attributes from xslt. Thus you do not need XSP. Chris. -- C h r i s t i a n H a u l [EMAIL PROTECTED] fingerprint: 99B0 1D9D 7919 644A 4837 7D73 FEF9 6856 335A 9E08 - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
style - external references
Hello I have a stylesheet which imports some CSS and SVG styles in a defs tag for an SVG document with the following xsl:copy-of select=document('style.xml')/ In my static SVG files, I can make an external reference to the file in this way. ?xml-stylesheet type=text/css href=http://localhost/style.xml;? How can I write my XSL so that the xml-stylesheet is placed in the SVG in the second way ? Thanks Chris - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Cocoon deffo does not work in Jetty
Hi, Well, I don't know if quoting the book breaches copyright :-) but here is what it says (p.301) about XSP which discouraged me: In earlier versions of Cocoon, XSP was the only alternative for dynamic content ...with Cocoon's current architectureXSP is losing some of [its] interest ...XSP has some disadvantages...the skill required to use XSP is greater For production environments, XSP is not the best solution when it comes to performance As a default, it does not support the caching algorithm compiling the XSP is rather slow etc etc Don't get me wrong, I'm not saying that because of this the answer is necessarily JSP, but for example if I have a web-page which has only one drop down list of dynamic data it is far quicker to write a JSP, debugging is easier, it is far more maintainable and I can give the task to less technical people. For all these reasons I switched from XSP to JSP and productivity rocketed. Is the JSP-Generater really added for legacy stuff? Can someone confirm? If so what is the new solution because it surely can't be XSP! Charlene --- leo leonid [EMAIL PROTECTED] wrote: On Tuesday, December 10, 2002, at 02:43 PM, Charlene Mitchell wrote: Hi, Yes, I have XSP's working as well, but they aren't very performant and usage seem to be discouraged in Carsten's book. I have not read the book yet, but this is very hard to believe! On the contrary, I think the JSP-Generater is added for legacy stuff only. Anyway, you're right, I don't use JSP, and if there is a problem with Jetty/JSP I missed it. sorry I could't help you. /L But JSP's deffo do -not- workand I have yet to hear otherwise. My workaround was to deploy org.apache.jasper.jar and servlet.jar into WEB-INF/lib but I haven't dared see if this will impact on a deployment in TomCat Charlene --- Jordi_Valldaura_i_Riqué [EMAIL PROTECTED] wrote: Hello, I've tried cocoon 2.0.3 and cocoon 2.0.4 on jboss/jbossweb(jetty), and it works. But I've only tried xsps. Charlene Mitchell wrote: Sorry, I forgot to quantify. JSP in Cocoon deployed in Jetty does not work - everything else does work (AFAIK), but JSP's do not. So, unless you use JSP's you can easily be misled unto thinking that everything works fine - but it doesn't. Charlene --- leo leonid [EMAIL PROTECTED] wrote: I can't confirm this. I used all C2.0.x versions with Jetty without problems. Apart from this known redirection problem, that Nicola pointed out to be probably a Jetty bug. http://marc.theaimsgroup.com/?l=xml-cocoon-devm=103926206004897w=2 The simple workaround is to put a leading slash to your redirect url. What exactly is the problem? /Leo On Tuesday, December 10, 2002, at 09:04 AM, Charlene Mitchell wrote: Hi, The Jetty guys confirmed that Cocoon 2.0.3 does not work in Jetty (JBoss 3.0.3/JBossWeb) - so I am not going mad. Anyone else searching the groups with the same problem can follow the thread on YahooGroups under the title JSP Engine in the group 'jetty-support'. HTH someone in the future Charlene - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Jordi Valldaura i Riqué CSI - Centre de Serveis Informàtics Enginyeria i Arquitectura La Salle Universitat Ramón Llull - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com - Please check that your question has not
RE: cocoon 2.0.4 - END
Thank U Matthias, Hussayn, Ugo, Geoff : now I have my cocoon 2.0.4 well running. It was because of the wrong cocoon.war, and then (only then) a not well formed pipeline in the sitemap; excuse me for wasting your time. ~ Lorenzo Bucciarelli~ - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Accessing DatabaseAddAction result
On Tuesday 10 December 2002 17:19, Christian Haul wrote: At least the one from the modular package does set the error message as request attribute. Thanks for your reply. Do you know whether this is in 2.1 only? (I cannot grep setAttribute in the source file but it could be hidden in other modules) Best regards! -- Matthias Brunner [EMAIL PROTECTED] PGP FP 7862 32B3 3B75 292A F76F 5042 8587 21AB 5B89 D501 Check out http://blumenstrasse.vol.at/~mb/gpgkey.asc - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: cocoon-2.0.4 problem with multipart file upload
Yes, maybe. Check to make sure that the new upload settings in web.xml (new in 2.0.4) are set to allow uploads. There are several init-params (such as autosave-uploads), and down later in web.xml there is a configuration for the request factory implementation. The comments in web.xml should give a good clue about their meaning. I didn't think the default setting was changed, although it probably should be. Does the file upload sample still work? Geoff Howard -Original Message- From: Sternath Elmar [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 10, 2002 10:47 AM To: '[EMAIL PROTECTED]' Subject: cocoon-2.0.4 problem with multipart file upload Hello, after cocoon-2.0.4 upgrade the following check inside my self-implemented UploadGenerator (transfers an uploaded multipart file to a backend server, receives an XML response from the backend server and transforms it into HTML) does not become true any more: if (request.get(parameterNames[i]) instanceof FilePartFile) { ... Have there been made any changes in cocoon-2.0.4 in this context? Mit freundlichen Grüßen/ Best regards Elmar Sternath Siemens AG Information and Communication Networks ICN IT CA EB 2 - Web Applications Mch H/Me19 - 99801-231a Meglinger Straße 19 (99801-231a) D-84577 München Tel.: +49(89)722-24045 Mobil: +49(0)160-5860351 Fax.: +49(89)722-53384 EMail: [EMAIL PROTECTED] Sternath Elmar.vcf - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Accessing DatabaseAddAction result
On 10.Dec.2002 -- 05:57 PM, Matthias Brunner wrote: On Tuesday 10 December 2002 17:19, Christian Haul wrote: At least the one from the modular package does set the error message as request attribute. Thanks for your reply. Do you know whether this is in 2.1 only? (I cannot grep setAttribute in the source file but it could be hidden in other modules) No, it's in 2.0.4 as well. Only that it does not access the request object directly but uses o.a.c.c.m.* to do that. Chris. -- C h r i s t i a n H a u l [EMAIL PROTECTED] fingerprint: 99B0 1D9D 7919 644A 4837 7D73 FEF9 6856 335A 9E08 - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to build custom search engine in cocoon?
I don't know your reasons for using Xindice, but using Lucene as your search engine may be a better approach: - The Lucene 1.2 jar is integrated into the Cocoon war. - With Lucene you divide your XML document into fields. For each field you can decide whether to store it into the Lucene index or refer to it as an external link. So you can store titles of documents internally in the Lucene index, and refer to the body as an external link. - Lucene can index XML documents that are stored in Xindice. So if your content is in Xindice, you can leave it there. - Indexing pdf and Word documents is not trivial. See the Lucene mailing list for solutions. - Building a search engine is complicated. You may have to tackle: literals, stemming, fuzzy search, stop words, and apply boolean operators to the parts that define the query of your users. Just to mention a few. - See jakarta.apache.org for more info on Lucene. Check the xml examples. Hugo -Original Message- From: Sreenivasan N. [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 10, 2002 6:40 AM To: [EMAIL PROTECTED] Subject: How to build custom search engine in cocoon? Hi ALL I am trying to build a search engine which search based on keyword to give document URL. The documents can be xml, pdf, word. How can i build a search engine. Design 1 : Use Xindice native database to keep the keywords, location of the document. Search into it and get the URL and give it as hyperlink. Design 2 : Save XML documents with keywords directly into Xindice and retrive Is there any method i can do a search were the keywords and the documents are seperate? Kindly help me out Thanks in advance Sreenivasan. Attitudes are much more important than aptitudes. Nothing is impossible for a willing heart Sreenivasan N. Sony SARD Ext 5816 Email. [EMAIL PROTECTED] Per: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Photo Album sample?
I made an entry some time ago about the ImageReader. Very close... http://outerthought.net/wiki/Wiki.jsp?page=ImageReader Litrik De Roy www.litrik.com - Original Message - From: Upayavira [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, December 10, 2002 2:45 PM Subject: Re: Photo Album sample? I would also be interested in the if you have no objections...thanks! You can now download the basics from: http://www.upaya.co.uk/photoalbum.zip This contains the sitemap, the XSL stylesheets, and an XML file for describing the themes and the images. If people think it a good idea, I could create a Wiki page about this. Question is though - how would one make source files available via Wiki? Can you upload a ZIP file onto Wiki? Regards, Upayavira North London (uk) - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Cannot access Cocoon WAP page
Costantino, but unfortunately that did not fix the problem. In fact, I have the same problem if I try to access hello.html, for example, with the mobile device (which should be no problem). Do you have any idea? Try this site with the mobile browser: http://www.caphnet.com/ This is the one that we created with the modifications that I described. Let me know if it works with that browser. Let me know what happens. Skip -- Dr. Everett (Skip) Carter Phone: 831-641-0645 FAX: 831-641-0647 Taygeta Scientific Inc.INTERNET: [EMAIL PROTECTED] 1340 Munras Ave., Suite 314WWW: http://www.taygeta.com Monterey, CA. 93940 - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: style - external references
xsl:processing-instruction name=xml-stylesheet xsl:texttype=text/css href=http://localhost/style.xml;/xsl:text /xsl:procesing-instruction As you can read, it's a processing instruction. A PI has no attributes (even if it looks so), so you create the content as text. Joerg Chris Faulkner wrote: Hello I have a stylesheet which imports some CSS and SVG styles in a defs tag for an SVG document with the following xsl:copy-of select=document('style.xml')/ In my static SVG files, I can make an external reference to the file in this way. ?xml-stylesheet type=text/css href=http://localhost/style.xml;? How can I write my XSL so that the xml-stylesheet is placed in the SVG in the second way ? Thanks Chris - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Unit Test Cocoon
On Tue, 2002-12-10 at 19:40, Charlene Mitchell wrote: Hi, Does anyone successfully use JUnit and/or Cactus to Unit Test Cocoon actions/generators etc ? I have my own generators and actions but I'm not sure how to call them from JUnit, how to pass in what they would normally expect to receive. e.g. an action receives public Map act(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters params) Have a look at the Excalubur test components. I'm using them as the basis for my action and generator tests. Thanks (hopefully) in advance for any tips/info Charlene PS - the CVS test cases didn't shed any extra light __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- If you don't test then your code is only a collection of bugs which apparently behave like a working program. Website: http://www.rocketred.com.au/blogs/kevin/ - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Multiple data sources
Title: Multiple data sources Is there a standard way of integrating multiple data sources using xmlform? The XForms spec defines the model and instance elements which would be a good solution for my problem. Basically, this is what I am attempting to do: 1. Load an xml document from an xml database (xindice); 2. Perform an xpath expression on this data and loop over the resulting expression, using the itemset ref=//group[@id='switches']/ tag; however the xpath context for this expression should be the document loaded from the database, not the xforms document itself. Are multiple models supported using xforms or should I just define a standard model Bean and load all of my xml database data into the Bean upon instantiation? Thanks, Jon
Calling resources from mounted sitemaps
Title: Calling resources from mounted sitemaps Hi, I could not find a way to call resources in the root sitemap from a mounted sitemap. I have my resources defined in the root sitemap, and I'd like to call these resources from sub-sitemaps. In the sub sitemap I have a simple matcher: map:match pattern=site map:call resource=stdout/ /map:match The resource stdout is defined in the root sitemap, as it will be used by several sub sitemaps. If I move the sub sitemap in the root sitemap everything works fine. I could not find any way to make this working, but since I'm fairly new to cocoon maybe there are better ways to achieve what I'd like. I'm using Cocoon 2.0.3 and Tomcat 4.1.12. Thanks Simon
Re: Cannot access Cocoon WAP page
Hi Skip, I can access your site without problem with my mobile - but unfortunately not yet mine (http://titao.homelinux.org:8080/cocoon/hello.wml)... I also tried every possible combination with http://webcab.de/cgi-bin/fetchpage.cgi, checking the result in the core.log file. I am really puzzled, I don't understand what can be wrong. Can you see something wrong in this log file (from an access test with the mobile)? Or can you suggest any other test that I can do? REMOTE HOST: 138.188.101.64 REMOTE ADDRESS: 138.188.101.64 REMOTE USER: null REQUEST SESSION ID: null REQUEST PREFERRED LOCALE: it SERVER HOST: titao.homelinux.org SERVER PORT: 8080 METHOD: GET CONTENT LENGTH: -1 PROTOCOL: HTTP/1.1 SCHEME: http AUTH TYPE: null CURRENT ACTIVE REQUESTS: 1 REQUEST PARAMETERS: HEADER PARAMETERS: PARAM: 'host' VALUES: '[titao.homelinux.org:8080]' PARAM: 'accept' VALUES: '[application/vnd.wap.wmlc;Type=4365, application/vnd.wap.wmlc;Type=4360, application/vnd.wap.wmlc;Type=1108, application/vnd.wap.wmlc;Level=1.3, application/vnd.wap.wmlc, application/vnd.wap.wmlscriptc, application/vnd.wap.multipart.related, application/vnd.wap.multipart.mixed, application/x-up-device, application/vnd.phonecom.mmc-wbxml;Type=4364, application/vnd.phonecom.mmc-wbxml, application/vnd.phonecom.im, application/octet-stream, application/vnd.openwave.pp, application/vnd.wap.sic, application/vnd.wap.slc, application/vnd.wap.coc, application/vnd.uplanet.bearer-choice-wbxml, application/vnd.uplanet.signal, application/vnd.uplanet.cacheop-wbxml, application/vnd.uplanet.alert-wbxml, image/vnd.wap.wbmp, image/bmp, image/x-MS-bmp, audio/midi, audio/x-midi, audio/mid, text/x-vCalendar, text/x-vCard, text/plain, application/x-mmc.wallpaper;type=image/bmp;size=2000;gray=1;w=101;h=64, application/x-mmc.ringtone;type=audio/midi;size=2000;voices=1, application/x-mmc.title;charset=us-ascii;size=30, image/bmp,image/vnd.wap.wbmp,application/vnd.uplanet.alert,application/x-up- alert,application/vnd.uplanet.bearer-choice,application/vnd.uplanet.cacheop, application/x-up-cacheop,application/vnd.phonecom.mmc-xml,text/x-wap.wml,tex t/vnd.wap.wml,text/x-hdml,text/html,text/vnd.wap.wmlscript,text/vnd.wap.co,t ext/vnd.wap.si,text/vnd.wap.sl, */*]' PARAM: 'accept-charset' VALUES: '[utf-8, UTF-8, *]' PARAM: 'accept-language' VALUES: '[it]' PARAM: 'encoding-version' VALUES: '[1.3, 10 1.3]' PARAM: 'user-agent' VALUES: '[SIE-ME45/23 UP.Browser/5.0.2.2 (GUI) UP.Link/5.1.1.4]' PARAM: 'x-up-devcap-charset' VALUES: '[utf-8]' PARAM: 'x-up-devcap-gui' VALUES: '[1]' PARAM: 'x-up-devcap-iscolor' VALUES: '[0]' PARAM: 'x-up-devcap-max-pdu' VALUES: '[2800]' PARAM: 'x-up-devcap-numsoftkeys' VALUES: '[2]' PARAM: 'x-up-uplink' VALUES: '[spwapgw1p.swissptt.ch]' PARAM: 'x-up-wappush-secure' VALUES: '[www.openwave.com:9003/pap]' PARAM: 'x-up-wappush-unsecure' VALUES: '[www.openwave.com:9002/pap]' PARAM: 'connection' VALUES: '[close]' Thanks, Costantino - Original Message - From: Skip Carter [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Tuesday, December 10, 2002 7:50 PM Subject: Re: Cannot access Cocoon WAP page Costantino, but unfortunately that did not fix the problem. In fact, I have the same problem if I try to access hello.html, for example, with the mobile device (which should be no problem). Do you have any idea? Try this site with the mobile browser: http://www.caphnet.com/ This is the one that we created with the modifications that I described. Let me know if it works with that browser. Let me know what happens. Skip -- Dr. Everett (Skip) Carter Phone: 831-641-0645 FAX: 831-641-0647 Taygeta Scientific Inc.INTERNET: [EMAIL PROTECTED] 1340 Munras Ave., Suite 314WWW: http://www.taygeta.com Monterey, CA. 93940 - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[ERROR] - CVS 2.1
I got the following error: HTTP Status 500 type: Exception report message: description: The server encountered an internal error() that prevent it from fulfilling this request. Exception: javax.servlet.ServletException: Servlet execution threw an exceeption at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain) org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260) org.apache.catalina.core.Standard$StandardPipelineValveContext.invokeNext . . . What it can be? Thanks in advance, Antonio Gallardo - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Calling resources from mounted sitemaps
Title: Calling resources from mounted sitemaps Did you try the cocoon pseudo-protocol? map:call resource="cocoon://stdout" for the root sitemap, cocoon:/stdout for one in the same sitemap. Geoff Howard -Original Message-From: Bordet, Simone [mailto:[EMAIL PROTECTED]]Sent: Tuesday, December 10, 2002 5:18 PMTo: [EMAIL PROTECTED]Subject: Calling resources from mounted sitemaps Hi, I could not find a way to call resources in the root sitemap from a mounted sitemap. I have my resources defined in the root sitemap, and I'd like to call these resources from sub-sitemaps. In the sub sitemap I have a simple matcher: map:match pattern="site" map:call resource="stdout"/ /map:match The resource stdout is defined in the root sitemap, as it will be used by several sub sitemaps. If I move the sub sitemap in the root sitemap everything works fine. I could not find any way to make this working, but since I'm fairly new to cocoon maybe there are better ways to achieve what I'd like. I'm using Cocoon 2.0.3 and Tomcat 4.1.12. Thanks Simon
RE: Blank screen on error
-Original Message- From: Steven Cummings [mailto:[EMAIL PROTECTED]] Sent: Monday, December 09, 2002 3:57 PM To: [EMAIL PROTECTED] Subject: Blank screen on error Hello all, We've occasional seen the messages on this list about a blank screen that is returned when there is some error in a pipeline or resource, and often times (but not quite always) this is while running an XSP. So what I'd like to know is, why does the handle-error resource not get invoked in these cases? The blank screen is useless for debugging and the logs don't always say what's wrong. Is there some way to fix this or is is being worked on. Are you sure it's not just that an action failed gracefully, returned null and no generator was found in the sitemap outside the action? i.e., map:match pattern=foo map:act type=someActionThatFails map:generate ... /map:act /map:match If that action fails, a blank screen will result. HTH, Geoff Howard - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Cannot access Cocoon WAP page
Costantino, I can access your site without problem with my mobile - but unfortunately not yet mine (http://titao.homelinux.org:8080/cocoon/hello.wml)... I also tried every possible combination with http://webcab.de/cgi-bin/fetchpage.cgi, checking the result in the core.log file. I am really puzzled, I don't understand what can be wrong. Can you see something wrong in this log file (from an access test with the mobile)? Unfortunately at the moment, my mobile phone browser returns 'Service Not Available' so I can't do it from there with the phone. My WML browser on my Palm PDA works with your site works just fine. Or can you suggest any other test that I can do? If you try using netcat (nc) to access the pages you can see the problem: simulating a proper WML browser (say Nokia): $ nc www.caphnet.com 80 GET /index.xml HTTP/1.0 User-Agent: Nokia returns: HTTP/1.1 200 OK Date: Tue, 10 Dec 2002 23:34:30 GMT Server: Apache Content-Type: text/vnd.wap.wml X-Cocoon-Version: 2.0.2 Vary: User-Agent Connection: close !DOCTYPE wml PUBLIC -//WAPFORUM//DTD WML 1.1//EN http://www.wapforum.org/DTD/wml_1.1.xml; wml xmlns:xsp=http://www.apache.org/1999/XSP/Core;card id=CaphNet Main Menu title=CaphNet Main Menua title=Company href=/company/index.xml About CaphNet/abr/a title=Browser href=/browser/index.xmlCaphNet Family of Freedom Browser Software Platforms/abr/a title=Partnerships href=/partnerships/index.xmlJoin Us/abr/p/ The CaphNet site contents are written entirely in XML. The entire site can be viewed with any HTML or WML Browser. /card/wml And for the UP browser: $ nc www.caphnet.com 80 GET /index.xml HTTP/1.0 User-Agent: UP returns: HTTP/1.1 200 OK Date: Tue, 10 Dec 2002 23:33:54 GMT Server: Apache Content-Type: text/html X-Cocoon-Version: 2.0.2 Vary: User-Agent Connection: close wml xmlns:xsp=http://www.apache.org/1999/XSP/Core; card id=CaphNet Main Menu title=CaphNet Main Menu a title=Company href=/company/index.xmlAbout CaphNet/a br a title=Browser href=/browser/index.xmlCaphNet Family of Freedom Browser Software Platforms/a br a title=Partnerships href=/partnerships/index.xmlJoin Us/a br p/p The CaphNet site contents are written entirely in XML. The entire site can be viewed with any HTML or WML Browser. /card /wml Note that !DOCTYPE is missing in the second version (I found out by experimenting, that the Content-Type field does not really matter for the UP browser). When I go to your WML page, it always returns !DOCTYPE. If you arrange your sitemap so that !DOCTYPE is never sent for the UP user agent, then you should be okay. Are you sure that the changes that you tried earlier accomplished that ? Skip -- Dr. Everett (Skip) Carter Phone: 831-641-0645 FAX: 831-641-0647 Taygeta Scientific Inc.INTERNET: [EMAIL PROTECTED] 1340 Munras Ave., Suite 314WWW: http://www.taygeta.com Monterey, CA. 93940 - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: i18n transformer and serializer charset
Thank you Konstantin, you were right, it's working with utf charset, as well as the original strings are using TIS-620. But now I run in a new problem. I get these characters from a database and unfortunately the characters will be transformed to be html compliant. That means odd characters like this ¡Ã are transformed to this iexcl;Atilde; and because of this the characters are not decoded correctly. the strange thing is that i used the following in the xsp page: paraxsp:exprgetData()/xsp:expr/para title¡ÃдÒɤÒÃìºÍ¹ 303HÊàµç¡«ÍÊäι«ìäι/title The data inside the para element is transformed to the html compliant versions but the characters in the title element is stays like this and are decoded correctly. can anybody tell me how to insert utf-8 characters from a database correctly into the xml document. the postgres database is UNICODE encoded. ciao Lars -Ursprüngliche Nachricht- Von: Konstantin Piroumian [mailto:[EMAIL PROTECTED]] Gesendet: Dienstag, 10. Dezember 2002 18:06 An: [EMAIL PROTECTED] Betreff: Re: i18n transformer and serializer charset From: Kirchhoff, Lars [EMAIL PROTECTED] Hello I'm currently trying to create an application, which should be running in english, german, thai and several other asian languages. The i18n transformer is working correctly, but to display the characters in the correct manner it is needed to use the specific charset in the meta tag of html. Therefore I tried to setup the sitemap with different serializers according the different languages and tried to use the locale variable to select one of the serializers. But this doesn't work. here are some snippets of my sitemap: - code - ... map:serializer name=html_th mime-type=text/html src=org.apache.cocoon.serialization.HTMLSerializer encodingTIS-620/encoding /map:serializer map:serializer name=html_de mime-type=text/html src=org.apache.cocoon.serialization.HTMLSerializer encodingUTF-8/encoding /map:serializer Why don't you use UTF-8 for all the languages? That works in the Cocoon 2.1 i18n sample for such languages as Japanese, Chinese and Korean (and many others). ... map:act type=locale map:serialize type=html_{locale} label=debug/ /map:act I'm not sure that this is supported. Are you using the compiled sitemap engine or interpreted? ... - code - At first is this possible at all? As far as I read the documentation or the mailling list archives I could find anything. At second is it possible to get the http request paramater oder session parameter in the sitemap. You can easily get either request parameters, request and session attributes in the sitemap using input modules from the latest release, e.g.: map:parameter name=locale value=request-param:locale / See Input modules sample (/samples/module) in C2.1 for details. Konstantin Any help is appreciated. thanks ciao Lars - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Can not build on another directory
$ sh build.sh -Dbuild.root=somewhere leads to errors when coming to scratchpad. I had to modify build.xml. See the attached patch. --- build.xml 2002-12-06 21:41:58.0 +0100 +++ build.xml 2002-12-11 04:27:59.0 +0100 @@ -191,7 +191,7 @@ include name=*.jar/ /fileset !-- FIXME : how to build a path that references a property set in 'init' target ? -- - pathelement path=./build/cocoon/classes/ + pathelement path=${build.root}/cocoon/classes/ /path !-- === -- - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: XMLForm: content listbox problem
- Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, December 10, 2002 2:19 AM Subject: RE: XMLForm: content listbox problem Do you create this method in the Bean file or Action file? In the Action. What does the method should return? The dom document? In your case, it should return a DocumentContainer, not a DOM object. See http://jakarta.apache.org/commons/jxpath/users-guide.html#Containers Ivelin - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
MYSQL, ESQL and character encoding
I'm using ESQL to read and write data from a MYSQL database. Everything works fine, except for one thing. When I look at the data stored in my database, I see very strange characters instead of the ones I expected. For example, when I fill a field of the db with the string òàù, this is written like =a?, even if when I red it with ESQL I get back the right string. I think there's something wrong in my cocoon character encondings configuration, in fact if I manually try from mysql prompt: INSERT INTO table VALUES ('òàù'), the data is properly stored. MYSQL use the default ISO-8859-1 encoding. I've not changed the default cocoon encodings, except for: map:serializer logger=sitemap.serializer.html mime- type=text/html ... ... encodingISO-8859-1/encoding buffer-size1024/buffer-size /map:serializer Any suggestion? - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
howto-xml form problem
Following the how-to xmlform I get the exception below, when finally submitting the data (from the confirmation page) additionally s.th. within the logic seems wrong. after choosing the interestgroup, the selection of the refering mailing-list forms work, but when selecting and submitting these you are being redirected to this page. you can only reach the confirmation page by leaving all interest-options blank. thanx 4 helping in advance, martin Description:org.apache.cocoon.ProcessingException: Failed to execute pipeline.: file:/C:/Programme/Apache Tomcat 4.0/webapps/cocoon/samples/xmlform/howto/end.xml:1:10:org.xml.sax.SAXParseEx ception: The processing instruction target matching [xX][mM][lL] is not allowed. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[HELP]Exception in ServerPagesGenerator.generate()
Description:org.apache.cocoon.ProcessingException: Exception in ServerPagesGenerator.generate(): java.lang.RuntimeException: Could not get the datasource org.apache.avalon.excalibur.datasource.NoValidConnectionException: No valid JdbcConnection class available Please help me! I've made everything but it doesn't work. I have an JDBC Driver in the JDK1.4, but I don'tknow if this is the right one. Please let meknow why Iget this Exception Best Regards Lars
AW: howto-xml form problem
hello martin, this happens most probably if you put spaces before starting the ?xml version=1.0 ? tag. So be sure that there is no space before this tag in your xml file. ciao Lars -Ursprüngliche Nachricht- Von: Martin Heink [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 11. Dezember 2002 03:40 An: [EMAIL PROTECTED] Betreff: howto-xml form problem Following the how-to xmlform I get the exception below, when finally submitting the data (from the confirmation page) additionally s.th. within the logic seems wrong. after choosing the interestgroup, the selection of the refering mailing-list forms work, but when selecting and submitting these you are being redirected to this page. you can only reach the confirmation page by leaving all interest-options blank. thanx 4 helping in advance, martin Description:org.apache.cocoon.ProcessingException: Failed to execute pipeline.: file:/C:/Programme/Apache Tomcat 4.0/webapps/cocoon/samples/xmlform/howto/end.xml:1:10:org.xml. sax.SAXParseEx ception: The processing instruction target matching [xX][mM][lL] is not allowed. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [HELP]Exception in ServerPagesGenerator.generate()
What Database are you using? Antonio Gallardo Lars Müller dijo: Description:org.apache.cocoon.ProcessingException: Exception in ServerPagesGenerator.generate(): java.lang.RuntimeException: Could not get the datasource org.apache.avalon.excalibur.datasource.NoValidConnectionException: No valid JdbcConnection class available Please help me! I've made everything but it doesn't work. I have an JDBC Driver in the JDK1.4, but I don't know if this is the right one. Please let me know why I get this Exception Best Regards Lars - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Add/Remove/Edit Sql entries with buttons (using ESQL)
I want to add an entry in my page when I click on : input type=submit value=Save name=cocoon-action-Add/ And how can I have an automatic ID? What is wrong in my page? Or in my Sitemap? Where do I have to write witch connection to use? map:actions map:action name=add-dbentry src=org.apache.cocoon.acting.DatabaseAddAction / map:action name=del-dbentry src=org.apache.cocoon.acting.DatabaseDeleteAction / map:action name=upd-dbentry src=org.apache.cocoon.acting.DatabaseUpdateAction / /map:actions ... map:action-sets map:action-set name=dbentry map:act type=add-dbentry action=Add / map:act type=del-dbentry action=Delete / map:act type=upd-dbentry action=Update / /map:action-set /map:action-sets ... map:pipeline map:match pattern=workflowmax/add-workflow map:generate type=serverpages src=workflowmax/documents/add-workflow.xsp/ map:transform src=stylesheets/dynamic-page2html.xsl/ map:act set=dbentry/ map:serialize/ /map:match /map:pipeline --- ?xml version=1.0? xsp:page language=java xmlns:xsp=http://apache.org/xsp; xmlns:esql=http://apache.org/cocoon/SQL/v2; xmlns:xsp-request=http://apache.org/xsp/request/2.0; page titleAdd a Workflow/title content form action=process-dbentry method=POST input name=cocoon-action-Add type=hidden value=Add/ paraWorkflow ID: input name=ID type=text//para paraWorkflow Name: input name=wfName type=text//para paraWorkflow dispatch: input name=Dispatcher1 type=text//para paraWorkflow dispatch2: input name=Dispatcher2 type=text//para paraWorkflow dispatch3: input name=Dispatcher3 type=text//para input type=submit value=Save name=cocoon-action-Add/ /form /content /page /xsp:page - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: cocoon-2.0.4 problem with multipart file upload
Thanks Geoff, indeed it was the autosave-uploads param I had to set to true. -Ursprüngliche Nachricht- Von: Geoff Howard [mailto:[EMAIL PROTECTED]] Gesendet: Dienstag, 10. Dezember 2002 18:15 An: [EMAIL PROTECTED] Betreff: RE: cocoon-2.0.4 problem with multipart file upload Yes, maybe. Check to make sure that the new upload settings in web.xml (new in 2.0.4) are set to allow uploads. There are several init-params (such as autosave-uploads), and down later in web.xml there is a configuration for the request factory implementation. The comments in web.xml should give a good clue about their meaning. I didn't think the default setting was changed, although it probably should be. Does the file upload sample still work? Geoff Howard -Original Message- From: Sternath Elmar [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 10, 2002 10:47 AM To: '[EMAIL PROTECTED]' Subject: cocoon-2.0.4 problem with multipart file upload Hello, after cocoon-2.0.4 upgrade the following check inside my self-implemented UploadGenerator (transfers an uploaded multipart file to a backend server, receives an XML response from the backend server and transforms it into HTML) does not become true any more: if (request.get(parameterNames[i]) instanceof FilePartFile) { ... Have there been made any changes in cocoon-2.0.4 in this context? Mit freundlichen Grüßen/ Best regards Elmar Sternath Siemens AG Information and Communication Networks ICN IT CA EB 2 - Web Applications Mch H/Me19 - 99801-231a Meglinger Straße 19 (99801-231a) D-84577 München Tel.: +49(89)722-24045 Mobil: +49(0)160-5860351 Fax.: +49(89)722-53384 EMail: [EMAIL PROTECTED] Sternath Elmar.vcf - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]