Eclipe XSP editor
Hi Is there any editor for the XSP language? I use Eclipse for my project, and would like to know if there is a XSP plugin or shema? Thx - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Generating dynamic attributes in xsp
On 05.Mar.2003 -- 01:14 AM, Amelie Cordier wrote: Try to use get-parameter instead of get-string-parameter. That should return the node as well. But you need to insert the variable with copy-of, not value-of and in a place where it can safely expand to a xsp:expr/. Thanks, it works better but the returned string is : null :( as if the parameter didn't went through my custom logicsheet. May be a sitemap problem don't you think? Don't think so. You can do two things now to work on your problem: a) easiest is to look at the java source created from your xsp. it is located in case of tomcat in a subdirectory of $TOMCATHOME/work/Standalone/localhost/cocoon/ and has almost the same name as your xsp: foo.xsp - foo_xsp.java Locate the place that corresponds to your tag and post the relevant lines. b) if you have already setup an XSLT processor in your environment, you can try to do the transform manually. Look at the resulting xsp and see what happened. If you don't have setup an XSLT processor, you could try a pipeline along these lines: map:match pattern=view-transform map:generate type=file src={request-param:source}/ map:transform type=xslt src={request-param:logicsheet}/ map:serialize type=xml/ /map Request the result by: http://localhost:8080/cocoon/path/to/pipeline/view-transform?source=relative/path/to/my.xsplogicsheet=relative/path/to/logicsheet.xsl Perhaps you should setup a little HTML form for this. Or you can all the included xalan from the commandline (must be in your classpath): java org.apache.xalan.xslt.Process -IN my.xsp -XSL my.xsl Or you could use the great xslt-process-mode for emacs: http://xslt-process.sourceforge.net/ This allows to step through your logicsheet! By the way, what do you mean by in a place where it can safely expand to a xsp:expr/ ? A place where xsp:expr/ would make sense and does not violate java syntax. Counter examples xsp:logic String foo=; xsp:logica/xsp:logic //wrong! foo = bar; foo = barxsp:expra/xsp:exprbar; // wrong! // some tag expand to more than an xsp:expr (that is bad // but sometimes without alternative) // the following does not work: foo = bar + xsp:logic String yada = null; for (int i=0; iyada.length(); i++) { br/ }; /xsp:logic /xsp:logic 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 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Error using DatabaseUpdateAction
I need help resolving the following error, which I get when trying to use the DatabaseUpdateAction to update the database. Note that I have successfully used the DatabaseAddAction from the same form to post records, so I assume it cannot be my descriptor file that is in error. The message is: org.apache.cocoon.ProcessingException: Could not update record :position = 5: java.sql.SQLException: Syntax error or access violation: You have an error in your SQL syntax near '' at line 1Original exception : java.sql.SQLException: Syntax error or access violation: You have an error in your SQL syntax near '' at line 1 at org.gjt.mm.mysql.MysqlIO.sendCommand(Unknown Source) at org.gjt.mm.mysql.MysqlIO.sqlQueryDirect(Unknown Source) at org.gjt.mm.mysql.Connection.execSQL(Unknown Source) at org.gjt.mm.mysql.PreparedStatement.executeUpdate(Unknown Source) at org.gjt.mm.mysql.PreparedStatement.executeUpdate(Unknown Source) at org.apache.cocoon.acting.DatabaseUpdateAction.act(DatabaseUpdateAction.java:124) ... etc -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. "The CSIR exercises no editorial control over E-mail messages and/or attachments thereto/links referred to therein originating in the organisation and the views in this message/attachments thereto are therefore not necessarily those of the CSIR and/or its employees. The sender of this e-mail is, moreover, in terms of the CSIR's Conditions of Service, subject to compliance with the CSIR's internal E-mail and Internet Policy."
dynamic logicsheet in xsp?
Hi I have a structure something like this lang en xsp my.xsp logicsheet test.xsl fr xsp my.xsp logicsheet test.xsl ja xsp my.xsp logicsheet test.xsl so in my sitemap I have something like map:match pattern=*/* map:generate type=serverpages src=lang/{1}/xsp/{2}.xsp/ map:serialize type=html/ /map:match so the right xsp is used based on the url with something like, http://server/myapp/en/my for example. However, is there a way to make each xsp dyanmically include the right logicsheet test.xsl?? Since each test.xsl contains different java codes for each language. Alban This message may contain privileged and/or confidential information. If you have received this e-mail in error or are not the intended recipient, you may not use, copy, disseminate or distribute it; do not open any attachments, delete it immediately from your system and notify the sender promptly by e-mail that you have done so. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Error using DatabaseUpdateAction
On 06.Mar.2003 -- 11:43 AM, Derek Hohls wrote: I need help resolving the following error, which I get when trying to use the DatabaseUpdateAction to update the database. Note that I have successfully used the DatabaseAddAction from the same form to post records, so I assume it cannot be my descriptor file that is in error. The message is: org.apache.cocoon.ProcessingException: Could not update record :position = 5: java.sql.SQLException: Syntax error or access violation: You have an error in your SQL syntax near '' at line 1 Without knowing the SQL that is created, it is difficult to guess the error. Please enclose more of the log and the descriptor lines that relate to this query. You might want to try the other set of database actions - the descriptor syntax is similar although not identical. 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 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problem getting parameters with POST method, multipart/form-data, and RequestParamAction
Hi everybody ! I've recently upgraded to Cocoon 2.0.4 and something doesn't work anymore : I now can't get a parameter value in the sitemap with the RequestParamAction and the POST method. Here's my configuration : Cocoon 2.0.4, JDK 1.3, Jetty, Jboss MultipartRequestFactoryImpl (defined in a web.xml file) Here's the way I use it : I want to get a parameter named 'actiontype' and defined in a form and I want to pass its value through the sitemap to an action. I've got a sitemap.xmap file : !-- T e a c h e r W o r k {1} teacher work Id -- map:match pattern=teacherWork/*.html map:act type=request map:parameter name=parameters value=true/ map:act type=upload !-- This parameter determines the action -- map:parameter name=actiontype value={actiontype}/ ... And I've got an HTML form (this page is dynamicly generated, here's an instance) : form enctype=multipart/form-data method=post action=teacherWork/18.html input type=hidden name=actiontype value=main/ ... And I've got a cocoon action of my own with a logger showing me the value of the parameter named 'actiontype'. With cocoon 2.0.3, everything works fine. With cocoon 2.0.4 : when method=post the logs say actiontype = '' when method=get the logs say actiontype = 'main' Everything would be alright in the best world if i didn't need to use the POST method (in order to have a FilePartFile object in the request). I'm sure the only difference is the version of cocoon that I'm using although there's still the possibility that I forgot some other change of mine. Would anybody help me ? Michael - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[HELP]Could not read resource file:/C:/jakarta-tomcat-4.0.6/webapps/cocoon/docs/samples/hello-page.xml
Hello, I´m searching for developers who have experience with DELI 5.0 in Cocoon 2.0.2. I get the error message like : Description:org.apache.cocoon.ProcessingException: Could not read resource file:/C:/jakarta-tomcat-4.0.6/webapps/cocoon/docs/samples/hello-page.xml: java.lang.RuntimeException: Can not convert #STRING to a NodeList! If anyone can help me solve this problem,i will be very much appreciated. Thank you! T.Takkin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cocoon1 disable-output-escapping workaround help
Since disable-output-escaping is disabled in cocoon 1 i have quite a problem. Here's my scenerio: An admincan enter in a textboxa message and i want it to support HTML markup. The message is then reproduced on the 'user' side of the application as an announcement and i want the HTML markup that the administrator put in to pass through to the user side (bold/font/images..etc..etc..etc..) I've tried several methods and always end up with either the tags getting escaped, or the tags being stripped completely. Any help is appreciated --Justin Ricci (FAST dev) http://finweb.rit.edu
Re: Error using DatabaseUpdateAction
Chris Thanks for the reponse. In anwer to your questions; 1. I am not sure what SQL _is_ generated - I assume the DatabaseUpdateAction is supposed to create this but I do not where and how to find what it has done. (the error log segment is attached) 2. Which other database actions are you referring to? Derek [EMAIL PROTECTED] 06/03/2003 12:01:31 On 06.Mar.2003 -- 11:43 AM, Derek Hohls wrote: I need help resolving the following error, which I get when trying to use the DatabaseUpdateAction to update the database. Note that I have successfully used the DatabaseAddAction from the same form to post records, so I assume it cannot be my descriptor file that is in error. The message is: org.apache.cocoon.ProcessingException: Could not update record :position = 5: java.sql.SQLException: Syntax error or access violation: You have an error in your SQL syntax near '' at line 1 Without knowing the SQL that is created, it is difficult to guess theerror. Please enclose more of the log and the descriptor lines thatrelate to this query.You might want to try the other set of database actions - thedescriptor syntax is similar although not identical. 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-To unsubscribe, e-mail: [EMAIL PROTECTED]For additional commands, e-mail: [EMAIL PROTECTED]-- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. "The CSIR exercises no editorial control over E-mail messages and/or attachments thereto/links referred to therein originating in the organisation and the views in this message/attachments thereto are therefore not necessarily those of the CSIR and/or its employees. The sender of this e-mail is, moreover, in terms of the CSIR's Conditions of Service, subject to compliance with the CSIR's internal E-mail and Internet Policy." java.sql.SQLException: Syntax error or access violation: You have an error in your SQL syntax near '' at line 1 at org.gjt.mm.mysql.MysqlIO.sendCommand(Unknown Source) at org.gjt.mm.mysql.MysqlIO.sqlQueryDirect(Unknown Source) at org.gjt.mm.mysql.Connection.execSQL(Unknown Source) at org.gjt.mm.mysql.PreparedStatement.executeUpdate(Unknown Source) at org.gjt.mm.mysql.PreparedStatement.executeUpdate(Unknown Source) at org.apache.cocoon.acting.DatabaseUpdateAction.act(DatabaseUpdateAction.java:124) at org.apache.cocoon.www.biotox.sitemap_xmap.matchN10318(C:\tomcat\work\Standalone\localhost\cocoon\cocoon-files\org/apache/cocoon/www/biotox\sitemap_xmap.java:3223) at org.apache.cocoon.www.biotox.sitemap_xmap.process(C:\tomcat\work\Standalone\localhost\cocoon\cocoon-files\org/apache/cocoon/www/biotox\sitemap_xmap.java:1549) at org.apache.cocoon.www.biotox.sitemap_xmap.process(C:\tomcat\work\Standalone\localhost\cocoon\cocoon-files\org/apache/cocoon/www/biotox\sitemap_xmap.java:1413) at org.apache.cocoon.sitemap.Handler.process(Handler.java:224) at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:179) at org.apache.cocoon.www.sitemap_xmap.matchN103CB(C:\tomcat\work\Standalone\localhost\cocoon\cocoon-files\org/apache/cocoon/www\sitemap_xmap.java:4713) at org.apache.cocoon.www.sitemap_xmap.process(C:\tomcat\work\Standalone\localhost\cocoon\cocoon-files\org/apache/cocoon/www\sitemap_xmap.java:3435) at org.apache.cocoon.www.sitemap_xmap.process(C:\tomcat\work\Standalone\localhost\cocoon\cocoon-files\org/apache/cocoon/www\sitemap_xmap.java:3214) at org.apache.cocoon.sitemap.Handler.process(Handler.java:224) at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:179) at org.apache.cocoon.sitemap.SitemapManager.process(SitemapManager.java:154) at org.apache.cocoon.Cocoon.process(Cocoon.java:575) at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:999) 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
Re: SQLTransformer modifications
On Wednesday, March 5, 2003, at 05:15 PM, Irv Salisbury III wrote: We'd like to use paging in our application from the result sets returned from the SQLTransformer. However, with a number of our queries returning 20,000+ rows, it seems like the current Paginator will not cut it for us. This is mainly because it looks like the Paginator expects all of the data to be there, which we don't want it to be. I just use the LIMIT statement in my SQL Query: component xmlns=http://www.xmlmind.com/xmleditor/schema/iniva; meta titleformats/title descgets the list of audiocd format/desc /meta chapter type=publications execute-query xmlns=http://apache.org/cocoon/SQL/2.0; xmlns:sql=http://apache.org/cocoon/SQL/2.0; query name=count-paging SELECT COUNT(id) AS total FROM library_resource WHERE format = 15 /query /execute-query execute-query xmlns=http://apache.org/cocoon/SQL/2.0; xmlns:sql=http://apache.org/cocoon/SQL/2.0; query name=publications SELECT id AS 'libraryid', title, YEAR(pubyear) AS 'date', description AS 'desc' FROM library_resource WHERE format = 15 ORDER BY r.title LIMIT substitute-value sql:name=start/,substitute-value sql:name=count/ /query /execute-query /chapter /component Then some XSLT turns the 'count-paging' query into a bunch of links to each 'page' of results. I use InputModules in the Sitemap for the parameters 'start' and 'count', which have default values (0 and 25) that can be overridden by request parameters. hope this helps regards Jeremy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
CATALINA_OPTS
Hello, I'm trying to put the "-source 1.4" option in CATALINA_OPTS environment variable because I'm using an HttpsURLConnection (SSL) objet in one of my cocoon JSP generators. The HttpsURLConnection Class is available only since J2SE 1.4, but I don't know how to add this option to CATALINA_OPTS. I have tried "-Dsource 1.4" but is not recognized as a valid option. I'm using Tomcat 4.1.18 + Cocoon 2.04 + J2SE 1.4.1_01 + RH Linux 8.0 Any help would be appreciated, and sorry if this question is too trivial. Thanks in advance. Eduardo.
Re: Error using DatabaseUpdateAction
On 06.Mar.2003 -- 12:58 PM, Derek Hohls wrote: Chris Thanks for the reponse. In anwer to your questions; 1. I am not sure what SQL _is_ generated - I assume the DatabaseUpdateAction is supposed to create this but I do not where and how to find what it has done. (the error log segment is attached) OK, just looked at the source -- no debug outputs :-( Thus, the only way is that you sprinkle some debug methods in there or attach a debugger and see what's in there. Bad. 2. Which other database actions are you referring to? We have two sets: The original ones that you appear to use in org.apache.cocoon.acting and refactored ones in org.apache.cocoon.acting.modular (I believe they are scratchpad in 2.0.3, trunk in 2.0.4, and in the databases block for 2.1) The docs describe the differences. 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 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Error using DatabaseUpdateAction
OK - not such good news for me... My development and production machine both run _binary_ installtions of 2.0.3 - do you think I need to upgrade and, if so, are there any sigiifcant implications (Id hate for all my existing apps to stop working suddenly!) I also do not want to mess around and update source code!! Derek [EMAIL PROTECTED] 06/03/2003 01:10:01 On 06.Mar.2003 -- 12:58 PM, Derek Hohls wrote: Chris Thanks for the reponse. In anwer to your questions; 1. I am not sure what SQL _is_ generated - I assume the DatabaseUpdateAction is supposed to create this but I do not where and how to find what it has done. (the error log segment is attached)OK, just looked at the source -- no debug outputs :-( Thus, the onlyway is that you sprinkle some debug methods in there or attach adebugger and see what's in there. Bad. 2. Which other database actions are you referring to?We have two sets: The original ones that you appear to use inorg.apache.cocoon.acting and refactored ones inorg.apache.cocoon.acting.modular (I believe they are scratchpad in2.0.3, trunk in 2.0.4, and in the databases block for 2.1)The docs describe the differences. 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-To unsubscribe, e-mail: [EMAIL PROTECTED]For additional commands, e-mail: [EMAIL PROTECTED]-- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. "The CSIR exercises no editorial control over E-mail messages and/or attachments thereto/links referred to therein originating in the organisation and the views in this message/attachments thereto are therefore not necessarily those of the CSIR and/or its employees. The sender of this e-mail is, moreover, in terms of the CSIR's Conditions of Service, subject to compliance with the CSIR's internal E-mail and Internet Policy."
Re: Error using DatabaseUpdateAction
On 06.Mar.2003 -- 01:25 PM, Derek Hohls wrote: OK - not such good news for me... My development and production machine both run _binary_ installtions of 2.0.3 - do you think I need to upgrade and, if so, are there any sigiifcant implications (Id hate for all my existing apps to stop working suddenly!) I also do not want to mess around and update source code!! Of course it is always advisable to run the latest of the stable series. I would even say the latest snapshot of the stable series. In theory, there should be no noticable change in behaviour. Obviousely, I can't guarantee 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 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Datasource from pool
On 05.Mar.2003 -- 12:11 PM, arturl wrote: ESQL *should* be safe. Look at the logs (set log level to debug!) and try to find lines indicating that the connection is returned to the pool. Generally all connections are returned. But increasing number of accessing the pool (by multiplying number of requested xsp pages) results in pool blocking. Is it a normal situation? Sure, if you have a pool of 10, you may have 10 concurrent users. Every additional user is blocked until a connection is returned to the pool. OTOH it should only be fractions of a second that a connection is used. Maybe you should just increase the number of connections in your pool. Shouldn't the connections be returned anyway? Can't parse 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 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Datasource from pool
Generally all connections are returned. But increasing number of accessing the pool (by multiplying number of requested xsp pages) results in pool blocking. Is it a normal situation? Sure, if you have a pool of 10, you may have 10 concurrent users. Every additional user is blocked until a connection is returned to the pool. Yes, I understand it. I just wonder, why there's a hangup of the pool if all connections should be returned. OTOH it should only be fractions of a second that a connection is used. Maybe you should just increase the number of connections in your pool. I'm trying on that. BTW - is there a formula on counting the optimal size of the pool (taking into account number of concurrent connections)? Artur - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
developer snapshots
Please help: Can't find anything in the developer snapshots link. Where have tey gone? thanks heidi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problem installation cocoon 2.0.4 on tomcat 4.1.18
Hi, I want install Cocoon 2.0.4 on Tomcat 4.1.18 with Jdk 1.4.0 and Windows 2000 sp3 but in instruction to instal (http://xml.apache.org/cocoon/installing/index.html) there is not specified what do for this case but only for installing on tomcat 4.0.x. Where can I find instruction for this installation? Thanks. Silvio - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
struts and cocoon
does anybody use struts and cocoon framework in a same application ? im looking for documentation best regards - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: struts and cocoon
On Thu, 6 Mar 2003, arnaud wrote: does anybody use struts and cocoon framework in a same application ? im looking for documentation Take a look at http://www.twdata.org/struts/ Stephan Michels. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Problem installation cocoon 2.0.4 on tomcat 4.1.18
-Original Message- From: silvio [mailto:[EMAIL PROTECTED] Sent: Thursday, March 06, 2003 5:14 PM To: [EMAIL PROTECTED] Subject: Problem installation cocoon 2.0.4 on tomcat 4.1.18 Hi, I want install Cocoon 2.0.4 on Tomcat 4.1.18 with Jdk 1.4.0 and Windows 2000 sp3 but in instruction to instal (http://xml.apache.org/cocoon/installing/index.html) there is not specified what do for this case but only for installing on tomcat 4.0.x. Where can I find instruction for this installation? I fear there's none... but don't panic, it's straightforward: 1) Install JDK 1.4.1_01 (AFAIK, 1.4.0 has some bugs) 2) Install Tomcat 4.1.x (I installed 4.1.12 LE 1.4) 3) Compile Cocoon for JDK 1.4 4) Put the cocoon.war under webapps 5) Copy xerces-XXX.jar, xalan-XXX.jar, and the xml-apis.jar from the .\lib\core\ to the %TOMCAT_HOME%\common\endorsed directory (or in the endorsed of the JRE, but then you have to change a variable in catalina.bat). BTW, I've copied xercexImpl.jar as well. Regards, - Luca Morandini GIS Consultant [EMAIL PROTECTED] http://utenti.tripod.it/lmorandini/index.html - - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Logic control in sitemap via parameters
Within a pipeline, I retrieve DB records using an SQL Transformer. I know the number of rows that I've retrieved using the nr-of-rows parameter. I'd like to branch to a different pipeline if the number of rows retrieved in the SQL Transform is 0. Is there a way to pass that nrofrows value from my result set in my xsl file back to the sitemap as a parameter? Or is there any other way of knowing how many rows were retrieved by the SQL Transformer in the sitemap? __ Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, more http://taxes.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
writing excel files with merge and coloured cells
Title: writing excel files with merge and coloured cells Hi, I am currently running Cocoon 2.0.4 on Tomcat 4.1 and I am interested in creating excel files which have coloured cells and also cells that are merged. I tried generating an xml from gnumeric and using this, but found that neither the coloured cells nor the merged cells were present. Before I start trying to debug, I was wondering if this functionality is supported? Thanks, Chris. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cocoon and new eclipse java compiler
I have updated my cocoon installation today and I started to get a LOOOT of Unreachable code errors disappeared while switching back to Pizza What may be a problem ? ouzo -- __ | / \ |Leszek Gawron// \\ \_\\ //_/ [EMAIL PROTECTED] _\\()//_ .'/()\'. Phone: +48(600)341118 / // \\ \ \\ // recursive: adj; see recursive | \__/ | - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: cocoon and new eclipse java compiler
I had this when there was legacy code that we imported into Eclipse where people had used semicolons to close { } blocks. Here's an example that would cause an unreachable code: try { ... } catch (...) {...}; The semicolon is superfluous, but doesn't cause a problem in this block: if(){...}; because it is interpreted as a complete Java statement which does nothing. Same in the first example, except you can never get there. VisualAge doesn't complain, but Eclipse does. -Robert Douglass -Original Message- From: Leszek Gawron [mailto:[EMAIL PROTECTED] Sent: Thursday, 06 March, 2003 9:32 PM To: [EMAIL PROTECTED] Subject: cocoon and new eclipse java compiler I have updated my cocoon installation today and I started to get a LOOOT of Unreachable code errors disappeared while switching back to Pizza What may be a problem ? ouzo -- __ | / \ |Leszek Gawron// \\ \_\\ //_/ [EMAIL PROTECTED] _\\()//_ .'/()\'. Phone: +48(600)341118 / // \\ \ \\ // recursive: adj; see recursive | \__/ | - 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: cocoon and new eclipse java compiler
On czw, mar 06, 2003 at 09:44:17 +0100, Robert Douglass wrote: I had this when there was legacy code that we imported into Eclipse where people had used semicolons to close { } blocks. Here's an example that would cause an unreachable code: try { ... } catch (...) {...}; The semicolon is superfluous, but doesn't cause a problem in this block: if(){...}; because it is interpreted as a complete Java statement which does nothing. Same in the first example, except you can never get there. VisualAge doesn't complain, but Eclipse does. nice but my problem is in xsp containing esql and very little xsp:logic ouzo -- __ | / \ |Leszek Gawron// \\ \_\\ //_/ [EMAIL PROTECTED] _\\()//_ .'/()\'. Phone: +48(600)341118 / // \\ \ \\ // recursive: adj; see recursive | \__/ | - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: writing excel files with merge and coloured cells
Title: writing excel files with merge and coloured cells I am using the bsf (bean scripting framework) in withI use vb and object rexx to create excel and use existing excel files with this you can use ole objects like excel to work with a little sample code: xml-file ?xml version="1.0"? !DOCTYPE page [ !ELEMENT page (title?, content) !ELEMENT title (#PCDATA) !ELEMENT content (para+, konto) !ELEMENT para (#PCDATA) !ELEMENT account (#PCDATA) !ATTLISTaccount number CDATA #REQUIRED ] ?xml-stylesheet type="text/xsl""? page titleXSL-Transformation of a XML-file to a HTML-file or to a PDF-file/title content paraThis is an example:/para account number="27"/ /content /page xls file !--The component and its script are in the lxslt namespace and define the implementation of the extension.-- lxslt:component prefix="my-ext" functions="something" lxslt:script lang="rexx" ![CDATA[ /*something rexx - [Object] Rexx, ---gm, 2003-03-06, pitten- austria*/ My_Excel = .OLEObject~New("Excel.Application") infile = "e:\allesmist\dvoexport.xls" My_Excel~WorkBooks~Open(infile) row = 1 column = 'B' number = My_Excel~Cells(row,column)~Value return "The amount is=" number My_Excel~WorkBooks~Close ::requires "OREXXOLE.CLS" ]] /lxslt:script /lxslt:component xsl:template match="account" xsl:value-of select="my-ext:something(string(@account))"/ /xsl:template /xsl:stylesheet with object rexx or vb or js you can do all what excel/word can do gerald -Ursprngliche Nachricht-Von: Rapcewicz, Chris [mailto:[EMAIL PROTECTED]Gesendet: Donnerstag, 6. Mrz 2003 21:28An: '[EMAIL PROTECTED]'Betreff: writing excel files with merge and coloured cells Hi, I am currently running Cocoon 2.0.4 on Tomcat 4.1 and I am interested in creating excel files which have coloured cells and also cells that are merged. I tried generating an xml from gnumeric and using this, but found that neither the coloured cells nor the merged cells were present. Before I start trying to debug, I was wondering if this functionality is supported? Thanks, Chris.
XmlForm Validation Problem: Where Am I Going Wrong?
Hi I think I'm pretty close to having things up and running with XMLForms. I'm having some problems with the validation though. I'm trying to achieve conditional validation: I have two password fields and the second should only be effected if a password has been entered in the first. I don't want to do this in the '/' content as I want any violations to be associated with the second field. I've tried everything that I can think of. Here is one of the attempts. Everything works except the validation of the second password field. No violations are reported when I fill in only the first field. Where am I going wrong? My my dead lines are turning pale blue and gasping for breath. Please please help me! Richard Validation Schema(tron) - ?xml version=1.0 ? schema ns=http://xml.apache.cocoon/xmlform; xmlns=http://www.ascc.net/xml/schematron; titleAccount Registration Schema/title phase id=registration pFor user identity information./p active pattern=reg/ /phase pattern name=User Info Validation Pattern id=reg rule context=/emailAddress assert test=contains( string(.),'@') Email format is invalid. /assert /rule rule context=/password assert test=string-length(.) gt; 7 Password should be at least 8 characters. /assert assert test=string-length(.) lt; 20 Password should be less than 20 characters. /assert /rule rule context=/repeatedPassword report test=(string-length(/password) gt; 0) and (string-length(.) = 0) Please confirm your password. /report /rule /pattern /schema XMLForm ?xml version=1.0 ? xf:form xmlns:xf=http://xml.apache.org/cocoon/xmlform/2002; id=form-feedback view=registration action=new-account.xml xmlns:site=http://designedandmanaged.net/cocoon/site/1.0; error xf:violations class=error/ /error xf:textbox ref=/emailAddress xf:captionEmail Address/xf:caption xf:violations class=error / /xf:textbox xf:password ref=/password xf:captionPassword/xf:caption xf:violations class=error / /xf:password xf:password ref=/repeatedPassword xf:captionPassword (Confirm)/xf:caption xf:violations class=error / /xf:password xf:textbox ref=/firstName xf:captionFirst Name/xf:caption xf:violations class=error / /xf:textbox xf:textbox ref=/lastName xf:captionLast Name/xf:caption xf:violations class=error / /xf:textbox xf:textbox ref=/phoneNumber xf:captionPhone Number/xf:caption xf:violations class=error / /xf:textbox xf:textbox ref=/address1 xf:captionLine 1/xf:caption xf:violations class=error / /xf:textbox xf:textbox ref=/address2 xf:captionLine 2/xf:caption xf:violations class=error / /xf:textbox xf:textbox ref=/address3 xf:captionLine 3/xf:caption xf:violations class=error / /xf:textbox xf:textbox ref=/city xf:captionCity/xf:caption xf:violations class=error / /xf:textbox xf:textbox ref=/postCode xf:captionPost Code/xf:caption xf:violations class=error / /xf:textbox xf:textbox ref=/countryID xf:captionCountry/xf:caption xf:violations class=error / /xf:textbox xf:submit id=next class=button xf:captionCreate My Account/xf:caption xf:hintGo to next page/xf:hint /xf:submit /xf:form - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
encoding problem with xsp pages
Title: Nachricht hi, does anyone know why when using xsp or espacially esql, all characters like ä,ö,ü etc. are turned into funny characters like Ã(ö). i am trying to firgure out why that happens, and what unicode i have to use for languages using those characters, like e.g. german. thanks