Re: Howto use a generated stylesheet
Olivier Billard a écrit : Hi all ! I'm trying to use a generated stylesheet for an xsl transformer and I get this error : org.apache.cocoon.ProcessingException: Unable to get transformer handler for cocoon:/picto-filter.xsl: org.apache.excalibur.xml.xslt.XSLTProcessorException: Exception in creating Transform Handler Here is a snippet of my sitemap : map:match pattern=picto-filter.xsl map:generate src=context://WEB-INF/workflow.xconf/ map:transform src=stylesheets/picto-filter-generator.xsl/ map:serialize type=xml/ /map:match ... map:match pattern=requestlist-part ... map:transform src=cocoon:/picto-filter.xsl/ map:serialize type=xml/ /map:match Isn't the cocoon protocol used in transformers ?? Am I misunderstanding some things ? Thanks in advance !! Did youb try : map:transform src=cocoon:picto-filter.xsl/ (without the / before picto) ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: use an http attribute in an action
Lionel Crine a écrit : you can try : public Map act (Redirector redirector, SourceResolver resolver, Map objectModel, String src, Parameters parameters) throws Exception { Request request = ObjectModelHelper.getRequest(objectModel); String num = request.getParameter(numero); String protection = request.getParameter(protection); ... Ok Thanks, it works fine but i could'nt get it to works because my pipe was requested by a post method and i read somewhere in the list it was impossible to get it to work so... So i resolve my problem by using a redirect. Olivier - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
use an http attribute in an action
Hello all, Y have a HTTP request like : chargement-decision.html?numero=3805protection=inter and y want to use the numero and protection attributes in an action. Do some one know how to do that ? Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
allowing users to upload pdf files in a web dav directory
Hello, I want my users to be able to upload pdf files in a WebDav directory, protected by login password (just cocoon 'know' this password. I try to use upload.xsp but dont know how to configure web.xml to provide this access. Does somebody know or show me a way ? Thanks Olivier - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: allowing users to upload pdf files in a web dav directory
Geoff Howard a écrit : It's not clear below: do you want to use cocoon's upload facility, or webdav? Geoff yes y do. I want to upload a file (IE with upload.xsp) but not on my HD, on a webdav directory. Do you know how to do this ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: allowing users to upload pdf files in a web dav directory
The end user produce a pdf file and use cocoon (via upload.xsp) to publish it : upload.xsp provides the end user to select a pdf file and upload it to the server. I just want the server to store this file not on the server HD, but in a webdav directory on an other server. I don't know how to specifying this in web.xml I hope it's most clear because i can't take you any coffee. Thanks Geoff Howard a écrit : I'm sorry - I must need more coffee. It's still not clear to me. Here's my best guess: You want to upload to upload.xsp, but select a file not from your hard drive but from a local shortcut to a webdav directory? I don't think windows/IE will let you do that. In my experience with webdav (not extensive) I've had to save the file locally first, and then upload it. This is beyond cocoon's control, though. The issue is on the client. If, however, you are talking about uploading a file using upload.xsp to a directory that happens to also be available via webdav, it would just be a matter of specifying the correct directory in web.xml for upload-directory or whatever that param is called. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: allowing users to upload pdf files in a web dav directory
Ok, thanks a lot, i will have a look at cocoon wiki ! Geoff Howard a écrit : I see. The server itself has access to a webdav folder on a third machine. As far as I know, there will not be a way to automatically handle this because cocoon's uploads are using java.io.File to automatically save files and I don't think this will work saving to a webdav folder, which as I understand it is not a folder at all, but a pointer to a url using the http protocol. If your particular server and webdav implementation happen to support it though you'll be in luck but it would be as easy as specifying whatever file path in web.xml you use for the local webdav folder on the server. If that doesn't work as I suspect, you'll need to write an action to get the FilePart out of the request, call getInputStream and send that input stream over http to the webdav location. See: http://wiki.cocoondev.org/Wiki.jsp?page=FileUploadWithAction and http://wiki.cocoondev.org/Wiki.jsp?page=FileUploadsWithCocoon for more information on the process up to and including getting the input stream. You may also get info from WebServiceProxyGenerator and/or HTTPProxyGenerator Beyond that though, I'll not be much help. You may want to repost a new question focused on how to send input stream to a webdav repository on another server from within an action. Geoff Howard To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
serve files stored in a webdav repository
Hello I need to serve with Cocoon some files stored in a Webdav repository. The access to the WEB-DAV directory is protected via login-password and i want this directory to be reserved to cocoon (not to each visitor). How schould i configure my sitemap.xmap to make it possible for Cocoon to send login - password and so have the webdav access to the files ? Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
upload - webdav
Now, i can use protected webdav directory to serve files with Cocoon : thanks Guido. What i want to do yet et upload files with Cocoon to this protected webdav directory. Is it a simple way to do this ? Thanks Olivier - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
XSPAction
Hello I read the Wiki how-to about XSPAction, and think it's a good idea. But i stil have a question : where should i put the my-xsp-action.xsp file Do i have to write a map:match for it and if yes, how (serialize xml ?) Thanks Olivier Guckert - 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: auth problem
Carsten Ziegeler a écrit : This is of course because of your redirect statement. Usually, if your login-page is called it gets a request parameter named resource that contains the protected resource. So, you have to take care that you pass this parameter (e.g. via a hidden input field) to your login pipeline. Then you can do a redirect to {request-param:resource}. Carsten Ok Thanks Carsten, i try to do this Olivier Guckert - 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]
auth problem
Hello I'd like to use the authentication actions, but have some trouble with the redirect-to : In my sitemap, i wrote : map:match pattern=login map:act type=auth-login map:parameter name=handler value=MaProtection/ map:parameter name=parameter_nom value={request-param:nom}/ map:parameter name=parameter_mot-de-passe value={request-param:mot-de-passe}/ map:redirect-to uri=annu2.xml/ /map:act !--L'authentification a échoué -- map:redirect-to uri=login-page/ /map:match and it works fine. But it's good just for protect the page annu2.xml. How can i parameter the redirect-to with the name of the called page ? Thanks - 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: auth problem
Martin Dulisch a écrit : Hi Olivier, protection works over the 'auth-protect' action. You can use it in any pipeline. So you dont need a redirect to protect other pages. Martin Ok Martin and thanks But, if i write : map:match pattern=login map:act type=auth-login map:parameter name=handler value=MaProtection/ map:parameter name=parameter_nom value={request-param:nom}/ map:parameter name=parameter_mot-de-passe value={request-param:mot-de-passe}/ map:redirect-to uri=annu2.xml/ /map:act !--L'authentification a échoué -- map:redirect-to uri=login-page/ /map:match The first seen page after login is always annu2.xml... And if i don't write the map:redirect-to uri=annu2.xml/, i go back to the login-page, ... Or, if i have an other page protected with my handler, it's better for me to see it without to see the annu2.xml page. And i don't know how to do that. - 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 can i define my pipeline to open .doc , .pdf
Hello Sreenivasan N. a écrit : Hi all I have got some word documents, pdf documents, excel documents which are there in doc, pdf, xls folders i would like to define a pipeline which can open the document in cocoon. Does map:read slove the problem? What mime type i should define for it example application/msword Thanks in advance Regards Sreenivasan. just try : map:match pattern=ressources-*.doc map:read mime-type=application/msword src=Ressources/{1}.doc/ /map:match map:match pattern=ressources-*.xls map:read mime-type=application/vnd.ms-excel src=Ressources/{1}.xls/ /map:match Regards Olivier Guckert - 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]
upload-dir
Hello I want to use the upload.xsp, but i need to configure different upload-dir. I see that there is a parameter in web.xml : param-nameupload-directory/param-name param-value/WEB-INF/work/upload-dir/param-value but there's no reference to this parameter in the upload.xsp Does any-one know how to do it ? Thanks Olivier GUCKERT - 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: Réf:RE: Problem SQLTransformer
Rano, Didier a écrit : I verified, and values in column rpb_id are not null. Columns names are the same, because it is a test with SQL: select rpb_id, rpb_id from hia_rp_bml. But with SQL: select rpb_id from hia_rp_bml the result has the same problem. Thank you for your help Didier Rano Serv'N Data Spo what's a strange problem ! Cann you tell us more about it (what is your XML File ...) Did you try your SQL syntax without Cocoon ?, and what are the results ... Olivier GUCKERT - 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]
Environment variable
Hello all ! The home of my webapp will soon move, and i want to declare it with an environment variable. So i define an environment variable and replace the path to the directory of my website sitemap.xmap with this variable : so : before : map:match pattern=referentiels/** map:mount uri-prefix=referentiels src=file:/users/sys/guckert/dossiers/cocoon/referentiels/sitemap.xmap reload-method=synchron check-reload=yes/ /map:match and after : map:match pattern=referentiels/** map:mount uri-prefix=referentiels src=file:$REFERENTIEL_HOME/sitemap.xmap reload-method=synchron check-reload=yes/ /map:match But, when i try to reload the index.html with Cocoon, i get the folowing : Failed to load sitemap from file:$REFERENTIEL_HOME/sitemap.xmap Is it not possible to do this with cocoon or what did i wrong ? Thanks - 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: Problems using the esql:error-results tag
Hi, I am working on a simple online registration tool, to register for exams. That for I have got a mysql database server, to insert and read the data. Within that database I have set a primary key that is made out of lets say the studentid, and the id from the exam. I have set it to primary for the reason, that no double entry can be done. So if a student wants to register to one exam twice, there is an exception saying, that there is a Duplicate entry for that field. Now instead of throwing out the exception within cocoon, I want to display something like, an error occurs instead. That for I used the tag esql:error-results to give a different message than that from cocoon. If i understand tour problem, you just have to do : esql:error-results error an error occurs /error /esql:error-results Could anybody give me a hint how that could be done. If it doesn't match, you just have to telle me more ... Olivier GUCKERT - 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]
LDAP Transformer
Hello here I want to use the LDAP Transformer to make an authentification by sending ID an passwd to an LDAP. Which tags should i use and how ? Thanks - 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]
Ldap authentication
Hello all Do someone know how to make an authentication with LdapTransformer. The client enter DN and passwd : how can i do the LDAP authentication with these informations ? Thanks - 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: problem with database connection
[EMAIL PROTECTED] a écrit : What component are you using? SQLTransformer? Database Action? Can you post the relevant portions of cocoon.xconf/sitemap.xmap? here is my configuration : In web.xml : init-param param-nameload-class/param-name param-value !-- pour mysql -- org.gjt.mm.mysql.Driver in access.log : DEBUG (2002-09-27) 10:40.03:837 [access] (Unknown-URI) Unknown-thread/CocoonServlet: Trying to load class: org.gjt.mm.mysql.Driver so i think the dirver is OK... in cocoon.xconf : datasources jdbc name=mysql_pool pool-controler min=5 max=10/ auto-committrue/auto-commit durljdbc:mysql://aube.loria.fr/guckdb/durl usermylogin/user passwordmypassword/password /jdbc in sitemap.xmap : map:match pattern=donnees.xml map:generate src=documents/donnees.xsp type=serverpages/ map:transform type=xslt src=stylesheets/donnees_xml.xsl/ map:serialize type=xml/ /map:match in donnees.xsp : ?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; lignes esql:connection esql:poolmysql_pool/esql:pool esql:execute-query esql:querySELECT * FROM xsp-request:get-parameter name=table/ /esql:query esql:results table xsp-request:get-parameter name=table/ /table esql:row-results ligne esql:get-columns/ /ligne /esql:row-results /esql:results esql:no-results/ esql:error-results/ /esql:execute-query /esql:connection /lignes /xsp:page I work on Mandrake Linux release 8.1. jakarta-tomcat-4.1.10 jdk1.3.1_01 cocoon-2.0.3 So, if y ask : http://greau.loria.fr:8080/cocoon/referentiels/donnees/donnees.xml?table=Assistante_Structure i become the folowing message : org.apache.cocoon.ProcessingException: Exception in ServerPagesGenerator.generate(): java.lang.RuntimeException: Could not get the datasource java.sql.SQLException: The url cannot be null - 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: problem with database connection
[EMAIL PROTECTED] a écrit : Did you cut and paste the cocoon.xconf? It can't find the url, and the url tag is durl instead of dburl. I think you said this worked in a previous version of cocoon, and I don't know if the cocoon.roles has changed since then. Let me know if it's just a simple typeo before I try to load your config. Thanks. b oh my god... I'm so sorry for this type error. Now it work fine Thank you so much ... Olivier. - 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]
problem with database connection
hi all I have a problem with my connection to my sql. when i try cto connect i get the folowing message : Could not get the datasource java.sql.SQLException: The url cannot be null I work on linux with cocoon 2.0.3 I have the same parameters than with cocoon 2.0.2 on windows and this one work fine... What's the touble ? olivier... - 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]
New tutorial : Cocoon 2: Build database-driven sites
Hello all There's a new tutorial about Cocoon 2: Build database-driven sites by Leigh Dodds at IBM DevelopperWorks : http://www-105.ibm.com/developerworks/education.nsf/xml-onlinecourse-bytitle/AC994D2B8F0B85D086256BC1006B53AC?OpenDocument Olivier Guckert - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cann't run sql examples
Hello all, I have a problem to run example cocoon with SQL database. In the : http://localhost:8080/cocoon/welcome page, if i try the simple SQL example, i become a white page. If i uncomment the execute-query in the sql-page-xml, i botain a html page (without the data). When i click on the ESQL example, it works fine : so i think my database connexion is well. What's wrong ? - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
problem vith sub_sitemap
Hello I have a problem with sub-sitemap. I want to have a directory for my apps. This directory is : G:\site. So, i add a pipeline in sitemap.xmap, look like this : map:pipeline map:match pattern=transfo/** map:mount uri-prefix=transfo src=///./site/sitemap.xmap reload-method=synchron check-reload=yes/ /map:match /map:pipeline And i create a sub-sitemal in G:\site, look like this : ?xml version=1.0? map:sitemap xmlns:map=http://apache.org/cocoon/sitemap/1.0; /map:pipelines map:pipeline map:handle-errors map:transform src=stylesheets/system/error2html.xsl/ map:serialize status-code=500/ map:handle-errors map:match pattern=ctwig/basic01-01.xml map:generate type=file src=documents/basic01-01.xml/ map:transform type=xslt src=stylesheets/basic01-01.xsl/ map:serialize/ /map:match /map:pipeline /map:pipelines /map:sitemap And when i cold : http://localhost:8080/cocoon/transfo/ctwig/basic01-01.xml I have the folowing message : org.apache.cocoon.components.language.LanguageException: Error compiling sitemap_xmap: Line 73, column 25: ';' expected. Line 224, column 8: Invalid expression statement. Line 224, column 17: ';' expected. Line 329, column 12: ')' expected. Line 378, column 17: Identifier expected. Line 492, column 50: ')' expected. Line 497, column 38: ')' expected. Line 503, column 49: ')' expected. Line 0, column 0: 8 errors And i cann anderstand. Cann somebody help me ? - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: problem vith sub_sitemap
Hahn Kurt (CHA) a écrit : Hmmm. I'm a newbie, but I managed to mount a subsystem, though I put in the Cocoon-directory, but that shouldn't change much. In my configuration, I didn't point the src= to the sitemap, but only to the directory which contains the sitemap, like: map:pipeline map:match pattern=Kurt/** map:mount uri-prefix=Kurt src=Kurt/ check-reload=yes/ /map:match /map:pipeline So why don't you try that: src=///./site/ instead of src=///./site/sitemap.xmap Regards Kurt i know, i tried it and have the same error message. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: problem vith sub_sitemap
Luca Morandini wrote : Oliver, what Kurt said is correct, in addition, I'd change the src=///./site/ to src=file:///g:/site/ Best regards, Thanks, but i've done so to, and it doesn't work... - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: problem vith sub_sitemap
Rodrigues Luc a écrit : Hi, Sorry for my poor english langage. ?xml version=1.0? map:sitemap xmlns:map=http://apache.org/cocoon/sitemap/1.0; /map:pipelines ---^-Your error is here. type: map:pipelines at place. I hope that help you. I thing my english langage is not better... Thank you, i had seen this problem and it worrks fine : thanks to all Olivier - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cocoon with mysql
Hello I have cocoon installed on my machine and an acces to a mysql database. Can somebody tell me how to make work together ? Thanks Olivier - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]