RE: 2.1 dont work with ODBC?
On Thu, 2003-06-05 at 23:16, Geoff Howard wrote: Did you contact Torsten as the error message said? Thanks for forwarding, Geoff. I'll fix it tomorrow. how can this database was recognized in 2.0.4 version and not in 2.1? We changed the database recognition mechanism. is this in any todo list (so we have to wait for the final 2.1 version or not ?) You can easily use use-limit-clausejdbc/use-limit-clause to work around this. The final version will use jdbc as a default again. We are currently collecting database driver strings ;) Thanks for reporting! -- Torsten - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: I18n Performance
On Tuesday 21 May 2002 19:02, Peter Royal wrote: On Tuesday 21 May 2002 11:50 am, Michael Zehrer wrote: I'm using I18n just for simple translations, no number, date, currency formatting and just one substitution. My log level is already ERROR. So nothing real special here. If I take out the I18n transformation, everything is quite ok, if it's in the cpu load is very high after a little while and pipeline processing takes very long. It is very slow. I would recommend optimizing your pipelines for cachability to the I18nTransformer is not executed on each request. But IIRC the I18nTransformer is still not cachable - is he? -- Torsten - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: I18n Performance
But IIRC the I18nTransformer is still not cachable - is he? doh! Yes, you're correct. (I'm using my own bastardization of the standard I18nTransformer over here. Cacheable + very fast since i replaced the XMLResoruceBundles with some hashmaps. Its on my list to package up + donate back, time is just very very slim :( Same here *sigh* Ages ago I proposed some changes on having a more abstract resource bundle (we'd like serve our from db) which has a last modified stamp so we can easily implement cacheable... but time you know ;-) This would be a major(!) improvement... we haven't yet (and wouldn't) use the i18n transformer under the current circumstances. My 2 cents -- Torsten - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: esql v1.22 multiple returned update counts and ResultSets
On Friday 17 May 2002 03:48, neil wrote: Hi, it seems that a few cocoon users like me, are hacking about with esql to get it to do what we need. I'm working on the change shown below and am happy to share it if anyone wants it. JDBC can handle a sequence of values returned from a stored procedure, where the values can be update counts and ResultSets in any order. It looks to me like esql v1.22 will only handle a sequence with all the ResultSets before the first update count and at most one update count. e.g. ResultSet*updateCount? (where * and ? are as in a RE). MS SqlServer stored procs return an update count for every insert/update/delete performed and a ResultSet for every query (whose results aren't consumed in the procedure) in the order that they are performed. So its important to handle update counts and ResultSets in any order. Let's assume you expect: resultset update count resultset update count How do you iterate through the update counts? AFAIK the JDBC API provides only information about the update count in the Statement. This is why current esql is like it is. int resultCount = 0; for ( boolean nextResultIsResultSet = cs.execute(); true; nextResultIsResultSet = cs.getMoreResults() ) { if (nextResultIsResultSet) { java.sql.ResultSet rs = cs.getResultSet(); ++resultCount; // handle ResultSet rs.close(); } else { // either the next result is an update count or there are no more results int updateCount = cs.getUpdateCount(); if ( updateCount == -1 ) { break; // no more results // only finished when cs.getMoreResults() == false cs.getUpdateCount() == -1 // awful bit of API but it works } ++resultCount; // handle updateCount } // there may still be more ResultSets and/or update counts } if (resultCount == 0) { // no returned results } note that you are always calling getUpdateCount on the same statement. will it's state be changed?!? That would be indeed a ugly behaviour... -- Torsten - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: esql v1.22 multiple returned update counts and ResultSets
On Friday 17 May 2002 10:36, Christian Haul wrote: On 17.May.2002 -- 10:01 AM, Torsten Curdt wrote: On Friday 17 May 2002 03:48, neil wrote: Hi, it seems that a few cocoon users like me, are hacking about with esql to get it to do what we need. I'm working on the change shown below and am happy to share it if anyone wants it. JDBC can handle a sequence of values returned from a stored procedure, where the values can be update counts and ResultSets in any order. It looks to me like esql v1.22 will only handle a sequence with all the ResultSets before the first update count and at most one update count. e.g. ResultSet*updateCount? (where * and ? are as in a RE). MS SqlServer stored procs return an update count for every insert/update/delete performed and a ResultSet for every query (whose results aren't consumed in the procedure) in the order that they are performed. So its important to handle update counts and ResultSets in any order. Let's assume you expect: resultset update count resultset update count How do you iterate through the update counts? AFAIK the JDBC API provides only information about the update count in the Statement. This is why current esql is like it is. I believe that we actually should expect (resultset, update count) | getMoreResults() V (resultset, update count) well, but what will change the update count on the statement? how do you iterate through it if you have no resultset at all but only update counts update count update count update count getMoreResults() should return no resultset at all... but how to iterate to the next update count? again - it belongs to the statement... So the real question would be IMHO how should ESQL react with respect to multiple ResultSets? Something like introducing an index attribute? Well, current esql can already cope with multiple resultsets... question is only update counts fit into this. since AFAICS they are tied to the statement. see above esql:results index=1 ... /esql:results esql:update-results index=1 ... /esql:update-results esql:results index=2 ... /esql:results esql:update-results index=2 ... /esql:update-results well, that's not necessary since this can easily addressed with xpath. Afterall, each ResultSet may have a different structure and semantics. sure... should already be taken care of int resultCount = 0; for ( boolean nextResultIsResultSet = cs.execute(); true; nextResultIsResultSet = cs.getMoreResults() ) { //if (nextResultIsResultSet) { java.sql.ResultSet rs = cs.getResultSet(); ++resultCount; switch (resultCount) { 1: //handle ResultSet 1 rs.close(); int updateCount = cs.getUpdateCount(); if ( updateCount == -1 ) { // handle UpdateResults 1 break; 2: //handle ResultSet 2 rs.close(); int updateCount = cs.getUpdateCount(); if ( updateCount == -1 ) { // handle UpdateResults 2 break; default: // handle ResultSet without index } } if (resultCount == 0) { // no returned results } note that you are always calling getUpdateCount on the same statement. will it's state be changed?!? That would be indeed a ugly behaviour... BTW can anyone remember what more-results are supposed to mean? yes :-) it's for the limit clause... we use esql for paging though a resultset (like google) so depending on if there are previous rows or rows after the limit has reached you get: esql:previous-rows ... /esql:previous-rows and esql:more-rows ... /esql:more-rows where you can put your e.g. links in -- Torsten - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: esql v1.22 multiple returned update counts and ResultSets
On Friday 17 May 2002 16:34, Christian Haul wrote: On 17.May.2002 -- 02:31 PM, Christian Haul wrote: On 17.May.2002 -- 12:23 PM, Torsten Curdt wrote: I would nest if(hasResultSet) into the switch statement. We would want to have multiple no-results / update-results blocks for each result, wouldn't we?? OK, did your way since the XSL is simpler ;-) ok Anyway, I've put the code into HEAD - please check. I'm off 'till Wednesday so if I did break anything you'll have to live with it 'till then or fix it ;-) will do - guess I already found somehting... the switch() should not use the getResultCount because of this: getResultCount but position() of result result 1 1 update-result 2 - result 3 2 we need the incrementing varibale as I proposed... but that's not a major biggy to fix ;-) cheers -- Torsten - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Cocoon 2 + Access
Sorry, this will not help but... If you want to stay away from problems, stay away from access... Just my two cents... -- Torsten - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Cocoon 2 Builtin-Logicsheet Definitions
On Tuesday 14 May 2002 22:37, Mark Gaither wrote: I'm a co-author on a book entitled Cocoon 2 Programming: Web Publishing with Java and XML. I writing a chapter entitled XSP LogicSheets. In this chapter, I'm cataloging all of the built-in logicsheets. I'm having problems determining some of the definitions of elements of the ESQL logicsheet. For example, what is: esql:use-limit-clause Hi, Mark, that's actually for telling ESQL which database you have. Postgres and MySQL have an explicit limit clause while most other vendors (very unfortunately) don't have such clauses. It goes hand-in-hand with the max-rows and skip-rows settings. You can use the following values: mysql, postgres, jdbc, auto (IIRC - please crosscheck) mysql uses the native mysql limit clause postgres the postgres clause jdbc uses what is possible with jdbc (let's the vendor driver do the work) auto tries to find the correct one (IIRC from the driver url) I have picked apart the esql.xsl and the esql.xsd but I have yet to find a lot of documentation other than what is in the Cocoon 2 documentation. I know is quite out of date... Also, why is the included esql.xsd (schema definition) not complete? In other words, why aren't the esql elements autocommit and use-limit-clause not defined in the esql.xsd? Well, we didn't add them yet (easy like that ;-) ...but seriously They *should* be in there but... you know... documentation... none of the developers wants to do it ;-) I fear the xsd could be quite out of date. But feel free to ask :-) Cheers -- Torsten - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ExcaliburComponentManager.java still missing from Latest Snapshot breaks /cocoon/ and throwing ERRORS
Sorry, for jumping in here... snip/ And after just getting a clean snapshot and rebuilding the cocoon.war it still fails. with the Avalon Framework specifically referencing ExcaliburComponentManager.java. .. Here is the error.log. ERROR (2002-05-10) 01:22.48:604 [core.manager](Unknown-URI) Unknown-thread/ExcaliburComponentManager: Could not get class org.apache.cocoon.components.store.impl.FilesystemStore for role org.apache.excalibur.store.Store on configuration element persistent-store java.lang.ClassNotFoundException: org.apache.cocoon.components.store.impl.FilesystemStore AFAICS it is referencing the role org.apache.excalibur.store.Store ..so better check you store setup in cocoon.xconf. As Vadim pointed out: this should have nothing to do with the ECM except seeing the ECM complaining... -- Torsten - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Need to replace xalan
On Monday 06 May 2002 20:11, Vadim Gritsenko wrote: Try saxon-6.5.2.jar. Works for me. Vadim Just wondering... how is the speed compared to Xalan? -- Torsten - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Problems with XSP
On Fri, 26 Apr 2002, Vadim Gritsenko wrote: From: Graaf, Edgar de (fin) [mailto:[EMAIL PROTECTED]] Great... when I code XSP and when I make some error in the logic I get (of course) an error. An error contains a line number. Now I have to go to the work directory and look at the generated java file to find the error. Isn't it possible to display the line number of the error in the XSP? Suggest how it is possible. I have thought about this a while ago, too. We should be able to extract that from the exception stacktrace. It should also be even possible to display that line's sourcecode (preferable with some surrounding lines). But I wasn't sure if this is really worth the work... ...is there a need for it? -- Torsten - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Problems with XSP
I have thought about this a while ago, too. We should be able to extract that from the exception stacktrace. Line number in Java source is already shown, correctly. The question is how to map this to XSP source line numbers. well, addtionally we need the full classpath of the failed class itself from the stacktrace. then we need to lookup the java source code filename from the ProgrammGenerator. unfortunately that's not yet possible AFAICS. but as a workaround we might translate back the class into a path and use the workdir of the ProgrammGenerator as root, add the path and we should have the generated file path from the repository... What do you think? -- Torsten - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problems with XSP
I have thought about this a while ago, too. We should be able to extract that from the exception stacktrace. Line number in Java source is already shown, correctly. The question is how to map this to XSP source line numbers. well, addtionally we need the full classpath of the failed class itself from the stacktrace. then we need to lookup the java source code filename from the ProgrammGenerator. unfortunately that's not yet possible AFAICS. but as a workaround we might translate back the class into a path and use the workdir of the ProgrammGenerator as root, add the path and we should have the generated file path from the repository... OK, that would make it easier to see the source (if I understand correctly, that is). But I believe the original problem is infeasible since we don't know what transformations happened on the way to the final XSP (all taglibs but XSP done). true... that's why I am not sure if it is really worth the work. fact is: it will only really be useful if the error does not come from a logicsheet. otherwise you would present code to the user/developer he has probably never seen before. it might be easier to track things though... I am really torn apart :-/ Some comments from XSP *users* would be fine... One could, of course, first run the XSP through a transformer that adds line number comments that are kept 'til the java file is generated, find the enclosing line number comments (well, one would suffice) output the XSP with the line highlighted that translates to the faulty java code Would be kind of overhead outside development but then, a deployed application wouldn't compile XSPs too often. hm.. you mean this way? ... xsp:logic int a = 5; /xsp:logic my:logicsheet-tag/ xsp:logic b = a; c = x; /xsp:logic ... transform it once to add the line numbers. (it would be cool if the XSP logicsheet could already provide this. but I fear that's not possible with XSLT) ... xsp:logic /* line:4 */ int a = 5; /xsp:logic my:logicsheet-tag/ xsp:logic /* line:8 */ b = a; /* line:9 */ c = x; /xsp:logic Then apply the logicsheets which might insert or remove lines from the original code: ... /* line:4 */ int a = 5; . /* line:8 */ b = a; /* line:9 */ c = x; Now the exception provides information about the final class line numbers. We still would need to obtaint the information as described. but we could then also parse the comment to get the original line number an present that one in a nice exception. the malicious line highlighted with +/- 5 lines. if there is no line number in comments we know it was introduced by a logicsheet and might not be very helpful to display this way. But as I said... quite some hours of work... question is: do people think this is helpful? people? comments please... -- Torsten - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Cocoon on Resin 2.1.0
On Thu, 25 Apr 2002, Peter Velichko wrote: Hi all! I'm trying to install Cocoon 2.0.2 on Resin 2.1.0 (W2K) and have the following message: Sorry, this might not help at all... but we are using Cocoon 2 HEAD without a problem with resin... -- Torsten - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Cocoon on Resin 2.1.0
Sounds to me like XSLT transformation problem. Check generated sitemap_xmap.java (I guess it is 0 bytes), try to replace Resin's XSLT with Xalan shipped with Cocoon. this should not be necessary... work for us without PS Tomcat 4.0.4 works too good for me to switch to Resin. What is better in Resin 2.1.0 comparing with Resin 2.0.4? last time I checked resin was much faster than tomcat ...I have to admit I haven't checked for a while... maybe latest tomcat now also kicks ass... :-) -- Torsten - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Cocoon on Resin 2.1.0
Couple of days ago I compared Resin 2.0.4 with Tomcat 4.0.4 - and found a surprise: Tomcat 50% faster. :) (my test was to fetch 300 pages (3Mb) from Cocoon's cache using wget -q -np -R jpg,gif,css -r) ..so I guess I should check again then ;-) Thanks for the hint, Vadim -- Torsten - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Aggregation sample
On Fri, 19 Apr 2002, Volker Schneider wrote: Hi colleagues, does anybody have a simple aggregation sample where two xml files from filesystem are aggregated together? Did you have a look into the samples yet? aggregate part ... part ... /aggregate set up a internal pipeline for the files and use this pipeline in the parts... Documentation says aggregation is simple - I don't think so... It is ;-) -- Torsten - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Aggregation sample
On Fri, 19 Apr 2002, Volker Schneider wrote: Hi Torsten, I have the following pipeline: map:match pattern=Agg map:aggregate element=site map:part type=file element=part1 src=prototyp/part1.xml/ map:part type=file element=part2 src=prototyp/part2.xml/ /map:aggregate serialize type=xml/ /map:match From the sample webapp: map:match pattern=news/aggregate.xml map:aggregate element=page ns=http://foo.bar.com/myspace; !-- Aggregation is a very powerful concept that allows a document be generated from several other documents. Strictly speaking, all parts are just concatenated in this order to a new document. Several things to note here: cocoon: is a pseudo protocol and refers to another pipeline. cocoon:/ refers to a pipeline from the current sitemap while cocoon:// refers to a pipeline from the root sitemap. Other pseudo protocols exist: context: is another pseudo protocol, context:// is refering to a resource using the servlet context. resource: is yet another pseudo protocol, resource:// is refering to a resource from the context classloader. These pseudo protocols are declared in cocoon.xconf Thus the parts refer to the pipeline fragments above. The element attribute places the content in a new root element named as specified, using the namespace provided by the ns attribute. Please see docs for further explanations. -- map:part src=cocoon:/news/slashdot.xml element=news ns=http://foo.bar.com/slashdot/ map:part src=cocoon:/news/moreover.xml element=news ns=http://foo.bar.com/moreover/ map:part src=cocoon:/news/xmlhack.xml element=news ns=http://foo.bar.com/xmlhack/ /map:aggregate map:transform src=stylesheets/news/news.xsl/ map:serialize/ /map:match -- Torsten - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: esql based logicsheet get-row-count
On Wed, 17 Apr 2002, Christian Haul wrote: On 17.Apr.2002 -- 09:10 AM, Jerzy Kut wrote: Hi cocooners! I know that esql:get-row-count is unavailable yet. But I need to get this information from my DB. Well, not exactly... as soon as you use the JDBC limit clause it *is* available to the esql helper classes... but I IIRC we have not a esql tag for this... feel free to send a patch ;-) -- Torsten - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with xsl:copy-of and namespaces
So it appears, that xsl:copy-of produces xml in the output, when namespaces are involved and HTML otherwise. I tried xsl:strip-space without effect. This doesn't seen like much of a problem, however with a more complex page, when a couple of pictures are integrated into a larger picture with the help of a table, this leeds to additional white space in the output, which in turn means, that the subpictures are not properly aligned. We encountered the same here... unfortunately I fear this was even intended :( ...IIRC I found something in the dpawson XSL FAQ. http://www.dpawson.co.uk/xsl/xslfaq.html What we tried is not to copy the nodes but create new nodes and set their values... but I have to admit this sucks badly :( Before I go to the xalan list, I like to have an opinion from fellow cocoon users. Please go ahead and ask them... I'm also curious. Please report back... -- Torsten - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Did it worked with someone ??
Hi, people... Does anyone have tried to use WebLogic6.1 with Cocoon2.0 ? I have used. Did the JSP examples in Cocoon worked ? Don't know. Why do you want to use Cocoon if you are using JSP? Vadim, the other way round: why do you want to use JSP if you are using Cocoon ;-)) cheers -- Torsten - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Esql row-results
esql supports this from scratch: esql:execute-query ... esql:use-limit-clausemysql/esql:use-limit-clause esql:skip-rows0/esql:skip-rows esql:max-rows0/esql:max-rows if your database has no support for such (seem to be all others than mysql and postgres) you can even use the jdbc way: esql:use-limit-clausejdbc/esql:use-limit-clause esql:skip-rows0/esql:skip-rows esql:max-rows0/esql:max-rows Cheer -- Torsten fantastic thanks - Original Message - From: Chris Warr [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, April 12, 2002 3:16 AM Subject: RE: Esql row-results Then you want to use LIMIT, I think: SELECT blah from thetable LIMIT 1 Chris. -Original Message- From: Sharat Koya [mailto:[EMAIL PROTECTED]] Sent: Friday, 12 April 2002 12:00 To: [EMAIL PROTECTED] Subject: Re: Esql row-results unfortunatly not. I am using mysql - Original Message - From: Chris Warr [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, April 12, 2002 3:02 AM Subject: RE: Esql row-results does 'select top 1 ' do what you want. It just returns one row of the query results. Not sure if all dbs support it though. Very handy though. Chris. -Original Message- From: Sharat Koya [mailto:[EMAIL PROTECTED]] Sent: Friday, 12 April 2002 11:54 To: [EMAIL PROTECTED] Subject: Esql row-results Hi, I have searched through the archives over the past hour and haven't found anything for this problem. What I want to do is execute a esql query that returns the results from a table but only selects the first row. eg.. normal esql namespace excluded... queryselect * from action where due lt; current_timestamp/query results row-results actionget-string column=action//action /row-results /results what i want to be able to do is return only one action and ideally the first one it comes across. Once it does i can then set about processing the action and then delete from the database. any ideas? thanks for any time put in Sharat Koya - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Hi
Hi, Can anybody send me multiple samples of xsl along with xml files for generation of PDF's in Cocoon2.0.2 So that i could be see the source code of multiple samples If there is any link of samples than plz send me the url Did you have a look into the samples that come with Cocoon? -- Torsten - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: problem with precept sample: no {page} from action-set?
Assuming you use the interpreted sitemap... There was a problem with the Treeprocessor where parameters were not passed to actions in an action-set which should be fixed now... Please use current HEAD version or switch back to the compiled sitemap engine for running the example. Just ask if you need any further help... Cheers -- Torsten - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: multiple submit button on a form
On Mon, 8 Apr 2002, Volker Schneider wrote: Hi Torsten, in this way it is possible to perform an action within an action-set. But why isn't it possible to have a pipeline within such an action within an action-set? There is an exception coming up or an error message telling something about incomplete pipeline. I don't know how to solve this. well, thats the way the sitemap works ;) you cannot use pipeline components inside an action-set. you need to take a different approach... use the action-set inside your pipeline and use a selector if you really need to branch in the pipeline. sound like you might to have a look into this ;) http://cvs.apache.org/viewcvs.cgi/xml-cocoon2/src/scratchpad/webapp/mount/precept/ http://cvs.apache.org/viewcvs.cgi/xml-cocoon2/src/scratchpad/src/org/apache/cocoon/precept/acting/PreceptorDemoAction.java hope this helps -- Torsten - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: esql transformations
On Thu, 4 Apr 2002, Jerzy Kut wrote: Hi all! Can I use esql in transformation file? short answer: no - it's a logicsheet that gets applied by the serverpages generator. you could use the sql transformer for this instead. mind the (unfortunately) different syntax though... -- Torsten - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: multiple submit button on a form
this is possible since the latest release... please use the new cocoon-action syntax form input type=submit name=cocoon-action-add value=press here to add input type=submit name=cocoon-action-del value=press here to del /form then you need to define an action-set in the sitemap for that: map:action-sets map:action-set name=demo map:act type=addAction action=add map:act type=delAction action=del ... You might also want to take a look into the multiactions in the scratchpad... but that's CVS HEAD only -- Torsten - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: multiple submit button on a form
this is possible since the latest release... please use the new cocoon-action syntax Seems that nobody is aware of the new syntax. Is it documented somewhere? I don't remember if there were any notion in Announcement. I put it into the changes document as well as I fixed the documentation ...not quite sure if did make an announcement on cocoon-users though... Well, at least I talked about it on cocoon-users... Do you want me to make an announcement? form input type=submit name=cocoon-action-add value=press here to add input type=submit name=cocoon-action-del value=press here to del /form This allows to have any button name you like. Even in different languages, while the old syntax was too much tied to the button name. -- Torsten - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: External graphic, FOP and URIResolver
On Thu, 21 Mar 2002, Olivier Rossel wrote: Tell me if I am wrong: FOP only accepts standard URLs for external-graphic src attribute. file:// http:// are ok. No relative path, and no cocoon pseudo-protocol. Can anyone confirm? AFAIR this is true... Is it possible that FOP uses the URIResolver of Cocoon instead, in order to understand pseudo-protocol (especially cocoon:// and resource://) ? Is there a trick in order to use relative paths in FOP? (I read the archives and everyone seems to use full URLs :-( IIRC there is a static configuration in FOP where you can specify a context directory. Unfortunately this not yet configurable in the serializer and since it's static it will be for each FOP tasks... Maybe you can post this issue on the FOP list and help make this better configurable... -- Torsten - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: External graphic, FOP and URIResolver
On Thu, 21 Mar 2002, Nicola Ken Barozzi wrote: From: Torsten Curdt [EMAIL PROTECTED] Is it possible that FOP uses the URIResolver of Cocoon instead, in order to understand pseudo-protocol (especially cocoon:// and resource://) ? Is there a trick in order to use relative paths in FOP? (I read the archives and everyone seems to use full URLs :-( IIRC there is a static configuration in FOP where you can specify a context directory. Unfortunately this not yet configurable in the serializer and since it's static it will be for each FOP tasks... Maybe you can post this issue on the FOP list and help make this better configurable... FOP community is in the process of making this happen, by using Avalon Configuration. If you want to partecipate, goto [EMAIL PROTECTED] . great news :) -- Torsten - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with encoding non-english request parameters
snip/ IIRC changing the encoding of the *serializer* has solved this problem for us. Because then the POST will come with the right encoding set. My 2 cents -- Torsten - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [C2] esql:group, esql:member
wait a minute Hey Chris Just a heads up. I'm going to submit two patches in the near future for esql. One is to fix the footer behavior-- since the footer occurs after the comparison, if you put an esql:get-??? in the footer it returns data for the next row. it should return data for the most recent row. not quite sure about this one don't know what you mean by footer The other patch will allow looping to be controlled completely from the outside of esql. This just entails exposing next-row and is more rows? functionality through the logic sheet. Also, the esql:get-??? calls will have to be made available to descendents of esql:results not just row-results But... ...why would someone want to have ResultSet values *NOT* under row-results. That's exactly how JDBC does it and I couldn't think of any reason not to do it the same way... -- Torsten - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AW: Problems with font embedding
On Thu, 7 Mar 2002, Adnan Zelkanovic wrote: of course, I have read it many times. Why do you want me to read the docu again although you know that its out-of-date ? If the developers don't want to be asked the same questions again and again then they have to write a better docu which is up-to-date and which can be understood by everyone ! Sorry, but that's the fact. ...don't want to butt in here. But as a matter of fact docu *will* and *cannot* be up-to-date when a software is still being developed. But if you don't use the latest development version the docu should be ok and help... Cheers -- Torsten - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Problems with font embedding
On Thu, 7 Mar 2002, Matthias Fischer wrote: Was this your last word, John? I can assure you, it's three of us who try to get a solution for the last six months (of course, we did other things in the same space of time, too ;-). We damned read the documentation, and not only once. We got onto people's nerves in the lists to get a solution, receiving answers that were, at least to us, contradictory. Some stated to have problems with font embedding, others said it worked. No tangible result for us. I anticipated that we aren't Java programmers (however, I guess Cocoon isn't a tool for Java programmers only...). For the rest, I reckon we are as dumb or as smart as anyone else... With the intent of disinflating all ongoing polemics, from all sides, would you really and terribly mind to get back to Adnan's mail of yesterday (06.03.02 15:03) and give us a little push to get over the hill? It would be a small step for the Cocoon community, but a big step for ourselves. If the feature we're looking for is implemented in Cocoon, it would be a pitty we use FOP as a stand-alone solution instead of Cocoon itself. Ok... back to the facts then - could you give a link from the archieves since I missed the thread? -- Torsten - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: AW: Problems with font embedding
On Thu, 7 Mar 2002, Matthias Fischer wrote: I've got a diofferent opinion. I've done technical docu for several years: the criterion of measurement of a docu is its user! For sure... but then you also should know that docu for software that is still (fast) progressing *cannot* be up-to-date. I will not bend on this one... ;) Thus, if I assure you that we read the stuff through and through, there are only two alternative interpretations: either that we are as dumb as hell, and that we'd better leave our fingers off a tool as blinking and glistening as Cocoon, or that the docu has to be enhanced for dummies like us, be it a time-consuming thing or not. Nothing inbetween, as far as I know. I guess noone wants to argue about the above... so you say the docu needs to improved to be... 1. more up-to-date 2. more understandable for non technical users Currently I see 1. as a problem and will only happen for each release... Don't know about 2. though... But as always - it's OSS. So feel free to provide a patch for the docu... Especially if you get things working... -- Torsten - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: problems with cocoon-2.0.1 and resin-2.0.3
On Thu, 28 Feb 2002, Donald Ball wrote: On Thu, 28 Feb 2002, Torsten Curdt wrote: That's exactly what I had... ...a fresh checkout solved it. see http://marc.theaimsgroup.com/?l=xml-cocoon-devm=101377449417740w=2 so you're saying that 2.0.1 is known to be broken with resin, but the latest cvs does work? Actually I cannot really tell anything about 2.0.1 in particular because we only use the HEAD branch - but it was very close to the latest release version IIRC. And the symptoms are the same... At least HEAD a few days ago worked back fine with resin. Hope you this helps -- Torsten - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Fw: input type=image src=images/submit.gif name=cocoon-actionvalue=Submit
Niket, did you do an update? ...as I said I fixed this already -- Torsten On Wed, 27 Feb 2002, Niket Anand wrote: Hello Vadim, Can you help me out of the following problem? - Original Message - From: Niket Anand [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, February 27, 2002 9:53 AM Subject: Re: Fw: input type=image src=images/submit.gif name=cocoon-action value=Submit Hello All, Has anybody tried to perform action with following input type input type=image src=images/submit.gif name=cocoon-action-Add Department value=Add Department I have tried on cocoon2.0.2 dev, but it doesnot work and give following error. Please help me out of this problem if anybody has tried under same condition. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Fw: input type=image src=images/submit.gif name=cocoon-actionvalue=Submit
Hi Torsten, Sorry to trouble you again as I am helpless. Yeah I have updated as per ur instruction. I downloaded latest 2.0.2 dev (26Feb) and again make build of it and tried after made changes in type=image.But it does not work in tutorial example (employee-department) If I am going wrong anywhere pls guide me. or else send me updated class or java file (org.apache.cocoon.environment.http.HttpEnvironment). or pls give guideline where to make changes. Thanks for ur cooperation. Ok... let's solve this step by step 1. make sure you have latest revision (1.10) of org.apache.cocoon.environment.http.HttpEnvironment 2. make sure you use the new syntax input type=image name=cocoon-action-[ACTION] value=some text 3. search in you log file(s) for the request parameter section. you should find something similar to this: REQUEST PARAMETERS: PARAM: 'cocoon-action-test.y' VALUES: '[16]' PARAM: 'cocoon-action-test.x' VALUES: '[17]' Well, actually that's all I can say. It's working here. If you still don't get it working... get a clean checkout of cocoon HEAD and try again... -- Torsten - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: problems with cocoon-2.0.1 and resin-2.0.3
and it does repeat itself periodically, losing 5-10k of free memory each time. access, error, and sitemap logs are all blank. resin won't stop normally, the java processes must be killed. looks like deadlock to me, although why it only happens when the server is being started from scratch is completely beyond me... and of course, frustratingly enough, the c2.0.1 sample webapp works fine, even its xsp pages. does anyone have any suggestions for where i might begin debugging this? I had this ones - but unfortunately cannot exactly remember how I solved it... :( Did you compare both cocoon.xconfs? I remember doing this... All I can tell: HEAD works just fine with resin 2.0.5 :) -- Torsten - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: problems with cocoon-2.0.1 and resin-2.0.3
On Thu, 28 Feb 2002, Donald Ball wrote: one more bit of potentially useful information - when i start from scratch with a clean webapp tree, i note that cocoon-files directory created in the servlet's temporary work area, the only directories that are created are cache-dir and upload-dir - the org directory which normally serves as the root of the classpath for the dynamically generated sitemap and xsp classes is never created. so something seems to be going wrong when cocoon reaches the end of the cocoon.xconf file and tries to load sitemap.xmap. i just tried copying in the vanilla cocoon.xconf file from cocoon-2.0.1 and saw no change in behavior (my only mods had been adding a client-specific logicsheet, adding a data source, and changing the sitemap reloading to synchronous). - donald That's exactly what I had... ...a fresh checkout solved it. see http://marc.theaimsgroup.com/?l=xml-cocoon-devm=101377449417740w=2 Cheers -- Torsten - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: input type=image src=images/submit.gif name=cocoon-actionvalue=Submit
On Mon, 25 Feb 2002, Niket Anand wrote: Hi All, I am using image button of type image with name=cocoon-action. As per cocoon2 to perform action event, type should be type=submit.But I am having input type=image src=images/submit.gif name=cocoon-action value=Submit/ and onclick of this button it does not perform action. How can I execute some action or invoke class on submit of this type of button. I am facing problem if I change type=submit, it displays simple button but not the image type button. Pls help me out of this problem. Thanks, Niket Hi, Niket, you are facing a bug that has been around forever :) But this has been resolved in the latest CVS version. In the latest CVS version the cocoon-action syntax has been deprecated (but is still supported) because of some of i18n problems - anyway. Get yourself a CVS copy and you may use your action as follows: input type=image src=images/submit.gif name=cocoon-action-Submit value=Whatever you want - hit here Please note that the action as defined in the action-set is now included within the name of the input!! Hope this helps -- Torsten - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: input type=image src=images/submit.gif name=cocoon-actionvalue=Submit
On Mon, 25 Feb 2002, Niket Anand wrote: Hi Torsten, It is not working even though I downloaded cocoon-2.0.1 and make build of it. Just to make sure we are talking about the same thing: you got a current CVS copy of the HEAD branch, compiled it and used that one? (The change is in no release yet!!) I also made changes to input type=image src=images/submit.gif name=cocoon-action-Submit value=Submit/ What else do I need to change to make it run? Nothing actually... ...if this still doesn't work please send me the snippet from the logfile where all the request parameters are listed... Thanks -- Torsten - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: xsp and XMLizable
I have a problem with transformation and XMLizable objects: ( I also had the problem when I tried to wirte the this.contentHandler directly, or when I used the DOMStreamer ) Are you sure your SAXevents are correct? Namespace etc. ? Hint: write a XSP page creating the same Fragment and look into the repository. You then can compare what cocoon wants the events to look like. If everything is dynamic - use the LogTransformer after the generator to see what actually comes out of your XMLizable. Hope this helps -- Torsten - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Sitemap limits
AFAIK this is not true anymore. The 64kb limit is per java method and the sitemap is now split up into different methods. So it's hard to tell. Should be quite big ;) With the new interpreted sitemap there is (probably) no limitation. -- Torsten On Wed, 20 Feb 2002, Carlos Araya wrote: From previous messages to the list it appears that it can be up to 64kb Carlos On 02/20/02 21:44, Mikhail Fedotov [EMAIL PROTECTED] wrote: Hi! That are limits of current sitemap limitation ? I.e. how huge it can be ? Mikhail - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Carlos E. Araya ---+ WebCT Administrator/Trainer P | California Virtual Campus - | C/O De Anza College G | 21250 Stevens Creek Blvd ---+ Cupertino, CA 95014 email [EMAIL PROTECTED] web http://www.cvc1.org/ (work) http://www.silverwolf-net.net (personal) phone 408 257 0420 (work) PGP Fingerprint:E629 5DFD 7EAE 4995 E9D7 3D2F 5A9F 0CE7 DFE7 1756 80/20 Rule: Simplicity vs. complexity. 80 percent of the functionality/feature set of an ideal solution set, with only 20 percent of the complexity of the ideal solution or 20 percent of the effort required to build the ideal solution; or put another way, the last 20 percent of the ideal feature set is what creates the most complexity - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Can't build Cocoon 2.0.1
On Tue, 19 Feb 2002 [EMAIL PROTECTED] wrote: All, Looks like one way to fix this problem is to declare the 2 classes as abstract: cocoon-2.0.1/build/cocoon/src/org/apache/cocoon/components/language/markup/x sp/EsqlConnection.java (line 22): public abstract class EsqlConnection implements Connection { cocoon-2.0.1/build/cocoon/src/org/apache/cocoon/components/language/markup/x sp/EsqlConnectionCocoon2.java (line 20): public abstract class EsqlConnectionCocoon2 implements Connection { Don't know if there are any implications to doing this... Can anyone from the Cocoon team comment? This will only solve the error when *building* cocoon. But you will get an error when using the esql logicsheet because it will try to create an abstract instance then. An ugly work around should be to remove the ant tags for JDBC 3 compliance. (search in EsqlConnection and EsqlConnectionCocoon2 for @JDBC3_START@ and @JDBC3_STOP@) Could you please report back if this solves the problem (as I don't have 1.4 installed yet) ...looks like a ant/build.xml problem. Thanks -- Torsten - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Trouble with actions
map:match pattern=search.html map:act type=LogOn/ map:act type=CheckLogon map:generate src=/search/search2.xml type=serverpages/ map:transform src=/search/SearchLayout.xml/ map:serialize type=html/ map:act /map:match This gives me an error message when i want to call the page WARN(2002-05-18) 11:15.04:125 [cocoon ] (/cocoon/creon/search.html) Thread-12/sitemap_xmap: 404, try to process the error page org.apache.cocoon.ResourceNotFoundException: Resource not found file:/F:/Webserver/tomcat/webapps/cocoon/creon/ Remember if an action returns null (no Map at all) all child processing inside a pipeline is skipped and you are back matching the request. ...so since you have no other match for the request inside you pipelines you get a resource not found I also have a minor problem. map:match pattern=search.html map:act set=EnablerSession/ map:act type=CheckLogon map:generate src=/search/search2.xml type=serverpages/ map:transform src=/search/SearchLayout.xml/ map:serialize type=html/ map:act /map:match When I wnat to use this he tells me I'm usign deprecated API. But isn't this the way to use action sets? Where does he tell? -- Torsten - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Trouble with actions
This gives me an error message when i want to call the page WARN(2002-05-18) 11:15.04:125 [cocoon ] (/cocoon/creon/search.html) Thread-12/sitemap_xmap: 404, try to process the error page org.apache.cocoon.ResourceNotFoundException: Resource not found file:/F:/Webserver/tomcat/webapps/cocoon/creon/ Remember if an action returns null (no Map at all) all child processing inside a pipeline is skipped and you are back matching the request. ...so since you have no other match for the request inside you pipelines you get a resource not found Yes I know this. Nut this isn't the problem. The action is working fine and doesn't return null. The problem is he doesn't find the stylesheets when it's inside the action. I copied the wrong error message. org.apache.cocoon.ResourceNotFoundException: Resource not found file:/search/search2.xml When I use it without the action it works fine. Hm... why don't you use search/search2.xml (without slash) anyway? I also have a minor problem. map:match pattern=search.html map:act set=EnablerSession/ map:act type=CheckLogon map:generate src=/search/search2.xml type=serverpages/ map:transform src=/search/SearchLayout.xml/ map:serialize type=html/ map:act /map:match When I wnat to use this he tells me I'm usign deprecated API. But isn't this the way to use action sets? Where does he tell? It told me that I#m using deprectaed api, and that he can't compile the sitempat because of this. Could you please post the exact message / exception? Try to close the action set just before the close of match... -- Torsten - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Can't build Cocoon 2.0.1
Hello I can't build Cocoon 2.0.1 with Win 2K/JDK 1.4 RC/Ant 1.4.1. The errors are included below. I use the following command from the INSTALL file to build: .\build.bat -Dinclude.webapp.libs=yes -Dinstall.war=%TOMCAT_HOME%\webapps webapp This seems to because of new JDBC classes in JDK1.4. Unfortunately I haven't installed JDK 1.4 yet so I cannot help. But you could either switch back to to lastest JDK 1.3 or report this at bugzilla and wait until this gets resolved from someone having JDK1.4 installed :) -- Torsten - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Can't build Cocoon 2.0.1
On Sat, 16 Feb 2002, Nael Mohammad wrote: Not true, I have jdk 1.4.0 beta 3 with tomcat 4.02 and cocoon 2.01 running... It works fine! And on windows 2000 .. And you might want to modify the build.bat file to make sure you're using the right ANT directory. Hm... that's strange... it definitly is a JDBC 2/3 issue. Looks like ant thinks it has to compile with JDBC2 but the system *is* JDBC3 compliant... My 2 cents -- Torsten - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: loggers in cocoon
Hello ! This is pehaps a little bit off-topic, I have a question about the loggers of the java projects of apache. I use in my application log4j but cocoon use logKit from Avalon. Why another logger ? Is there any big differences, pros cons between this 2 loggers. Thanks Have a look into the archives... there where quite some discussions regarding the log system. Avalon has now a logger abstraction so you soon will be able to choose your prefered logger for cocoon. Hope this helps -- Torsten - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: XSP generated classes
Class1 and Class2 in both then: MY_PAGE1_xsp.class MY_PAGE1_xsp$Class1.class MY_PAGE1_xsp$Class2.class and MY_PAGE2_xsp.class MY_PAGE2_xsp$Class1.class MY_PAGE2_xsp$Class2.class will get generated. Obviously *Class1.class and *Class2.class are identical for each page. The implication of this (I'm sure) must be inefficiency. Questions: -- Does having many repeated (e.g. helper classes) provide a run-time inefficiency (i.e. in cases where that code -- for example Class1 and Class2 -- could reside in a library)? The trick is not to have a helper class for each xsp page but one for all using the specific (probably static) methods. I guess that's what you talking about - but again... this has already been done and became a common practice. Have a look at the sources... -- Torsten - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: XSP generated classes
[snip] This has come to light from using the ESQL logicsheet (for example) in Cocoon2. It generates EsqlConnection and EsqlQuery classes for each page that uses the ESQL logicsheet. BTW This isn't a critism of ESQL -- just an observation! :-) (in fact I think this may have been resolved in the lastest ESQL.) This has been resolved quite a while from now. You can and should use helper classes in your logicsheets if possible. -- Torsten - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AW: cocoon 2 unter linux
I bet you have :) Which release or CVS version of cocoon? what JDK? Got the repository created? (look for cocoon-files folder) Which version of Catalina? What's in the logs under WEB-INF/logs? ... -- Torsten - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: gzip svg output??
On Mon, 28 Jan 2002, Tsui, Alban wrote: Hi I am using Cocoon xsp etc. to generate svg graphics. Is there anyway that I can gzip the xml/svg file before piping it back to the browser? It's because the adobe svg plug-in can understand gzipped svg and I would like to take advantage of that for my huge svg chart. You could use mod_gzip when you have Apache in front of Cocoon. And I guess Servlet API 2.3 inroduced a filter concept so you could write your own filter for that. (Or of course use an existing impl;) ...if you are running a 2.3 complient Servlet Engine. -- Torsten - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Cocoon2 on JRun 3.0 installation problem
Just a few days ago someone posted a JRun installation instruction. You might want to search in the archieves. -- Torsten On Thu, 10 Jan 2002, Charles Levy wrote: I am getting the following error message when running the default Cocoon2 Web application on JRun 3.0. I would very much appreciate help with this problem. Thank you in advance. Chareles Levy 500 Internal Server Error /cocoon/: javax.servlet.ServletException: javax.xml.parsers.SAXParser: method getXMLReader()Lorg/xml/sax/XMLReader; not found java.lang.NoSuchMethodError: javax.xml.parsers.SAXParser: method getXMLReader()Lorg/xml/sax/XMLReader; not found at org.apache.avalon.framework.configuration.DefaultConfigurationBuilder. (DefaultConfigurationBuilder.java:37) at org.apache.cocoon.servlet.CocoonServlet.initLogger(CocoonServlet.java: 433) at org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:132) at allaire.jrun.servlet.JRunServletLoader.loadServletInstance(JRunServlet Loader.java, Compiled Code) at allaire.jrun.servlet.JRunServletLoader.loadServletInstance(JRunServlet Loader.java:190) at allaire.jrun.servlet.JRunServletLoader.loadServlet(JRunServletLoader.j ava:177) at allaire.jrun.servlet.JRunSE.getServletReference(JRunSE.java:1261) at allaire.jrun.servlet.JRunSE.runServlet(JRunSE.java, Compiled Code) at allaire.jrun.servlet.JRunRequestDispatcher.forward(JRunRequestDispatch er.java:88) at allaire.jrun.servlet.JRunSE.service(JRunSE.java:1131) at allaire.jrun.servlet.JvmContext.dispatch(JvmContext.java:330) at allaire.jrun.jrpp.ProxyEndpoint.run(ProxyEndpoint.java:354) at allaire.jrun.ThreadPool.run(ThreadPool.java, Compiled Code) at allaire.jrun.WorkerThread.run(WorkerThread.java, Compiled Code) - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Install Cocoon 2 on JRun 3.x
Ehm... Sidney, did you read correctly? Samer had no problem but wanted provide an installation instruction for JRun. Regards -- Torsten On Wed, 9 Jan 2002, Hsueh-Hsiang Lu wrote: Try the instructions at http://xml.apache.org/cocoon/faq.html#faq-24: How can I run Cocoon without X11. Why is a Display needed? I got this problem when installing cocoon 2 + tomcat. I think this may help! Sidney Lu On Tue, 8 Jan 2002, Samer Kanjo wrote: Torsten, Yesterday was my first venture into the open source world so I am very much uninitiated. I assume I would be making changes to the installing.xml document found in xdocs. I will spend some time learning how to use CVS and make the necessary changes. Samer --- Torsten Curdt [EMAIL PROTECTED] wrote: Great. Do you think you could modify the xdocs according to this and send a diff -u patch?! -- Torsten - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Install Cocoon 2 on JRun 3.x
All, I recently was able to install Cocoon 2 on JRun 3.0 and wanted to share the experience since it seems to be a popular topic. The following steps should get you up and running: 1. Deploy Cocoon to default server (or another server of your choice). See JRun Setup Guide for deployment instructions. 2. After deployment restart the default server. 3. Shutdown all servers. 4. Move xerces-1.4.4.jar and xml-apis.jar from cocoon WEB-INF/lib directory to default/lib directory. 5. Edit the default server local.properties file and modify the JVM Settings section: a. Find the classpath settings and add the following line: java.classpath={user.classpath}; {jrun.classpath};{ejb.classpath}; {servlet.classpath} b. Find user.javaargs settings and change to the following line: -Dorg.apache.cocoon.components.parser. Parser=org.apache.cocoon.components.parser. XercesParser 6. Edit the cocoon.xconf file and find the Parse section under General Components. Move the following line out of the comment block: parser class=org.apache.cocoon.components. parser.XercesParser/ 7. Start default server, check default-event.log to verify that the CocoonServlet was successfully started. You should not see an exceptions. 8. Test Cocoon. It should work. I just figured this out last night and have not fully exercised Cocoon to determine if there are any other problems. But at least it is a start. Great. Do you think you could modify the xdocs according to this and send a diff -u patch?! -- Torsten - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: XML parsing inside XSP
Hi all, I want to be able to parse a java string to an xml representation in a XSP. Looking at the source code for the StreamGenerator (which takes a http-post stream) i have written the following code to parse a xml string in xsp: Parser parser = null; try { org.xml.sax.InputSource inputSource = new org.xml.sax.InputSource( new StringReader(xmldata) ); this.getLogger().debug(Looking up parser); parser = (Parser)this.manager.lookup(Parser.ROLE); parser.setContentHandler(this.contentHandler); parser.setLexicalHandler(this.lexicalHandler); parser.parse(inputSource); } catch (Exception ex) { ex.printStackTrace(); this.getLogger().debug(ex.getMessage()); } finally { if (parser != null) { this.getLogger().debug(Releasing parser); this.manager.release((Component)parser); } } Be careful. The above will break the XSP SAX structure. You need to think of the events: -xsp:startDocument -xsp:startElement -xsp:endElement - ... some more ... // now your code -parser:startDocument -xsp:startElement -xsp:endElement - ... some more ... -parser:endDocument -xsp:endDocument You see?! start/end Document will be called twice. This is illegal! Wrapp the page ContentHandler inside a org.apache.cocoon.xml.EmbeddedXMLPipe before passing it to the parser. -- Torsten - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Cocoon Logging Issue...
On Wed, 19 Dec 2001, Roger I Martin PhD wrote: I am unfamiliar with HEAD branch; the default? Yes I just got a clean (renamed my old folder and checked out xml-cocoon2) cvs this morning. Had the logging error. Tried avalon 4.1. Then cvs'ed and built clean jakarta-avalon, jakarta-avalon-excalibur, jakarta-avalon-logit projects this morning. Still have logging error. I am using Apache Tomcat/4.0-b7 server. Should I upgrade it? Should I be using Jdk1.4? You don't need to build all this by yourself. Just do a fresh checkout from CVS, a build and than pop the war into your tomcat. Regards -- Torsten Roger - Original Message - From: Torsten Curdt [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, December 19, 2001 8:58 AM Subject: Re: Cocoon Logging Issue... Assuming you are talking about Cocoon2 HEAD branch. When did you try? I committed new avalon jars 2 days ago. This should have solved the problem. -- Torsten On Wed, 19 Dec 2001, Roger I Martin PhD wrote: Hi, I see an earlier posting Sylvain Wallez Quote { Hi team, Cocoon can't start when using the avalon jars that were recently updated. I've got the following exception at context startup (Tomcat output) : Starting service Tomcat-Standalone Apache Tomcat/4.0 Logging Error: Could not set up Cocoon Logger, will use screen instead ... I couldn't find any explanation for this, neither in CocoonServlet nor in Configuration. And switching back to avalon-framework/excalibur-4.0.jar solves the problem. Any clue, someone ? -- Sylvain Wallez Anyware Technologies - http://www.anyware-tech.com }//Unquote I am experiencing the same problem. Currently I am trying earlier avalon builds but nothing is a fix yet. Anyone else with this problem? Roger - Original Message - From: SANSONE, AARON M [Non-Pharmacia/1000] [EMAIL PROTECTED] To: Cocoon-Users (E-mail) [EMAIL PROTECTED] Sent: Thursday, December 13, 2001 3:01 PM Subject: Cocoon Logging Issue... All, We are running C2 on JRun and seeing the following error: Logging Error: Could not set up Cocoon Logger, will use screen instead org.apache.avalon.framework.configuration.ConfigurationException: cannot find LogTargetFactory class org.apache.cocoon.util.log.CocoonTargetFactory at org.apache.avalon.excalibur.logger.DefaultLogTargetFactoryManager.configure( Unknown Source) at org.apache.avalon.excalibur.logger.DefaultLogKitManager.setupTargetFactoryMa nager(Unknown Source) at org.apache.avalon.excalibur.logger.DefaultLogKitManager.configure(Unknown Source) at org.apache.cocoon.servlet.CocoonServlet.initLogger(CocoonServlet.java:435) at org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:132) at allaire.jrun.servlet.JRunServletLoader.loadServletInstance(../servlet/JRunSe rvletLoader.java:203) at allaire.jrun.servlet.JRunServletLoader.loadServletInstance(../servlet/JRunSe rvletLoader.java:161) at allaire.jrun.servlet.JRunServletLoader.loadServlet(../servlet/JRunServletLoa der.java:149) at allaire.jrun.servlet.JRunSE.getServletReference(../servlet/JRunSE.java:1705) at allaire.jrun.servlet.JRunSE.runServlet(../servlet/JRunSE.java:1231) at allaire.jrun.servlet.JRunRequestDispatcher.forward(../servlet/JRunRequestDis patcher.java:89) at allaire.jrun.servlet.JRunSE.service(../servlet/JRunSE.java:1552) at allaire.jrun.servlet.JRunSE.service(../servlet/JRunSE.java:1542) at allaire.jrun.servlet.JvmContext.dispatch(../servlet/JvmContext.java:364) at allaire.jrun.http.WebEndpoint.run(../http/WebEndpoint.java:115) at allaire.jrun.ThreadPool.run(../ThreadPool.java:272) at allaire.jrun.WorkerThread.run(../WorkerThread.java:75) We have all of the Jar files execpt the cocoon Jar in the Server/lib directory. Everything else appears to be working fine, however the logging is being directed to the JRun default logs as opposed to the WEB-INF/logs directory that I have specified with the logkit.xconf. Has anyone else experienced this error? Aaron M. Sansone - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED
Re: Cocoon Logging Issue...
Assuming you are talking about Cocoon2 HEAD branch. When did you try? I committed new avalon jars 2 days ago. This should have solved the problem. -- Torsten On Wed, 19 Dec 2001, Roger I Martin PhD wrote: Hi, I see an earlier posting Sylvain Wallez Quote { Hi team, Cocoon can't start when using the avalon jars that were recently updated. I've got the following exception at context startup (Tomcat output) : Starting service Tomcat-Standalone Apache Tomcat/4.0 Logging Error: Could not set up Cocoon Logger, will use screen instead ... I couldn't find any explanation for this, neither in CocoonServlet nor in Configuration. And switching back to avalon-framework/excalibur-4.0.jar solves the problem. Any clue, someone ? -- Sylvain Wallez Anyware Technologies - http://www.anyware-tech.com }//Unquote I am experiencing the same problem. Currently I am trying earlier avalon builds but nothing is a fix yet. Anyone else with this problem? Roger - Original Message - From: SANSONE, AARON M [Non-Pharmacia/1000] [EMAIL PROTECTED] To: Cocoon-Users (E-mail) [EMAIL PROTECTED] Sent: Thursday, December 13, 2001 3:01 PM Subject: Cocoon Logging Issue... All, We are running C2 on JRun and seeing the following error: Logging Error: Could not set up Cocoon Logger, will use screen instead org.apache.avalon.framework.configuration.ConfigurationException: cannot find LogTargetFactory class org.apache.cocoon.util.log.CocoonTargetFactory at org.apache.avalon.excalibur.logger.DefaultLogTargetFactoryManager.configure( Unknown Source) at org.apache.avalon.excalibur.logger.DefaultLogKitManager.setupTargetFactoryMa nager(Unknown Source) at org.apache.avalon.excalibur.logger.DefaultLogKitManager.configure(Unknown Source) at org.apache.cocoon.servlet.CocoonServlet.initLogger(CocoonServlet.java:435) at org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:132) at allaire.jrun.servlet.JRunServletLoader.loadServletInstance(../servlet/JRunSe rvletLoader.java:203) at allaire.jrun.servlet.JRunServletLoader.loadServletInstance(../servlet/JRunSe rvletLoader.java:161) at allaire.jrun.servlet.JRunServletLoader.loadServlet(../servlet/JRunServletLoa der.java:149) at allaire.jrun.servlet.JRunSE.getServletReference(../servlet/JRunSE.java:1705) at allaire.jrun.servlet.JRunSE.runServlet(../servlet/JRunSE.java:1231) at allaire.jrun.servlet.JRunRequestDispatcher.forward(../servlet/JRunRequestDis patcher.java:89) at allaire.jrun.servlet.JRunSE.service(../servlet/JRunSE.java:1552) at allaire.jrun.servlet.JRunSE.service(../servlet/JRunSE.java:1542) at allaire.jrun.servlet.JvmContext.dispatch(../servlet/JvmContext.java:364) at allaire.jrun.http.WebEndpoint.run(../http/WebEndpoint.java:115) at allaire.jrun.ThreadPool.run(../ThreadPool.java:272) at allaire.jrun.WorkerThread.run(../WorkerThread.java:75) We have all of the Jar files execpt the cocoon Jar in the Server/lib directory. Everything else appears to be working fine, however the logging is being directed to the JRun default logs as opposed to the WEB-INF/logs directory that I have specified with the logkit.xconf. Has anyone else experienced this error? Aaron M. Sansone - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: optimization time: cacheing
Hi, I've almost finished a rather big project using cocoon2. Now that cocoon2 is final and I'm using tomcat 4, performance is already great. But, since the web site will probably serve a 1000+ users, it oughta be even faster. Actually, the site is currently manually updated, and we had the mission of making it database generated. So it already has a steady user base, and we can't affort to deceive them. I'm using J2EE in a huge logicsheet. A setup() method is used defined in the logicsheet that gets into every _xsp.java generated source file. That method looks up a façade j2ee service that provides a bulk of methods to get the data we need in the form of java objects. Now, I've read somewhere that a hasChanged() method existed for xsp. This is what I need, but I'd like to know more about this. Now could someone tell me where to find the docs about this method ? I've also read about the notion of change points, i.e. the different factors that intervene in the evaluation of wether or not a page needs re-generation: parameters, browser, database update,... Somebody know where this is documented ? Thanks in advance, You can define a function for fine-tuning you XSP caching xsp:logic public boolean hasContentChanged( Request request ) { return(false); } /xsp:logic The above will cache your XSP forever - not very useful but you'll get the point ;) As well you might want to add a public long generateKey() { } function to improve you caching experience. Take a look into the caching docs. -- Torsten - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: optimization time: cacheing
Thanks for answering, Torsten ! Take a look into the caching docs. Yes but hey ! I don't know where they are ! Didn't find them on the web site anyway. Looks like the 1.8 docs do mention cacheing, but is that up-to-date ? Ups... sorry, assumed you were talking about 2.0 True - it was hasChanged in 1.8 -- Torsten - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: POI project needs help - serializing XML as Excel XLS
...so do you consider writing an Excel serializer then ?? ;) Would be a great thing! -- Torsten Sorry my choice is to fully implement the excel file format in java. We've already nearly finished. Thanks, Andy -- www.superlinksoftware.com www.sourceforge.net/projects/poi - port of Excel format to java http://developer.java.sun.com/developer/bugParade/bugs/4487555.html - fix java generics! - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [c2:ESQL] how to get tag from DB?
hello cocooners, what i have: in DB have soething like this: here goes link a href=blablalink 2 blabla/a what i wont: to get this anhor as tag not as here goes link lt;a href=blablagt;link 2 blablalt;/agt; this what i get when using esql:get-string ... when using esql:get-xml ... i get nothing. please gimi some hint, hubert. Well, get-xml needs it to be XML - but it is not. While get-string of course will quote the string. You should think of a different approach. You are trying to include a HTML fragment. An XML parser does not like HTML. -- Torsten - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: SV: What is Cocoon good for???
Regarding this problem in general... I was unable to get Cocoon to make an SQL request using JConnect (Sybase JDBC). There's an issue in the way the connection setup is attempted. However I use this JDBC driver in servlets all the time, so I just made a servlet output an XML document (be sure to set the content type) and included the URL for that servlet, with parameters, in my XML file. It's working perfectly. We use Sybase with JConnect in combination with C1 + C2 - no problems here -- Torsten - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [C2.0rc1] SLIGHTLY OFF TOPIC: Has anyone used Xalan extensions in Cocoon?
Have a look into exformula at sourceforge the xform2html.xsl uses it. -- Torsten -Original Message- From: Adrian Geissel [mailto:[EMAIL PROTECTED]] Sent: Friday, October 19, 2001 10:34 AM To: [EMAIL PROTECTED] Subject: [C2.0rc1] SLIGHTLY OFF TOPIC: Has anyone used Xalan extensions in Cocoon? Hi, I appologise in advance for posting to this mailing list, but I also think that the answer maybe of interest to the Cocoon community. What I am trying to do is to build a generic form within C2 that is defined in an XSP which is aggregated with another path that will contain the data which is to be plugged into the form, thereby allowing for improved form (UI) reuse across scenarios. In trying to do this, I need the ability to perform run-time XPath evaluation, rather than at programming time. I have found a Xalan extension function (luckily before I wanted to write my own :) that appears to do the trick. Its called xalan:evaluate() and takes an XPath expression as a parameter, which in turn contains an XPath expression, which is then evaluated and returned. I've read the docs, but can't get it to work. The docs say to use the namespace xmlns:xalan=http://xml.apache.org/xalan;. I'm calling the extension function in my xml2html transformation stylesheet as follows: xsl:stylesheet version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform; xmlns:xalan=http://xml.apache.org/xalan; xmlns:zdam=zenark.com/zdam exclude-result-prefixes=xalan xsl:template ... ... xsl:choose xsl:when test=@bind-to xsl:attribute name=valuexsl:value-of select=xalan:evaluate(@bind-to)//xsl:attribute /xsl:when xsl:otherwisexsl:attribute name=valuexsl:value-of select=normalize-space()//xsl:attribute/xsl:otherwise /xsl:choose ... /xsl:template /xsl:stylesheet The problem is that evaluate() returns '', rather than the expected real value. The returned XPath expression (in @bind-to) is correct. Any thoughts or experiences? Thanks in advance, Adrian - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Cocoon 2: Where to put xml/xsl files to?
have a look into the samples -Original Message- From: Alexander Schatten [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 18, 2001 11:32 AM To: cocoon-users Subject: Cocoon 2: Where to put xml/xsl files to? I used Cocoon 1 to publish XML files using xsl. this worked fine. now I installed Tomcat 4, Cocoon 2 as war in tomcat. basically works (on windows, not on linux...). however: I have no idea where to put the xml/xsl files to. I tried to use the webapps/cocoon directory as in C1, but C2 doesnt find the files?? any ideas? this seems to be a very basic problem. the C2 documentation is very long, but no short introduction covering these basic tasks; at least I didnt find them. thank you for comments in advance - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [Proposal] C2 + tomcat 4
Hello, It seems that c2 + tomcat4 is the most problematic issue for a couple of weeks already (while it is one of the most used configurations). I myself had a hard time installing it due to sitemap_xmap.java did not re-compile, well whatever. The funny thing that it's the most easiest combination, comparing to Tomcat 3.x, Resin, etc. The only thing you need to do is: - do not use JDK1.4, - do not use CLASSPATH - do not use /ext/ libraries - copy cocoon.war under tomcat/webapps and restart container. Correct me if I'm wrong here, but... I found TC4.0 + C2.0 the most easy-to-install combination. Most users have problem not with installation itself, but with building of cocoon.war for the first time. Some users have platform-secific issues (buggy JDK 1.3.1 implemetation under Linux which crashes, etc) I can second that... cannot be much easier -- Torsten - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Getting Started with XSP on Coccon2
Hello Coccon users! I'm going through the XSP documentation and try to do the following example (which, surprisingly, is not part of the supplied examples. I would recommend that releases should include a working setup of the documentations example so that one can see how they integrate with other, more complicated concepts such as sitemaps). Just have a look there are plenty of them now... !-- greeting2.xml -- ?xml version=1.0? ?cocoon-process type=xsp? ?cocoon-process type=xslt? You don't use PIs in C2. You use the sitemap for this. ?xml-stylesheet type=text/xsl href=greeting.xsl? Here as well. xsp:page xmlns:xsp=http://www.apache.org/1999/XSP/Core; xsp:logic String msg = Hello World!; /xsp:logic greeting xsp:exprmsg/xsp:expr /greeting /xsp:page But the output are just the html tags as specified in greeting.xsl. No hello World whatsoever :( I am using a sub sitemap for these examples. I suspect it is the culprit. Looks fine at the first glance... -- Torsten - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Getting Started with XSP on Coccon2
Hello Coccon users! I'm going through the XSP documentation and try to do the following example (which, surprisingly, is not part of the supplied examples. I would recommend that releases should include a working setup of the documentations example so that one can see how they integrate with other, more complicated concepts such as sitemaps). Just have a look there are plenty of them now... [snip] I am using a sub sitemap for these examples. I suspect it is the culprit. Looks fine at the first glance... I still don't know why this doesn't work then. I didn't suspect the PI's in the file being the problem but removed them nevertheless. Still, no result ie no output of the java string. I still suspect the sitemap not telling it to use XSP as processor. Could you have a second look? Why don't you just look under webapp/cocoon/docs/samples/xsp/simple.xsp? -- Torsten - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Getting Started with XSP on Coccon2
Torsten Curdt [EMAIL PROTECTED] writes: I still don't know why this doesn't work then. I didn't suspect the PI's in the file being the problem but removed them nevertheless. Still, no result ie no output of the java string. I still suspect the sitemap not telling it to use XSP as processor. Could you have a second look? Why don't you just look under webapp/cocoon/docs/samples/xsp/simple.xsp? Tried that but cannot get mine to work. I reckon it's a problem with the sitemap because it doesn't look like it's recognising/processing the XSP namespace. Does your simple.xsp sample work? Have you looked up the pipeline match for the simple.xsp sample? -- Torsten - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [C2] Again context:// and SourceResolver
Hi, C2ers! I'm still trying to understand how source resolver works with different types of paths and protocols. Can anybody please point me to some kind of documentation about the path resolution? I can't figure out why SourceResolver.resolve() returns different formats of paths. Is that expected behavior? Reading the mail archive did not give a clue of what context protocol supposed to be. E.g., see this posting from Berin: http://mailman.real-time.com/pipermail/cocoon-devel/2001-May/008073.html . I expect, that every path in a sitemap must be resolved relatively to servlet context and in this case using an absolute path like '/docs/index.xml' will be equal to 'context://docs/index.xml'. I think that the following behavior is more obvious to end-users: /path/file.xml -- points to a file from the webapp context root path/file.xml -- ponts to a file relative to the current request path This sounds very appealing and reasonable to me. and there is no need for a context:// protocol in this case. As I remember, there was a proposal for 'sitemap://' protocol, which can be used in sub-sitemaps, which could be used for sitemap-relative paths. Do I get something wrong? Any comments/suggestions? I have had a short look into the sitemap:// protocol. I think it would be extremely useful (to have at least such a functionality). When using subsitemaps (as we heavily do) it's the only way to keep your site quite modular. I'm not quite sure if we would need a new SourceFactory or an URLFactory for this? Problem is: AFAIK we need the current request to get path of the subsitemap. How would you like to implement your proposed way of URL handling? -- Torsten - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
C2: javax.servlet... in XSP
I need to import some classes from the javax.servlet.http package in my XSP pages. With Tomcat 4b3 the javax package is unfortunately not known to the Cocoon classloader. Copying the servlet.jar into WEB-INF/lib prevents Cocoon to start. (Tomcat does not does not like this) Shouldn't javax be available in all ServletEngines automagically or is this more a Cocoon classloader problem? Maybe I can provide an extra classpath only to the Cocoon classloader?? -- Torsten - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: C2: javax.servlet... in XSP
I need to import some classes from the javax.servlet.http package in my XSP pages. With Tomcat 4b3 the javax package is unfortunately not known to the Cocoon classloader. Copying the servlet.jar into WEB-INF/lib prevents Cocoon to start. (Tomcat does not does not like this) Shouldn't javax be available in all ServletEngines automagically or is this more a Cocoon classloader problem? Maybe I can provide an extra classpath only to the Cocoon classloader?? found that specifying an extra-classpath in the web.xml outside the WEB-INF/lib dir is fine for tomcat -- Torsten - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: C2: javax.servlet... in XSP
Just a guess : could you try adding servlet.jar in a directory that's not in the standard servlet classpath (e.g. WEB-INF/morelibs) and add it in the extra-classpath servlet parameter (e.g. WEB-INF/morelibs/servlet.jar) ? This did it. Thanks -- Torsten - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [c2][patch] RE: ESQL : No, my problem isn't with mutual exclusivity
Could you grab the current version from CVS and send me your esql page and output. Up to know I cannot reproduce your problems... Hi Torsten, I got the snapshot from July 30th, 04:15 and run into the same problem. One more problem is that if no rows are selected I even don't get the header and footer in the output. Here is my esql.xsp: Hm... ?xml version=1.0 encoding=UTF-8? xsp:page xmlns:xsp=http://apache.org/xsp; xmlns:esql=http://apache.org/cocoon/SQL/v2; page esql:connection esql:poolmy_pool/esql:pool esql:execute-query esql:queryselect name, number from employee /esql:query esql:results header nameEmpName/name numberEmpNumber/number /header esql:row-results first-level esql:get-columns/ /first-level /esql:row-results esql:no-results userno Values available/user /esql:no-results footercopyright/footer /esql:results /esql:execute-query /esql:connection /page /xsp:page Looks ok... I hope that you have any idea why this happens only to me. Strange... could you send me the java code from your repository off the list. I'll have a look. -- Torsten - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [c2][patch] RE: ESQL : No, my problem isn't with mutual exclusivity
page esql:connection esql:poolmy_pool/esql:pool esql:execute-query esql:queryselect name, number from employee /esql:query esql:results header nameEmpName/name numberEmpNumber/number /header esql:row-results first-level esql:get-columns/ /first-level /esql:row-results esql:no-results userno Values available/user /esql:no-results footercopyright/footer /esql:results /esql:execute-query /esql:connection /page /xsp:page Looks ok... Ah.. missed it! Your no-results is under results that's wrong! You probably want something like this: page esql:connection esql:poolmy_pool/esql:pool esql:execute-query esql:queryselect name, number from employee /esql:query header nameEmpName/name numberEmpNumber/number /header esql:results esql:row-results first-level esql:get-columns/ /first-level /esql:row-results /esql:results esql:no-results userno Values available/user /esql:no-results footercopyright/footer /esql:execute-query /esql:connection -- Torsten - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [c2][patch] RE: ESQL : No, my problem isn't with mutual exclusivity
Actually I use the esql.xsl coming with the Cocoon-2.0b2, 1.4.2.5 2001/07/24 11:37:57 but I inserted at line 532 the else brunch which you have posted. Maybe the lines 521-523 are the problem because esql:no-resluts will be called after each last row. no, the if-else is done after each resultset. (usually there is only one) By the way is line 504 correct? if(_esql_query.results) Because this is a ResultSet and not a boolean, don't should it compare against null? Or is this not pure java? Have a closer look - it is not a resultset. it's the result of the resultset.execute(). Could you grab the current version from CVS and send me your esql page and output. Up to know I cannot reproduce your problems... -- Torsten - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [c2][patch] RE: ESQL : No, my problem isn't with mutual exclusivity
Hi Thorsten, I followed the discussion about esql:no-results In the beta1 release it was ok, if no rows the no-results content was in the tree, otherwise not. But now it is inverted. With beta2 also after applying your patch to esql.xsl I get the content of no-results if the query returns results and the no-results content is not in the tree in case of really no results. There is one other point confusing me: in esql.xsd I find: element name=esql:no-results minOccurs=0 maxOccurs=1 annotation documentationThis element's children are instantiated in the result tree for each row in the resultset/documentation /annotation /element For each row? Did I misunderstand the meaning of no-results? No, you did not. (a bug in the docuentation ;) Maybe could tell me which revision of esql.xsl you have? Works everything fine here... regards -- Torsten - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[c2][patch] RE: ESQL : No, my problem isn't with mutual exclusivity
Hello again Torsten, if my query didn't return any row, a call to the execute() method returns false, right? No that's wrong. Is tells you if you got at least one ResultSet _object_ not if this ResultSet contains a row at all! Therefore, for a no-results situation, the code resulting from the application of the esql:no-results template is never reached - this is what I understand from reading the java code below. Am I right?! I guess it's highly probable that I'm grossly wrong, but this is the only place in the esql.xsl file where the template is apllied. I don't wan't to execute java code when I do an update or insert, but when my SELECT title FROM test WHERE title = 'a title' query returns no rows - for this 3 situations, the execute() method's will return false and not a ResultSet Object. What am I missing?!?!? Conclusion : I need mutual exclusivity between 'no-results' and 'update-results' (mutual exclusivity between 'no-results' and 'results' is assured by the true/false return values of the execute() method). Ok... got you! Patch is attached :) Thanks for the reporting... -- Torsten esql.diff - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: include xsp:expr inside attributes?
...much easier mynode xsp:attribute name=myattrxsp:exprfoo.getBar()/xsp:expr/xsp:attribute /mynode -- Torsten -Original Message- From: Anthony Diodato [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 17, 2001 5:44 PM To: '[EMAIL PROTECTED]' Subject: RE: include xsp:expr inside attributes? xsp:logic Element mynode = document.createElement(mynode); mynode.setAttribute(myattr, foo.getBar()); xspCurrentNode.appendChild(mynode); /xsp:logic -Original Message- From: Seth Ladd [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 17, 2001 11:39 AM To: [EMAIL PROTECTED] Subject: include xsp:expr inside attributes? Hello, I'm not sure how to accomplish the following. I was hoping someone would point me in the right direction? I would like to do the following: mynode myattr=xsp:exprfoo.getBar()/xsp:expr/ But, of course, that is not wellformed XML. Is there a way to accomplish that is XSP? Thanks very much, Seth - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Visit our website at http://www.p21.com/visit The information in this e-mail is confidential and may contain legally privileged information. It is intended solely for the person or entity to which it is addressed. Access to this e-mail by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution, action taken, or action omitted to be taken in reliance on it, is prohibited and may be unlawful. If you received this e-mail in error, please contact the sender and delete the material from any computer. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: C2 and JRun
We were running C2 on JRun for a while. After some installation troubles it worked just fine -- Torsten -Original Message- From: Anthony Diodato [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 17, 2001 5:40 PM To: '[EMAIL PROTECTED]' Subject: C2 and JRun Im wondering if Cocoon 2 has been tested with JRun, and if there is any docs on this. If not, does anyone know if JRun will be a supported Servlet Engine?? Anthony Diodato Webmaster - Educational Services Prophet 21, Inc. 19 West College Avenue Yardley, PA 19067 1-800-776-7438, ext. 4600 Fax: 215-321-8014 [EMAIL PROTECTED] http://www.p21.com/ Prophet 21 -- Powering the Distribution Industry for the Digital Age For the latest press releases from Prophet 21 -- http://www.p21.com/press/press.html * 2/12/2001 - Trading Partner Connect Offers Enterprise-to-Enterprise (E2E) Commerce * 2/9/2001 -- Prophet 21 CommerceCenter 8.0 is Now Available * 2/9/2001 -- Prophet 21 Upgrades and Enhances Prophet 21 Acclaim For the latest articles on Prophet 21 http://www.manufacturing.net/magazine/id/archives/2001/ind010.02/techupdate. htm http://www.manufacturing.net/magazine/id/develop/techmain01.1.htm http://www.manufacturing.net/magazine/id/archives/2000/ind1201/news.htm Visit our website at http://www.p21.com/visit The information in this e-mail is confidential and may contain legally privileged information. It is intended solely for the person or entity to which it is addressed. Access to this e-mail by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution, action taken, or action omitted to be taken in reliance on it, is prohibited and may be unlawful. If you received this e-mail in error, please contact the sender and delete the material from any computer. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: C2 and JRun
some jar collisions... now you may have a look into the installation instruction to prevent the hassle... -- Torsten -Original Message- From: Anthony Diodato [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 17, 2001 5:55 PM To: '[EMAIL PROTECTED]' Subject: RE: C2 and JRun What kind of troubles did you run into. -Original Message- From: Torsten Curdt [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 17, 2001 11:53 AM To: [EMAIL PROTECTED] Subject: RE: C2 and JRun We were running C2 on JRun for a while. After some installation troubles it worked just fine -- Torsten -Original Message- From: Anthony Diodato [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 17, 2001 5:40 PM To: '[EMAIL PROTECTED]' Subject: C2 and JRun Im wondering if Cocoon 2 has been tested with JRun, and if there is any docs on this. If not, does anyone know if JRun will be a supported Servlet Engine?? Anthony Diodato Webmaster - Educational Services Prophet 21, Inc. 19 West College Avenue Yardley, PA 19067 1-800-776-7438, ext. 4600 Fax: 215-321-8014 [EMAIL PROTECTED] http://www.p21.com/ Prophet 21 -- Powering the Distribution Industry for the Digital Age For the latest press releases from Prophet 21 -- http://www.p21.com/press/press.html * 2/12/2001 - Trading Partner Connect Offers Enterprise-to-Enterprise (E2E) Commerce * 2/9/2001 -- Prophet 21 CommerceCenter 8.0 is Now Available * 2/9/2001 -- Prophet 21 Upgrades and Enhances Prophet 21 Acclaim For the latest articles on Prophet 21 http://www.manufacturing.net/magazine/id/archives/2001/ind010.02/techupdate. htm http://www.manufacturing.net/magazine/id/develop/techmain01.1.htm http://www.manufacturing.net/magazine/id/archives/2000/ind1201/news.htm Visit our website at http://www.p21.com/visit The information in this e-mail is confidential and may contain legally privileged information. It is intended solely for the person or entity to which it is addressed. Access to this e-mail by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution, action taken, or action omitted to be taken in reliance on it, is prohibited and may be unlawful. If you received this e-mail in error, please contact the sender and delete the material from any computer. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Visit our website at http://www.p21.com/visit The information in this e-mail is confidential and may contain legally privileged information. It is intended solely for the person or entity to which it is addressed. Access to this e-mail by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution, action taken, or action omitted to be taken in reliance on it, is prohibited and may be unlawful. If you received this e-mail in error, please contact the sender and delete the material from any computer. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [C2] Redirects
Anders Lindh wrote: Migrating from C1 becomes so much more complicated when XSP redirects are not available... I agree. There's no way I can port my old Cocoon1 apps without redirects being available conditionally (i.e. depending on user input). Perhaps this is possible with the Sitemap, but I don't know how. You should definitly have a look into actions... -- Torsten - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [C2] Possible Solution for PDF Bug with IE 5.x !??
I don't think it has anything to do with content-length, it has to do with the filename extension. Sorry, but this cannot be true since in C2 the filename extension is .pdf as declared in the sitemap. BTW: Could you guys please fight out this browser war via email. It is not very productive on the list in any way. -- Torsten - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [C2] Possible Solution for PDF Bug with IE 5.x !??
And a second: I downloaded your example from ulim/iebug and experimented a bit with it. If i save the generatet pdf in a file and put it in the same directory and call it, it works in all browsers, including IE 5.5. How do you explan this? There should be no difference between the streams? As I said, IE does some checks on the stream, if it arrives via HTTP, which it doesn't do, when opening a file from the filesystem. No, you misunderstood me. I saved the PDF stream in a file, put it in the webapps/Context-directory and served it using tomcat via HTTP, same context and server as the cocoon output. Ever tried this? Try it with your bug sample, it takes just some seconds. How do you explain this difference? AFAI remember the thing that really solved the IE-PDF problems in C1 was setting the Content-Length header. This would fit in the picture you described... But this needs to be double-checked... But AFAI understood setting a Content-Length header in C2 could be a problem because we have streams - no documents. So what about creating the cache object first and then serving the request from cache - so we know about the size of the object. Maybe Carsten can tell if this possible at all? -- Torsten - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: C2: xsp caching
Could you show us the corresponding sitemap snipped? AFAIK serverpages are not cached by default. (had no problems myself with that...) Changes in the xsp file result in a recompilation... -- Torsten -Original Message- From: Daniel Pfuhl [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 19, 2001 12:18 PM To: User CocoonList Subject: C2: xsp caching Hello How can I turn off caching of my xsp-pages? in my current status of developing xsp-pages with esql i need no caching. I have to resart my tomcat everytime i change my xsp-file. otherwise my changes wan't be recognized. can somebody show me a workaround or is there an option to switch? thanks daniel - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: C2: xsp caching
Hm.. looks good to me... sure it's no db caching? try a commit; before your query. Hi here is the snipped from my sitemap: map:match pattern=xsp/esql map:generate type=serverpages src=docs/samples/xsp/esql.xsp/ map:transform src=stylesheets/myown/default.html.xsl /map:transform map:serialize/ /map:match I also attached my xsp file and the xsl for this. It would help me a lot to find out how to change caching options. in cocoon.xconf replace all Caching[Whatever] with NonCaching[Whatever] Hope this helps... - Torsten thanx in advance daniel --- Torsten Curdt [EMAIL PROTECTED] schrieb: Could you show us the corresponding sitemap snipped? AFAIK serverpages are not cached by default. (had no problems myself with that...) Changes in the xsp file result in a recompilation... -- Torsten -Original Message- From: Daniel Pfuhl [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 19, 2001 12:18 PM To: User CocoonList Subject: C2: xsp caching Hello How can I turn off caching of my xsp-pages? in my current status of developing xsp-pages with esql i need no caching. I have to resart my tomcat everytime i change my xsp-file. otherwise my changes wan't be recognized. can somebody show me a workaround or is there an option to switch? = Daniel Pfuhl mailto:[EMAIL PROTECTED] __ Do You Yahoo!? Gesendet von Yahoo! Mail - http://mail.yahoo.de - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: C2: xsp caching
Sorry, only experienced this in VERY old versions of cocoon. Try to remove the file from the repository then... -- Torsten -Original Message- From: Daniel Pfuhl [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 19, 2001 2:58 PM To: [EMAIL PROTECTED] Subject: RE: C2: xsp caching Hello again, I don't think that's an db cahcing issue. because i'm changing the structure of my xsp-file an this will not be seen. i also can change the structure to some not valid one and cocoon will serve the old one without shouting at me :-( maybe some tomcat related error? daniel --- Torsten Curdt [EMAIL PROTECTED] schrieb: Hm.. looks good to me... sure it's no db caching? try a commit; before your query. Hi here is the snipped from my sitemap: map:match pattern=xsp/esql map:generate type=serverpages src=docs/samples/xsp/esql.xsp/ map:transform src=stylesheets/myown/default.html.xsl /map:transform map:serialize/ /map:match I also attached my xsp file and the xsl for this. It would help me a lot to find out how to change caching options. in cocoon.xconf replace all Caching[Whatever] with NonCaching[Whatever] Hope this helps... - Torsten thanx in advance daniel --- Torsten Curdt [EMAIL PROTECTED] schrieb: Could you show us the corresponding sitemap snipped? AFAIK serverpages are not cached by default. (had no problems myself with that...) Changes in the xsp file result in a recompilation... -- Torsten -Original Message- From: Daniel Pfuhl [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 19, 2001 12:18 PM To: User CocoonList Subject: C2: xsp caching Hello How can I turn off caching of my xsp-pages? in my current status of developing xsp-pages with esql i need no caching. I have to resart my tomcat everytime i change my xsp-file. otherwise my changes wan't be recognized. can somebody show me a workaround or is there an option to switch? = Daniel Pfuhl mailto:[EMAIL PROTECTED] __ Do You Yahoo!? Gesendet von Yahoo! Mail - http://mail.yahoo.de - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [C2] sub sitemap: Resource not found
Which version of Cocoon are you using exactly? -- Torsten Hi, I have Cocoon 2 installed and running on my Linux System with Tomcat 3.2.2. Most of the samples seems to work but a number of them do not. For example, when I click on 'sub sitemap', I get: Cocoon 2 - Resource not found type resource-not-found message Resource not found description The requested URI /cocoon/sub/welcome was not found. sender org.apache.cocoon.servlet.CocoonServlet source Cocoon servlet request-uri /cocoon/sub/welcome path-info sub/welcome Since I am brand-spanking new at this, can anyone give me any pointers on how I might troubleshoot this? Chris - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to pass sitemap parameters to XSP
Hi Cocooners! First congratulations on exelent work. Cocoon2 is shaping up quite nicely. What I would like to do is to pass parameter into XSP from sitemap. Here is a part of sitemap: map:match pattern=funsms/*) map:generate type=serverpages src=docs/funsms/category.xsp map:parameter name=category_id value={1}/ /map:generate map:serialize type=xml/ /map:match How can I get hold of category_id in XSP... Sorry if this is RTFM. In the XSP try: String fromSitemap = parameters.getParameter(category_id,default); Also sitemaps compiles in background and replaces old sitemap only after compilation finishes? If so can it be turned off since it is kinda irritating while developing. In cocoon.xconf set your sitemap reloading from asynchron to synchron. -- Torsten - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Using forte2.0 IE - Introspection Error
use the external compiler... (e.g.jdk1.3) the internal one gave us some strange error, too. -- Torsten -Original Message- From: Michael Gerzabek [mailto:[EMAIL PROTECTED]] Sent: Monday, June 11, 2001 1:55 PM To: [EMAIL PROTECTED] Subject: Using forte2.0 IE - Introspection Error I get an error from the fastjavac: /org/apache/cocoon/generation/Generator has incorrect version 46, should be 45 Does anyone know what this means? The introspector even doesn't show me the methods of the classes in the cocoon-2.0b.jar file. Michael - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]