Re: Deploying Cocoon Projects w/ Maven 2
Hi Maven 2 allows you compile multiple projects. /cocoon projects pom.xml --- your "cocoon projects" setup including references the subprojects (see below) /cocoon-project1 pom.xml /src /main /webapp /WEB-INF /lib web.xml /cocoon-project2 pom.xml /src ... /cocoon-project3 pom.xml /src ... In this case you can package your webapps with a single 'mvn clean install' command. At first, I put all the cocoon jars into the WEB-INF/lib directory, which isn't a good idea. But I wanted to see how maven2 worked. After setting the 'provided' scope, Imaven didn't override jars in the lib. I guess, that the solution is putting all the cocoon and other jars into the pom.xml files as dependencies. Everything is in one place (the maven2 repository - central or your own), and during the packaging, all referenced jars are copied to each of your WEB-INF/lib. At the weekend I'll set up my project files, so I'll be much cleverer then :)) Hope this helps. Best regards, czinkos On Wed, Feb 08, 2006 at 05:06:44PM -0500, [EMAIL PROTECTED] wrote: > Hi Zsolt, > > Thanks for the reply. Unfortunately, we have multiple projects using the > Cocoon servlet, so packaging the Cocoon project inside cocoon.war and > redeploying isn't really an option. > > I guess it's time to start digging into the Maven development docs... > > > Thanks, > Ian > > It's better to be hated for who you are > than loved for who you are not > > Ian D. Stewart > Appl Dev Analyst-Advisory, DCS Automation > JPMorganChase Global Technology Infrastructure > Phone: (614) 244-2564 > Pager: (888) 260-0078 > > > > > Zsolt Czinkos > > <[EMAIL PROTECTED]To: > users@cocoon.apache.org > e.hu>cc: > >Subject: Re: Deploying Cocoon > Projects w/ Maven 2 > 02/08/2006 04:06 > > PM > > Please respond to > > users > > > > > > > > Hi > > I've just stareted working with cocoon and maven, and I found these > pages, which helped me: > > http://maven.apache.org/general.html#scope-provided > http://maven.apache.org/guides/mini/guide-webapp.html > > You can create a webapp archetyped project, and set dependencies. Cocoon > is in the maven2 repository. (I haven't finished setting up the maven > environment, so probably it's not that simple, but this is the way, I > follow) > > czinkos > > > On Wed, Feb 08, 2006 at 11:52:29AM -0500, [EMAIL PROTECTED] wrote: > > I'm currently in the process of setting up a Cocoon project to use Maven > 2 > > to automate the build process. I'm now at the stage where I have built > and > > package the source and am ready to deploy the resulting artifacts to our > > Cocoon environment. We have multiple projects running in this > environment, > > so just redeploying the Cocoon WAR is not an option. > > > > Ideally, what I would like to be able to do is something like: > > > > mvn cocoon:deploy > > > > Which would install JAR's created during the packaging step under > > $CATALINA_BASE/webapps/cocoon/WEB-INF/lib and install the content > > (sitemap.xmap, views, CForm's, etc) into a subdirectory under > > $CATALINA_BASE/webapps/cocoon. > > > > Is this something that could feasibly be done using Maven 2? If so, are > > there any resources (plugins, howtos, etc) that I could consult to enable > > this? > > > > > > Thanks, > > Ian > > > > It's better to be hated for who you are > > than loved for who you are not > > > > Ian D. Stewart > > Appl Dev Analyst-Advisory, DCS Automation > > JPMorganChase Global Technology Infrastructure > > Phone: (614) 244-2564 > > Pager: (888) 260-0078 > > > > > > --
fd:groups that inherits, fd:field/@required and Forms libraries
Hello Cocooners, I want to have two groups of widgets were in the first group some widgets are required and in the second that inherit from the first one have same widgets that are not required. Let's have an example: Password: When I try this example code i get following exception: org.apache.cocoon.forms.formmodel.DuplicateIdException: Duplicate widget id "password" detected Is it possible to achieve what I want with Forms libraries? -- g[R]eK smime.p7s Description: S/MIME Cryptographic Signature
Re: xhtml table -> mysqlimport
Another option would be to use the Cocoon command-line interface. I haven't used it myself, but in theory it should be doable. Ian It's better to be hated for who you are than loved for who you are not Ian D. Stewart Appl Dev Analyst-Advisory, DCS Automation JPMorganChase Global Technology Infrastructure Phone: (614) 244-2564 Pager: (888) 260-0078 "Andrew Stevens" <[EMAIL PROTECTED]To: users@cocoon.apache.org m> cc: Subject: Re: xhtml table -> mysqlimport 02/08/2006 05:06 PM Please respond to users >From: Antonio Gallardo <[EMAIL PROTECTED]> >Reply-To: users@cocoon.apache.org >To: users@cocoon.apache.org >Subject: Re: xhtml table -> mysqlimport >Date: Wed, 08 Feb 2006 13:48:11 -0600 > >Derek Hohls wrote: > >>Thufir >> >>I would not say that Saxon has any "learning curve"; your >>learning is in the use of XSLT and working with XHTML. >>Saxon just does the "grunt" work of running the transform >>for you... you do not need to learn how it does this. >> >> >BTW, What makes saxon more suitable to this task than xalan? Probably nothing. I only mentioned Saxon earlier because I'd already used it this way in the past; I didn't know Xalan even had a command line interface until I went looking just now.[1] Much the same reason I mentioned XMLSpy ahead of Netbeans for running it in an IDE. Andrew. [1] http://xml.apache.org/xalan-j/commandline.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Deploying Cocoon Projects w/ Maven 2
Hi Zsolt, Thanks for the reply. Unfortunately, we have multiple projects using the Cocoon servlet, so packaging the Cocoon project inside cocoon.war and redeploying isn't really an option. I guess it's time to start digging into the Maven development docs... Thanks, Ian It's better to be hated for who you are than loved for who you are not Ian D. Stewart Appl Dev Analyst-Advisory, DCS Automation JPMorganChase Global Technology Infrastructure Phone: (614) 244-2564 Pager: (888) 260-0078 Zsolt Czinkos <[EMAIL PROTECTED]To: users@cocoon.apache.org e.hu>cc: Subject: Re: Deploying Cocoon Projects w/ Maven 2 02/08/2006 04:06 PM Please respond to users Hi I've just stareted working with cocoon and maven, and I found these pages, which helped me: http://maven.apache.org/general.html#scope-provided http://maven.apache.org/guides/mini/guide-webapp.html You can create a webapp archetyped project, and set dependencies. Cocoon is in the maven2 repository. (I haven't finished setting up the maven environment, so probably it's not that simple, but this is the way, I follow) czinkos On Wed, Feb 08, 2006 at 11:52:29AM -0500, [EMAIL PROTECTED] wrote: > I'm currently in the process of setting up a Cocoon project to use Maven 2 > to automate the build process. I'm now at the stage where I have built and > package the source and am ready to deploy the resulting artifacts to our > Cocoon environment. We have multiple projects running in this environment, > so just redeploying the Cocoon WAR is not an option. > > Ideally, what I would like to be able to do is something like: > > mvn cocoon:deploy > > Which would install JAR's created during the packaging step under > $CATALINA_BASE/webapps/cocoon/WEB-INF/lib and install the content > (sitemap.xmap, views, CForm's, etc) into a subdirectory under > $CATALINA_BASE/webapps/cocoon. > > Is this something that could feasibly be done using Maven 2? If so, are > there any resources (plugins, howtos, etc) that I could consult to enable > this? > > > Thanks, > Ian > > It's better to be hated for who you are > than loved for who you are not > > Ian D. Stewart > Appl Dev Analyst-Advisory, DCS Automation > JPMorganChase Global Technology Infrastructure > Phone: (614) 244-2564 > Pager: (888) 260-0078 > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: xhtml table -> mysqlimport
From: Antonio Gallardo <[EMAIL PROTECTED]> Reply-To: users@cocoon.apache.org To: users@cocoon.apache.org Subject: Re: xhtml table -> mysqlimport Date: Wed, 08 Feb 2006 13:48:11 -0600 Derek Hohls wrote: Thufir I would not say that Saxon has any "learning curve"; your learning is in the use of XSLT and working with XHTML. Saxon just does the "grunt" work of running the transform for you... you do not need to learn how it does this. BTW, What makes saxon more suitable to this task than xalan? Probably nothing. I only mentioned Saxon earlier because I'd already used it this way in the past; I didn't know Xalan even had a command line interface until I went looking just now.[1] Much the same reason I mentioned XMLSpy ahead of Netbeans for running it in an IDE. Andrew. [1] http://xml.apache.org/xalan-j/commandline.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: xhtml table -> mysqlimport
On 2/8/06, Antonio Gallardo <[EMAIL PROTECTED]> wrote: > Derek Hohls wrote: > > >Thufir > > > >I would not say that Saxon has any "learning curve"; your > >learning is in the use of XSLT and working with XHTML. > >Saxon just does the "grunt" work of running the transform > >for you... you do not need to learn how it does this. > > > > > BTW, What makes saxon more suitable to this task than xalan? > > Best Regards, > > Antonio Gallardo. .. I'll check them both out, thanks :) -Thufir - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
CForms button clicks verses enter in IE
We have a set of cocoon forms that are split into multiple pages by changing the widget state on a group of widgets that make up the different pages when buttons are pushed on the page. These are pretty much the same thing as the multipage example except it's not using the ajax feature at this time. Our testers have found an issue that seems to be only in IE where if they push enter to submit a form rather than clicking the "next page" button, the "next page" button logic is not executed. The showForm function in our flow exits which leaves us with incomplete data that we expect to receive from the form. In a non-cforms application we've solved this by setting _javascript_ a listener to capture the enter event and clicking the default button for the user so the correct values of the form are sent. Has anyone else run into this issue? We're going to try our old solution but if there is a way that fits better with the CForms scripting we would rather use that.Environment:JBoss 4.0.3Cocoon 2.18 Thanks for any advice,Archie
Re: Cocoon Matching Problem
> Hi: > > We (my project group) are having a problem at work with the code > reproduced > below. The first section of code is the pipeline portion of the Cocoon > sitemap we are running. The idea is that any URL requested by the user > will > be passed down by all of the pipelines with specific matches and match on > the Frameset pipeline that will match on anything. This Frameset pipeline > will generate the frameset for the site using the XSL stylesheet in the > second section of code. The frameset generates requests for three > additional URLs for the search Bar, Nav Bar, and Main Text Area. The > Search > Bar and Navigation Bar URLs will match on specific pipelines, while the > Main > Text are URL will match on various pipelines depending on the exact URL. > All of this works for the URL "policy.bltmc.edu", but for URLs with a " > policy.bltmc.edu/*" format, we experience the following problem. > > When we request URLs with the "policy.bltmc.edu/*" format the Frameset > pipeline works fine, it generates the frameset and sends the correct > requests for the search Bar, Nav Bar, and Main Text Area. The Search Bar > and Navigation Bar pipelines work fine and generate those portions of the > page. The request for the Main Text Area fails to match on the " > policy.bltmc.edu/*/Main_Text_Area" pipeline, however. As a result the > request is passed down and matches on the Frameset pipeline. This leads > to > a loop in which the Search and Navigation Bars are inserted repeatedly. > > > What is really odd is that while the "policy.bltmc.edu/*/Main_Text_Area" > request generated by the frameset---in response to a " > policy.bltmc.edu/*/Main_Text_Area" request---will not work, if we directly > request a URL in the "policy.bltmc.edu/*/Main_Text_Area" format, the > pipeline that is supposed to match on that format works and generates the > page. We have checked the Main Text Area URL generated by the Framest, > however, and it is correct. > > Three of us have been trying to figure this out for the past week and we > just cannot figure it. Any help would be much appreciated. > My guess is this has something to do with relative URLs in your src="" attributes. The web browser will resolve them relative to the current document's base URL. So if your frameset is requested by the URL: http://domain.com/policy.bltmc.edu/mypage and that frameset's XSLT produces: then your browser will request this URL for that frame's contents: http://domain.com/policy.bltmc.edu/policy.bltmc.edu/mypage/Main_Text_Area ...which would not be matched by either of your Main_Text_Area pipelines. The search/navigation bar pipelines are matching because you use "**". To fix it either make your Main_Text_Area matcher more generic, or begin your src attributes with a "/" to make it resolve relative to the domain root. Hopefully this is the right guess. You'd be able to verify it by looking in your access logs. Regards, --Jason - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Deploying Cocoon Projects w/ Maven 2
Hi I've just stareted working with cocoon and maven, and I found these pages, which helped me: http://maven.apache.org/general.html#scope-provided http://maven.apache.org/guides/mini/guide-webapp.html You can create a webapp archetyped project, and set dependencies. Cocoon is in the maven2 repository. (I haven't finished setting up the maven environment, so probably it's not that simple, but this is the way, I follow) czinkos On Wed, Feb 08, 2006 at 11:52:29AM -0500, [EMAIL PROTECTED] wrote: > I'm currently in the process of setting up a Cocoon project to use Maven 2 > to automate the build process. I'm now at the stage where I have built and > package the source and am ready to deploy the resulting artifacts to our > Cocoon environment. We have multiple projects running in this environment, > so just redeploying the Cocoon WAR is not an option. > > Ideally, what I would like to be able to do is something like: > > mvn cocoon:deploy > > Which would install JAR's created during the packaging step under > $CATALINA_BASE/webapps/cocoon/WEB-INF/lib and install the content > (sitemap.xmap, views, CForm's, etc) into a subdirectory under > $CATALINA_BASE/webapps/cocoon. > > Is this something that could feasibly be done using Maven 2? If so, are > there any resources (plugins, howtos, etc) that I could consult to enable > this? > > > Thanks, > Ian > > It's better to be hated for who you are > than loved for who you are not > > Ian D. Stewart > Appl Dev Analyst-Advisory, DCS Automation > JPMorganChase Global Technology Infrastructure > Phone: (614) 244-2564 > Pager: (888) 260-0078 > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: xhtml table -> mysqlimport
Derek Hohls wrote: Thufir I would not say that Saxon has any "learning curve"; your learning is in the use of XSLT and working with XHTML. Saxon just does the "grunt" work of running the transform for you... you do not need to learn how it does this. BTW, What makes saxon more suitable to this task than xalan? Best Regards, Antonio Gallardo. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
PageBreaks in Excel-HTML transformer
Hi, I am trying to fix the following bug in the large Cocoon 2.0.4 project: In produced multi-page Excel [2000/2003] document some break-points are shifted by 3 lines (unlike Word document). That makes it look very messy. After some analysis, I came to the conclusion that our Excel-HTML trasformer strips away both and HTML elements. I was able to re-introduce it by modifying page-break template: instead of:introduce: However subsequent HTML serializer with mime-type="application/vnd.ms-excel" throws away these page-break-after, and introduces its own page-break-before in the wrong places (shifted by 3 lines): ... 1) Why is that happening in a standard Cocoon HTMLTransformer (with mime type Excel)? Is there any way to prevent it / fix that problem ? 2) Another possible alternative for us would be to put every page (table) in a separate Excel WorkSheet (so user can print all of them hopefully separated corrected in print). That would probably require changing page-break template (see above) in Excel-HTML transformer. What/how to change it so that page-break becomes a signal to put the data in the next WorkSheet ? Here is the part of the transformer regarding Excel (maybe I need to modify something here?): discussionsheet 80 600 600 20 3 1 False False False 12270 19755 210 90 False False Please help ! Thank you in advance, Oleg. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Cocoon Matching Problem
Hi:We (my project group) are having a problem at work with the code reproduced below. The first section of code is the pipeline portion of the Cocoon sitemap we are running. The idea is that any URL requested by the user will be passed down by all of the pipelines with specific matches and match on the Frameset pipeline that will match on anything. This Frameset pipeline will generate the frameset for the site using the XSL stylesheet in the second section of code. The frameset generates requests for three additional URLs for the search Bar, Nav Bar, and Main Text Area. The Search Bar and Navigation Bar URLs will match on specific pipelines, while the Main Text are URL will match on various pipelines depending on the exact URL. All of this works for the URL " policy.bltmc.edu", but for URLs with a "policy.bltmc.edu/*" format, we experience the following problem.When we request URLs with the " policy.bltmc.edu/*" format the Frameset pipeline works fine, it generates the frameset and sends the correct requests for the search Bar, Nav Bar, and Main Text Area. The Search Bar and Navigation Bar pipelines work fine and generate those portions of the page. The request for the Main Text Area fails to match on the " policy.bltmc.edu/*/Main_Text_Area" pipeline, however. As a result the request is passed down and matches on the Frameset pipeline. This leads to a loop in which the Search and Navigation Bars are inserted repeatedly. What is really odd is that while the "policy.bltmc.edu/*/Main_Text_Area" request generated by the frameset---in response to a " policy.bltmc.edu/*/Main_Text_Area" request---will not work, if we directly request a URL in the "policy.bltmc.edu/*/Main_Text_Area" format, the pipeline that is supposed to match on that format works and generates the page. We have checked the Main Text Area URL generated by the Framest, however, and it is correct. Three of us have been trying to figure this out for the past week and we just cannot figure it. Any help would be much appreciated. policy.bltmc.edu/Main_Text_Area"> policy.bltmc.edu/*/Main_Text_Area"> http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/1999/xhtml "> FrameSet
Deploying Cocoon Projects w/ Maven 2
I'm currently in the process of setting up a Cocoon project to use Maven 2 to automate the build process. I'm now at the stage where I have built and package the source and am ready to deploy the resulting artifacts to our Cocoon environment. We have multiple projects running in this environment, so just redeploying the Cocoon WAR is not an option. Ideally, what I would like to be able to do is something like: mvn cocoon:deploy Which would install JAR's created during the packaging step under $CATALINA_BASE/webapps/cocoon/WEB-INF/lib and install the content (sitemap.xmap, views, CForm's, etc) into a subdirectory under $CATALINA_BASE/webapps/cocoon. Is this something that could feasibly be done using Maven 2? If so, are there any resources (plugins, howtos, etc) that I could consult to enable this? Thanks, Ian It's better to be hated for who you are than loved for who you are not Ian D. Stewart Appl Dev Analyst-Advisory, DCS Automation JPMorganChase Global Technology Infrastructure Phone: (614) 244-2564 Pager: (888) 260-0078 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: CFORM - repeater , add-row on OJB collection
Alessandro Vincelli schrieb: Hi, > But the situation if different from the example. > I have form-repeater similar to exaple in the link, and work fine. > > In this situation I try to add Bean directly to a collection from OJB. > The collection is returned from OJB. > org.apache.ojb.broker.util.collections.RemovalAwareCollection > > The RemovalAwareCollection has > RemovalAwareCollection.add(java.lang.Object) > RemovalAwareCollection.ojbAdd(java.lang.Object) > > and in bind I use this method > > addmethod="add"/> > > > But I have this problem: > > java.lang.NoSuchMethodException: > org.apache.ojb.broker.util.collections.RemovalAwareCollection.add(w4b.com.cassagest.db.Docuassist) > Any idea? If nothing else works, you can add it yourself in some javascript snippet in the corresponding event javascript-section. Sorry, i don't know where your problem comes from. Christoph - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
CForms and Authenticate
Hello, Still working my way around CForms and ways that I can use it with my existing Cocoon system. I'm getting back an XML document (using ) and, in one form, this is the user's name and password. The problem is that if I use this in conjunction with the authenticate resource so I have a pipeline that looks something like: I assume that the bound XML is not available in the authenticate pipe. Should I continue with this or just separate the parameters for username and password (after all there are only two) and pass them in or use flowscript to do the authentication? Thanks for you help, Gary * The information contained in this message may be confidential or legally privileged and is intended for the addressee only, If you have received this message in error or there are any problems, please notify the originator immediately. The unauthorised use, disclosure, copying or alteration of this message is strictly forbidden. * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Forms encoding problem
Hi Derek, I encountered encoding problems here and there in java for a long time, because the JVM could not be enabled to use UTF-8 correctly because the underlying libc is not UTF-8 (or any other encoding) aware, expecially on Linux/*nix machines. Since you are having this problem on a certain server, are you sure the JVM in that server is able to actually read/write UTF-8? you could write a very simple class with a main which loads or writes a file and/or to screen in UTF-8, and see if the JVM itself properly handles the UTF-8 encoding. On older linux distributions (Debian potato, RedHat up to 6) you had to generate the locales, on modern linux distributions setting LC_ALL and LANG environment variables to, say, en_GB.UTF-8 tells the system which encoding is the default one. I don't know how the unix on that server handles this. Not sure this is your case, but it worth a try. Regars, Simone -- Simone Gianni Derek Hohls wrote: I am struggling to get forms displayed on a server - UNIX machine running Cocoon 2.1.5 and JDK 1.4 (the same app works **fine** on the development machine, running the same configuration, as well as on a Linux server...) The error message I get when trying to show the form (filled with data from the database) is: org.apache.cocoon.ProcessingException: Failed to execute pipeline.: java.lang.RuntimeException: org.xml.sax.SAXException: Attempt to output character of integral value 160 that is not represented in specified output encoding of . [and no, there is no word missing just before the above "full stop"] Based on mailing list and wiki suggestions I have tried: also: in the form, *and* the stylesheet processing the form for display also, in cocoon.xconf jdbc:mysql://YourHostName:3360/YourDataBaseName?useUnicode=true&characterEncoding=ISO-8859-1 database_user database_password NB - I am not trying to use any complex characters - inputs should be "plain" English! Is there a "Definitive Guide to Using Encoding" anywhere?? Thanks Derek - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: CFORM - repeater , add-row on OJB collection
thanks, But the situation if different from the example. I have form-repeater similar to exaple in the link, and work fine. In this situation I try to add Bean directly to a collection from OJB. The collection is returned from OJB. org.apache.ojb.broker.util.collections.RemovalAwareCollection The RemovalAwareCollection has RemovalAwareCollection.add(java.lang.Object) RemovalAwareCollection.ojbAdd(java.lang.Object) and in bind I use this method But I have this problem: java.lang.NoSuchMethodException: org.apache.ojb.broker.util.collections.RemovalAwareCollection.add(w4b.com.cassagest.db.Docuassist) Any idea? --- Alessandro Vincelli W4B - web for business s.r.l. Firenze via Pellicceria 10 - 50123 E-mail: [EMAIL PROTECTED] tel: 055-2654270 Christoph Hermann ha scritto: Alessandro Vincelli schrieb: The problem occur when i try to insert new row I receive this error on: form.save(Elenco); java.lang.NoSuchMethodException: org.apache.ojb.broker.util.collections.RemovalAwareCollection.add(w4b.com.cassagest.db.Docuassist) in my binding definition I have this: How Can I add object to a Collection from OJB? This (forget about the jdo stuff): http://www.guschtel.de/HP5/linux/ojbjdo_dmton.php should get you started, you can specify a method in the binding. HTH Christoph - 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]
Cocoon Fingerprint system tester wanted
Hi! Digital persona ASIA branch give us support, U.Are.U 4000 fingerprint device free DEMO for one month, only valid for ASIA area ;-< , only few devices can be applied, welcome anyone want to try it, Please send mail to me to register. Best Regards johnson - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: CFORM - repeater , add-row on OJB collection
Alessandro Vincelli schrieb: > The problem occur when i try to insert new row > > I receive this error on: > form.save(Elenco); > java.lang.NoSuchMethodException: > org.apache.ojb.broker.util.collections.RemovalAwareCollection.add(w4b.com.cassagest.db.Docuassist) > in my binding definition I have this: > > addmethod="add"/> > > How Can I add object to a Collection from OJB? This (forget about the jdo stuff): http://www.guschtel.de/HP5/linux/ojbjdo_dmton.php should get you started, you can specify a method in the binding. HTH Christoph - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Cocoon-Users] access to environment in sitemap component
I think I answered my own question. (finally!) Environment env = CocoonComponentManager.getCurrentEnvironment(); Thus Spoke David Kavanagh: I'm working on this JasperSerializer and while it works pretty well, I'm trying to resolve image locations better. To do this, I'd like access to the cocoon Environment so I can get the app's context path. I was looking over the javadoc and just haven't found what I'm looking for. Can anyone help? Thanks, David - 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]
CFORM - repeater , add-row on OJB collection
I have a this simple form with repeater: The flowscript invoke dao.getAllRows, and pass to form/bionding a Colection: BEGIN flowscript--- Elenco = dao.getAllRows(manager); form.load(Elenco); .. form.save(Elenco); END flowscript--- BEGIN OJB METHOD--- public Collection getAllRows(PersistenceManager pm) { PersistenceBroker broker = PersistenceBrokerFactory.defaultPersistenceBroker(); Criteria crit = new org.apache.ojb.broker.query.Criteria(); QueryByCriteria q = new QueryByCriteria(Docuassist.class, crit); Collection objects = (Collection)broker.getCollectionByQuery(q); q.addOrderByAscending("dgprogre"); broker.close(); return objects; } END OJB METHOD--- When I modify 1 or more bean in the collection and in flowscript call form.save(Elenco); I save correctly the bean in database. The problem occur when i try to insert new row I receive this error on: form.save(Elenco); java.lang.NoSuchMethodException: org.apache.ojb.broker.util.collections.RemovalAwareCollection.add(w4b.com.cassagest.db.Docuassist) in my binding definition I have this: addmethod="add"/> How Can I add object to a Collection from OJB? Thanks in advance, Alessandro _ MODEL: http://apache.org/cocoon/forms/1.0#definition"; xmlns:label="http://w4b.it/cocoon/label/"; xmlns:i18n="http://apache.org/cocoon/i18n/2.1";> Repeater di docuassist Progressivo Descrizione ridotta Descrizione estesa Select repeater="Docuassist"> Aggiungi riga repeater="Docuassist" select="select"> Rimuovi le righe selezionate _ BINDING addmethod="add"/> ___ STACKTRACE Message: org.apache.ojb.broker.util.collections.RemovalAwareCollection.add(w4b.com.cassagest.db.Docuassist) Description: org.apache.cocoon.ProcessingException: Error calling continuation at resource://org/apache/cocoon/forms/flow/javascript/Form.js:228:-1 at file:/var/webapps/cassagest/cforms/cforms/flow/cattura.js:175:-1 at - file:/var/webapps/cassagest/cforms/sitemap.xmap:356:82 at - file:/var/webapps/cassagest/sitemap.xmap:727:83 Sender: org.apache.cocoon.servlet.CocoonServlet Source: Cocoon Servlet Request URI cforms/continue cause java.lang.NoSuchMethodException: org.apache.ojb.broker.util.collections.RemovalAwareCollection.add(w4b.com.cassagest.db.Docuassist) request-uri /cassagest/cforms/continue full exception chain stacktrace org.apache.cocoon.ProcessingException: Error calling continuation at resource://org/apache/cocoon/forms/flow/javascript/Form.js:228:-1 at file:/var/webapps/cassagest/cforms/cforms/flow/cattura.js:175:-1 at - file:/var/webapps/cassagest/cforms/sitemap.xmap:356:82 at - file:/var/webapps/cassagest/sitemap.xmap:727:83 at org.apache.cocoon.ProcessingException.throwLocated(ProcessingException.java:144) at org.apache.cocoon.components.flow.javascript.LocationTrackingDebugger.getException(LocationTrackingDebugger.java:132) at org.apache.cocoon.components.flow.javascript.fom.FOM_JavaScriptInterpreter.handleContinuation(FOM_JavaScriptInterpreter.java:856) at org.apache.cocoon.components.treeprocessor.sitemap.CallFunctionNode.invoke(CallFunctionNode.java:123) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:46) at org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:130) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:68) at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:142) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:68) at org.apache.cocoon.compo
Re: Forms encoding problem
tom . I will have to pursue this as and when I can... and stick to workarounds in the meantime. I think the most frustrating part is that I cannot see where the source of the problem is and why it differs from machine to machine (all running same ver of Cocoon and, I assume??, same version of xalan) even after removing all the non-UTF references in *my* code (cannot speak to Cocoon defaults). Thanks, though, for all the suggestions...>>> [EMAIL PROTECTED] 2006/02/08 03:09:30 PM >>>ok, tried to dig in this issue "remote" (I am not working for the company any more, where we had this problem, so no sources to try :-)). obviously this error is not thrown by cocoon itself, but by the sax parser:> org.apache.cocoon.ProcessingException: > Failed to execute pipeline.: > java.lang.RuntimeException: > org.xml.sax.SAXException: > Attempt to output character of integral value 160 that is not represented in specified output encoding of .Basically you're already deep in trouble because I think you've obviously a mixture of UTF-8 and other encodings... which is really a pain in the a...So, first I'd try to replace the default sax parser with saxon. this will cause some headache (about 2 hours last time I tried), because some of the form style sheets have to be fixed to work with saxon, cool parser but very restrictive :-).If it's still there afterwards I'd had a look at the form stylesheets, and all other stylesheets involved in your form processing pipeline. Could be that there is a output encoding hardwired to non UTF-8 somewhere, and that's a problem. (I've tried to add the escaped space in some UTF-8 jx templates, and it works, but there is no form processing, better no xsl stylesheet involved).Googling around I think it could be a xalan bug, too: seehttp://java2.5341.com/msg/44662.html (happened with cocoon before :-) )http://mail-archives.apache.org/mod_mbox/xml-xalan-dev/200511.mbox/[EMAIL PROTECTED] http://marc.theaimsgroup.com/?l=forrest-dev&m=107482159715139&w=2 Reading all this stuff I'd guess that checking your xalan version in the production enviromnent or switching to saxon might solve your problem. Have fun with the endorsed stuff, this is one of the things I hate in java :-).hth,tomDerek Hohls wrote:> What I have done;> > Tried all the settings as suggested so far in this thread... > switching everything to UTF-8 - checked ALL my files for any> sign of ISO... (to avoid mixing concerns) ... still no luck!> > Looked in the offending forms and found the reference -> when I removed that then everything worked.> > This is OK, BUT I do not understand what the real issue/cause> is here, or why forms do not display a simple UNICODE character?> > Any clarification would help me (and maybe others) avoid this> nasty issue!>>> [EMAIL PROTECTED] 2006/02/07 03:58:54 PM >>> > first thought:> i think we had this error message when using escaped utf-8 chars...>> our source files are encoded in utf-8, and some guy inserted a escaped > " " in utf 8 with is in utf-8 ()>> this crashed the forms. didn't figure out why, not enough time, just > threw out the escaped chars. but as you are using iso-8859-1, just > search for a file that's not in the right encoding, or a string 160 in > your form files and delete this... (ultraedit or grep, depending on your > system :-) ) probably one of your coders or editors uses utf-8, so > you'll accidently inserted this utf-8 fragment (and doesn't know it :-) )>> -To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- This message is subject to the CSIR's copyright, terms and conditions and e-mail legal notice. Views expressed herein do not necessarily represent the views of the CSIR. CSIR E-mail Legal Notice CSIR Copyright, Terms and Conditions For electronic copies of the CSIR Copyright, Terms and Conditions and the CSIR Legal Notice send a blank message with "REQUEST LEGAL" in the subject line to CSIR HelpDesk This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.
Re: Authentication access outside of protected pipeline
*WHITE NOISE* Ignore this post - this approach DOES work. (Note to self - do NOT work with 2 copies of a project on the same machine at the same time...) >>> [EMAIL PROTECTED] 2006/02/08 03:02:31 PM >>> I had thought I had solved the problem of "accessing user authentication data *outside* of a a protected pipeline", see: http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=113817438904375&w=2 Turns out I was wrong :-( I would welcome it if anyone could look at the suggestion posted (link above) and tell me what I am doing wrong. Thanks Derek -- This message is subject to the CSIR's copyright, terms and conditions and e-mail legal notice. Views expressed herein do not necessarily represent the views of the CSIR. CSIR E-mail Legal Notice http://mail.csir.co.za/CSIR_eMail_Legal_Notice.html CSIR Copyright, Terms and Conditions http://mail.csir.co.za/CSIR_Copyright.html For electronic copies of the CSIR Copyright, Terms and Conditions and the CSIR Legal Notice send a blank message with REQUEST LEGAL in the subject line to [EMAIL PROTECTED] . This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- This message is subject to the CSIR's copyright, terms and conditions and e-mail legal notice. Views expressed herein do not necessarily represent the views of the CSIR. CSIR E-mail Legal Notice http://mail.csir.co.za/CSIR_eMail_Legal_Notice.html CSIR Copyright, Terms and Conditions http://mail.csir.co.za/CSIR_Copyright.html For electronic copies of the CSIR Copyright, Terms and Conditions and the CSIR Legal Notice send a blank message with REQUEST LEGAL in the subject line to [EMAIL PROTECTED] This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Forms encoding problem
ok, tried to dig in this issue "remote" (I am not working for the company any more, where we had this problem, so no sources to try :-)). obviously this error is not thrown by cocoon itself, but by the sax parser: org.apache.cocoon.ProcessingException: Failed to execute pipeline.: java.lang.RuntimeException: org.xml.sax.SAXException: Attempt to output character of integral value 160 that is not represented in specified output encoding of . Basically you're already deep in trouble because I think you've obviously a mixture of UTF-8 and other encodings... which is really a pain in the a... So, first I'd try to replace the default sax parser with saxon. this will cause some headache (about 2 hours last time I tried), because some of the form style sheets have to be fixed to work with saxon, cool parser but very restrictive :-). If it's still there afterwards I'd had a look at the form stylesheets, and all other stylesheets involved in your form processing pipeline. Could be that there is a output encoding hardwired to non UTF-8 somewhere, and that's a problem. (I've tried to add the escaped space in some UTF-8 jx templates, and it works, but there is no form processing, better no xsl stylesheet involved). Googling around I think it could be a xalan bug, too: see http://java2.5341.com/msg/44662.html (happened with cocoon before :-) ) http://mail-archives.apache.org/mod_mbox/xml-xalan-dev/200511.mbox/[EMAIL PROTECTED] http://marc.theaimsgroup.com/?l=forrest-dev&m=107482159715139&w=2 Reading all this stuff I'd guess that checking your xalan version in the production enviromnent or switching to saxon might solve your problem. Have fun with the endorsed stuff, this is one of the things I hate in java :-). hth, tom Derek Hohls wrote: What I have done; Tried all the settings as suggested so far in this thread... switching everything to UTF-8 - checked ALL my files for any sign of ISO... (to avoid mixing concerns) ... still no luck! Looked in the offending forms and found the reference - when I removed that then everything worked. This is OK, BUT I do not understand what the real issue/cause is here, or why forms do not display a simple UNICODE character? Any clarification would help me (and maybe others) avoid this nasty issue! [EMAIL PROTECTED] 2006/02/07 03:58:54 PM >>> first thought: i think we had this error message when using escaped utf-8 chars... our source files are encoded in utf-8, and some guy inserted a escaped " " in utf 8 with is in utf-8 () this crashed the forms. didn't figure out why, not enough time, just threw out the escaped chars. but as you are using iso-8859-1, just search for a file that's not in the right encoding, or a string 160 in your form files and delete this... (ultraedit or grep, depending on your system :-) ) probably one of your coders or editors uses utf-8, so you'll accidently inserted this utf-8 fragment (and doesn't know it :-) ) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Forms encoding problem
2006/2/8, Derek Hohls <[EMAIL PROTECTED]>: > What I have done; > > Tried all the settings as suggested so far in this thread... > switching everything to UTF-8 - checked ALL my files for any > sign of ISO... (to avoid mixing concerns) ... still no luck! > > Looked in the offending forms and found the reference - > when I removed that then everything worked. > > This is OK, BUT I do not understand what the real issue/cause > is here, or why forms do not display a simple UNICODE character? > > Any clarification would help me (and maybe others) avoid this > nasty issue! > I suppose so, but ... Did you check the settings in your web.xml? Did you try -Dfile.encoding=utf-8 ? Do you know exactly "where" the offending character comes from and "who" considers it offending? If so, you could maybe clarify that in this thread so the issue can be reproduced in other people's environments. -- Antonio - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Authentication access outside of protected pipeline
I had thought I had solved the problem of "accessing user authentication data *outside* of a a protected pipeline", see: http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=113817438904375&w=2 Turns out I was wrong :-( I would welcome it if anyone could look at the suggestion posted (link above) and tell me what I am doing wrong. Thanks Derek -- This message is subject to the CSIR's copyright, terms and conditions and e-mail legal notice. Views expressed herein do not necessarily represent the views of the CSIR. CSIR E-mail Legal Notice http://mail.csir.co.za/CSIR_eMail_Legal_Notice.html CSIR Copyright, Terms and Conditions http://mail.csir.co.za/CSIR_Copyright.html For electronic copies of the CSIR Copyright, Terms and Conditions and the CSIR Legal Notice send a blank message with REQUEST LEGAL in the subject line to [EMAIL PROTECTED] This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
access to environment in sitemap component
I'm working on this JasperSerializer and while it works pretty well, I'm trying to resolve image locations better. To do this, I'd like access to the cocoon Environment so I can get the app's context path. I was looking over the javadoc and just haven't found what I'm looking for. Can anyone help? Thanks, David - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Forms encoding problem
What I have done; Tried all the settings as suggested so far in this thread... switching everything to UTF-8 - checked ALL my files for any sign of ISO... (to avoid mixing concerns) ... still no luck! Looked in the offending forms and found the reference - when I removed that then everything worked. This is OK, BUT I do not understand what the real issue/cause is here, or why forms do not display a simple UNICODE character? Any clarification would help me (and maybe others) avoid this nasty issue! >>> [EMAIL PROTECTED] 2006/02/07 03:58:54 PM >>> first thought: i think we had this error message when using escaped utf-8 chars... our source files are encoded in utf-8, and some guy inserted a escaped " " in utf 8 with is in utf-8 () this crashed the forms. didn't figure out why, not enough time, just threw out the escaped chars. but as you are using iso-8859-1, just search for a file that's not in the right encoding, or a string 160 in your form files and delete this... (ultraedit or grep, depending on your system :-) ) probably one of your coders or editors uses utf-8, so you'll accidently inserted this utf-8 fragment (and doesn't know it :-) ) second thought: are you sure that the configuration is the same ? maybe the app server has other defaults, that you don't set in your application config... no server admin guru, but we had problems in this area. Maybe it helps to set some init-params in web.xml, here comes a snippet from my app (replaced my setting utf-8 with your setting iso-8859-1) container-encoding ISO-8859-1 form-encoding ISO-8859-1 hth, tom Derek Hohls wrote: > I am struggling to get forms displayed on a server - > UNIX machine running Cocoon 2.1.5 and JDK 1.4 > (the same app works **fine** on the development > machine, running the same configuration, as well as > on a Linux server...) > > The error message I get when trying to show the form > (filled with data from the database) is: > > org.apache.cocoon.ProcessingException: > Failed to execute pipeline.: > java.lang.RuntimeException: > org.xml.sax.SAXException: > Attempt to output character of integral value 160 that is not represented in > specified output encoding of . > > [and no, there is no word missing just before the above "full stop"] > > Based on mailing list and wiki suggestions I have tried: > > > > also: > > > > in the form, *and* the stylesheet processing the form for display > > also, in cocoon.xconf > > > > jdbc:mysql://YourHostName:3360/YourDataBaseName?useUnicode=true&characterEncoding=ISO-8859-1 > database_user > database_password > > > > NB - I am not trying to use any complex characters - inputs > should be "plain" English! > > Is there a "Definitive Guide to Using Encoding" anywhere?? > > Thanks > Derek > > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- This message is subject to the CSIR's copyright, terms and conditions and e-mail legal notice. Views expressed herein do not necessarily represent the views of the CSIR. CSIR E-mail Legal Notice http://mail.csir.co.za/CSIR_eMail_Legal_Notice.html CSIR Copyright, Terms and Conditions http://mail.csir.co.za/CSIR_Copyright.html For electronic copies of the CSIR Copyright, Terms and Conditions and the CSIR Legal Notice send a blank message with REQUEST LEGAL in the subject line to [EMAIL PROTECTED] This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Hosting a web service in Cocoon with Axis block (RE: Simple question on Cocoon and Web Service)
Hello, Finally it's not difficult and you must look at axis block. I post an article here on my web site on this subject, in french (http://www.object-everywhere.com/OBJECT-EVERYWHERE/articles/CocoonSW.xml). With the use of the axis block, here the following steps if you want expose a Java class names "Test" : - Verify that the axis block is included - Modify cocoon.xconf Find the following XML element You have the sub-element "managed-services" that lists all the services deployed ; add a new descriptor element pointing to your own DeploymentDescriptor.wsdd file. An example of a such file : http://xml.apache.org/axis/wsdd/"; xmlns:java="http://xml.apache.org/axis/wsdd/providers/java";> Here we have a class named Test with the method "echo" exposed. The class file is in WEB-INF\classes. - You must restart the cocoon instance - You can list all the web services with the URL : http://localhost:8080/samples/blocks/axis/status.xsp if your Cocoon installation has the xsp block (change localhost et port number according to your configuration) - If you want the WSDL document of your service, you can use the tool Java2WSDL (from Apache Axis) - If you want to invoke the "Test" service, use the URL http://localhost:8080/samples/blocks/axis/rpcrouter It works because the example sitemap has the entry false Have a look at the soap-rpc reader. Hope this helps you. Bertrand Goetzmann. -Message d'origine- De : Peter Neu [mailto:[EMAIL PROTECTED] Envoyé : mercredi 8 février 2006 12:42 À : Goetzmann Bertrand Objet : AW: Simple question on Cocoon and Web Service Hello Bertrand, I want to do the same thing with Cocoon but I have the same problem with finding documentation. How did you solve the problem with the web service integration? Cheers, Pete -Ursprüngliche Nachricht- Von: Goetzmann Bertrand [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 20. Januar 2006 16:36 An: users@cocoon.apache.org Betreff: RE: Simple question on Cocoon and Web Service Thank you for this information ! Do you know where documentation can be found for the use of the axis block ? Best regards. -Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la part de Giacomo Pati Envoyé : vendredi 20 janvier 2006 10:13 À : users@cocoon.apache.org Objet : Re: Simple question on Cocoon and Web Service -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 And there are the Apache Axis integration samples in COCOON_HOME/src/blocks/axis On Fri, 20 Jan 2006, JanGeek wrote: > Date: Fri, 20 Jan 2006 09:55:46 +0100 > From: JanGeek <[EMAIL PROTECTED]> > Reply-To: users@cocoon.apache.org > To: users@cocoon.apache.org > Subject: Re: Simple question on Cocoon and Web Service > > Hi Bertrand, > > you may have a look at the wiki-page: > > http://wiki.apache.org/cocoon/WebServiceServer > > > On Friday 20 January 2006 09:20, Goetzmann Bertrand wrote: >> Hi again, >> >> I know there is a way to use Cocoon as a SOAP client to invoke a web > service, but what about implementing a web service with Cocoon ? Is it > out of the scope of Cocoon ? >> >> Thank you. >> >> "As Java implies platform independence, and XML implies language >> independence, JXTA implies network independence." >> >> B e r t r a n d G o e t z m a n n >> - - - - - - - - - - - - - - - - - - - - - Sun Certified Developer for >> the Java 2 Platform Sun Certified Enterprise Architect for J2EE >> Technology >> >> >> >> >> LaSer-Symag >> Tél. 04 92 91 34 00 >> www.symag.com >> >> > > - -- Giacomo Pati Otego AG, Switzerland - http://www.otego.com Orixo, the XML business alliance - http://www.orixo.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.2 (GNU/Linux) iD8DBQFD0KmCLNdJvZjjVZARAn6JAKCgwro0JIvqgYhD+Sp/Aylgc0pHqQCfe7yl O4j4mUgB17qYMzo2eYrc6Dg= =9tUt -END PGP SIGNATURE- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Forms encoding problem
As the first statement This is the action it uses: src="org.apache.cocoon.acting.SetCharacterEncodingAction"/> Hope this helps. Nick Nagels IT Specialist @ KULeuven for EuroGenTest Tel. +0032 16 33 01 43 Herestraat 49 bus 602 B-3000 Leuven MSN Messenger: [EMAIL PROTECTED] Derek Hohls wrote: Nick Thanks - where exactly in the pipeline did you insert this? Derek [EMAIL PROTECTED] 2006/02/08 11:56:39 AM >>> This helped me a lot. Greets Nick Nagels IT Specialist @ KULeuven for EuroGenTest Derek Hohls wrote: Antonio I guess I did - strange that it happens only on the one server.. maybe UNIX less "forgiving" than Linux. Is there a "default" encoding that Cocoon makes use of? IOW, if I import or reuse stylesheets from Cocoon samples etc. will I expect to see these in UTF-8? Can I simply omit the encoding parameter from *all* my files and set a default for the entire project (in the sitemap, for example). That way I could avoid the "mixing" problem you refer to. Or if this is all spelt out in great detail, somewhere, I'd like to go and read up about it... Thanks Derek [EMAIL PROTECTED] 2006/02/08 09:36:44 AM >>> 2006/2/8, Derek Hohls < [EMAIL PROTECTED] >: PS Is there any good reason to prefer ISO-8859-1 over UTF-8 ... these seem to be used interchangeably, but I guess they are not? They are different. If your app only uses "latin" characters, you could use one or the other. Otherwise, you should use UTF-8. But beware that mixing is not good, especially if you mix them in the same document. Both encodings encode the same characters in very different ways (except for standard ASCII, which happens to be encoded the same). If you mix, you may run into trouble. You probably already ran into trouble. ;-) -- Antonio - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Error using org.xml.sax.InputSource
> You should search and remove any older xml-apis.jar somewhere in the > class path. Thanks for that. It was that and an old version of the Rhino Continuations lib that were causing the problem. Thanks again, Gary * The information contained in this message may be confidential or legally privileged and is intended for the addressee only, If you have received this message in error or there are any problems, please notify the originator immediately. The unauthorised use, disclosure, copying or alteration of this message is strictly forbidden. * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Forms encoding problem
Nick Thanks - where exactly in the pipeline did you insert this? Derek >>> [EMAIL PROTECTED] 2006/02/08 11:56:39 AM >>> This helped me a lot. Greets Nick Nagels IT Specialist @ KULeuven for EuroGenTest Derek Hohls wrote: > Antonio > > I guess I did - strange that it happens only on the one > server.. maybe UNIX less "forgiving" than Linux. > > Is there a "default" encoding that Cocoon makes use of? > IOW, if I import or reuse stylesheets from Cocoon samples > etc. will I expect to see these in UTF-8? Can I simply omit > the encoding parameter from *all* my files and set a default > for the entire project (in the sitemap, for example). That > way I could avoid the "mixing" problem you refer to. > > Or if this is all spelt out in great detail, somewhere, I'd like > to go and read up about it... > > Thanks > Derek > > [EMAIL PROTECTED] 2006/02/08 09:36:44 AM >>> > 2006/2/8, Derek Hohls < [EMAIL PROTECTED] >: >> PS Is there any good reason to prefer ISO-8859-1 over >> UTF-8 ... these seem to be used interchangeably, but I >> guess they are not? > > > They are different. > > If your app only uses "latin" characters, you could use one or the > other. Otherwise, you should use UTF-8. > > But beware that mixing is not good, especially if you mix them in the > same document. Both encodings encode the same characters in very > different ways (except for standard ASCII, which happens to be encoded > the same). If you mix, you may run into trouble. You probably already > ran into trouble. ;-) > > -- > Antonio > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- This message is subject to the CSIR's copyright, terms and conditions and e-mail legal notice. Views expressed herein do not necessarily represent the views of the CSIR. CSIR E-mail Legal Notice http://mail.csir.co.za/CSIR_eMail_Legal_Notice.html CSIR Copyright, Terms and Conditions http://mail.csir.co.za/CSIR_Copyright.html For electronic copies of the CSIR Copyright, Terms and Conditions and the CSIR Legal Notice send a blank message with REQUEST LEGAL in the subject line to [EMAIL PROTECTED] This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Forms encoding problem
This helped me a lot. Greets Nick Nagels IT Specialist @ KULeuven for EuroGenTest Derek Hohls wrote: Antonio I guess I did - strange that it happens only on the one server.. maybe UNIX less "forgiving" than Linux. Is there a "default" encoding that Cocoon makes use of? IOW, if I import or reuse stylesheets from Cocoon samples etc. will I expect to see these in UTF-8? Can I simply omit the encoding parameter from *all* my files and set a default for the entire project (in the sitemap, for example). That way I could avoid the "mixing" problem you refer to. Or if this is all spelt out in great detail, somewhere, I'd like to go and read up about it... Thanks Derek [EMAIL PROTECTED] 2006/02/08 09:36:44 AM >>> 2006/2/8, Derek Hohls < [EMAIL PROTECTED] >: PS Is there any good reason to prefer ISO-8859-1 over UTF-8 ... these seem to be used interchangeably, but I guess they are not? They are different. If your app only uses "latin" characters, you could use one or the other. Otherwise, you should use UTF-8. But beware that mixing is not good, especially if you mix them in the same document. Both encodings encode the same characters in very different ways (except for standard ASCII, which happens to be encoded the same). If you mix, you may run into trouble. You probably already ran into trouble. ;-) -- Antonio - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: xhtml table -> mysqlimport
On 2/8/06, Derek Hohls <[EMAIL PROTECTED]> wrote: > Thufir > > I would not say that Saxon has any "learning curve"; your > learning is in the use of XSLT and working with XHTML. > Saxon just does the "grunt" work of running the transform > for you... you do not need to learn how it does this. .. Heh, good to know :) thanks, Thufir - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: xhtml table -> mysqlimport
Thufir I would not say that Saxon has any "learning curve"; your learning is in the use of XSLT and working with XHTML. Saxon just does the "grunt" work of running the transform for you... you do not need to learn how it does this. >>> [EMAIL PROTECTED] 2006/02/08 05:42:42 AM >>> On 2/7/06, Andrew Stevens < [EMAIL PROTECTED] > wrote: .. > Another possibility - I just checked the XML features in > Netbeans and that > can run XSL Transformations. Free download from > http://www.netbeans.org/downloads/index.html > No doubt there's an equivalent Eclipse plugin too. Great, thanks :) .. > >That is, I need to write the transform document, and run it > > from the shell? > > Yes, with something like > java -jar dir/saxon.jar [options] source-document stylesheet > [params*] > See http://saxon.sourceforge.net/saxon6.5.2/using-xsl.html .. Great, thanks :) I have some research to do. Thanks, Andrew, for pointing me in the right direction(s). I like the idea of using saxon, but, at the same time, I should be pragmatic, perhaps, and pick a tool with a shorter learning curve. -Thufir -- This message is subject to the CSIR's copyright, terms and conditions and e-mail legal notice. Views expressed herein do not necessarily represent the views of the CSIR. CSIR E-mail Legal Notice http://mail.csir.co.za/CSIR_eMail_Legal_Notice.html CSIR Copyright, Terms and Conditions http://mail.csir.co.za/CSIR_Copyright.html For electronic copies of the CSIR Copyright, Terms and Conditions and the CSIR Legal Notice send a blank message with REQUEST LEGAL in the subject line to [EMAIL PROTECTED] This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]