RE: redirect at the end of a pipeline/match

2003-06-05 Thread Neil Palmer
using Cocoon for any content presentation. I've only been using Cocoon (2.0.4) for a couple of months, so if there's a better way of doing this, I'm all ears. While the redirect after the serialization isn't critical, it'd certainly be nice. cheers, neil. -Original Me

TextParserGenerator question

2003-03-27 Thread Neil Davies
Is there actually a working TextParserGenerator? I've not seen any examples of anyone using it on the web. I can't get Cocoon to recognise it in the sitemap decleration. Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For ad

Re: error trying to use TextParserGenerator

2003-03-26 Thread Neil Davies
Is there a detailed exception in the logs under WEB-INF/logs/*.log ? (Perhaps you must set the log level higher) With this exception I can only draw the conclusion, that the generator have problems with the configuration within the components section. Stephan. Okay. I have looked at the error.lo

error trying to use TextParserGenerator

2003-03-26 Thread Neil Davies
Apologies if this has been answered previously but I'm a relative newbie to Cocoon2. I have a structured text file which is exported from a database (non SQL, a complete mess so there's no chance of using standard xsl logic to extract data) and need to convert it into ead-xml. I am trying to

RE: Cocoon-2.1-dev build fails

2003-03-25 Thread neil
ocoon) when I also tried -Dexclude.deprecated=yes). Cheers, Neil Bacon -Original Message- From: Geoff Howard [mailto:[EMAIL PROTECTED] Sent: Wednesday, 26 March 2003 3:06 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: Cocoon-2.1-dev build fails Neil, I can't repr

Re: Cocoon-2.1-dev build fails

2003-03-25 Thread neil
Re: http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=104862608911688&w=2 I like the way the build tries to let you include just what you want, but there are a few little problems with it. Yesterday I checked out the CVS HEAD and now using jdk-1.4.1, windows2000/cygwin ... 1. I tried excluding b

Re: writing excel files with merge and coloured cells

2003-03-11 Thread neil
In reply to: http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=104725042020751&w=2 Although gnumeric xml allows any colour to be specified, excel only has a 56 colour palette. This page shows excel's default palette (some details depend on the version): http://www.mvps.org/dmcritchie/excel/col

patch for and with Sybase and MS SQL server

2003-02-17 Thread neil
The new implementation for and in src/java/org/apache/cocoon/components/language/markup/xsp/AbstractEsqlConnection.java is pretty neat, especially for oracle. 1) Unfortunately, Sybase Adaptive Server Enterprise does not support "select TOP", only Sybase Adaptive Server Anywhere. Both use url

Cocoon generated Excel data and IIS with WebDav

2003-01-27 Thread neil
People generating dynamic Excel data and using MS IIS may hit this problem. I've posted it because it affects cocoon users, even though its not really anything to do with cocoon. Environment --- MS IIS v5 web server with dynamic content redirected to tomcat/cocoon. Problem --- Some

Re: Excel needs filename?

2003-01-27 Thread neil
Problem: IE not recognizing Excel data generated by cocoon as being an Excel spreadsheet. 1) This is due to a bug in HSSFSerializer.java, where the mime-type is hardcoded as "vnd.ms-excel" (the correct mime-type for Excel is "application/vnd.ms-excel"). Once this is fixed it works fine wi

Re: Does Cocoon work in Jetty?

2002-12-04 Thread neil
Yes I've got cocoon-2.0.3_branch and 2.1-dev working in both jetty-4.2.2 and tomcat-4.1.12 with no hassles (but I'm not using JSP or jboss). I do get this exception when jetty starts - maybe its related to your problem: 10:20:42.207 WARN!! org.mortbay.util.MultiException[java.lang.ClassNotFoundE

Re: HSSFSerializer mime-type

2002-12-03 Thread neil
"Andrew C. Oliver" <[EMAIL PROTECTED]> wrote: > IIRC this is configurable... > neil wrote: >> The HSSFSerializer hardcodes the mime-type as "vnd.ms-excel" whereas I think it \ >> should be "application/vnd.ms-excel" (at lease that works better

HSSFSerializer mime-type

2002-12-02 Thread neil
The HSSFSerializer hardcodes the mime-type as "vnd.ms-excel" whereas I think it should be "application/vnd.ms-excel" (at lease that works better for me). Without this I got erratic behavior with IE/Excel - sometimes the spreadsheet would appear inside the IE window (excel inside IE) and othertime

Re: Problem with a store procedure in a XSP page

2002-11-24 Thread neil
Since the 2.0.3 release there have been fixes applied to esql in the cocoon_2_0_3_branch (that's a CVS tag). These fixes are for stored procedure support, so I suggest you try them. I've been using them with stored procs in Oracle 8i, SQL Server (7 & 2000), Sybase (ASA & ASE) and it works great.

XSP caching with 2.1-dev

2002-11-21 Thread neil
to return org.apache.cocoon.caching.DeltaTimeCacheValidity(30, 0) to cache for 30 mins. Is there a new substitute for this or do I have to write my own? P.S. I like the look of the XForm & flow stuff and the performance of xsltc! Cheers

Re: Redirect in XSP

2002-11-09 Thread Neil A
Actions can't seem to read or transform the pipeline xml, they can only read and act on request parameters. XSLT transformers can't create sitemap parameters. So I'm a bit stuck. Can anyone fill in the gap? Thanks, Neil. On Saturday, November 9, 2002, at 03:23 AM, Art

Re: Redirect in XSP

2002-11-08 Thread Neil A
o use. Can anyone help us both? Thanks, Neil. On Friday, November 8, 2002, at 09:41 AM, Witold TreliƄski wrote: Hi! I have a question. How to make o redirection in XSP from one page to other depeneding on some code in ? I tried url="any"/> and it

RE: avalon.excalibur ping of oracle fails

2002-10-15 Thread neil
In cocoon.xconf, the oradb attribute in select 1 from dual If you don't specify it defaults to "select 1", which seems to be OK for everything except Oracle. -Original Message- From: neil [mailto:[EMAIL PROTECTED]] Sent: Tuesday, 10 September 2002 3:23 PM To:

fix EncodeURLTransformer to process page that generates the session

2002-09-18 Thread neil
| !fred.equals(response.encodeURL(fred)) ) { then it works for this page too. Maybe there's a neater way to do the same thing? Without this fix a workaround would be to create the session when the login form is generated instead of when its posted.

avalon.excalibur ping of oracle fails

2002-09-09 Thread neil
Hi, Has anyone using oracle already solved this one? Although my app works OK, I'm getting debug messages (shown below) indicating that the database "ping" fails so cocoon is dicarding the connection and creating a new one. I guess its going slower than it could due to this. I do have

RE: esql patch for paging and ResultSets from Oracle stored procs

2002-08-18 Thread neil
-EsqlQuery.getType("") + + Types. -Original Message----- From: neil [mailto:[EMAIL PROTECTED]] Sent: Monday, 19 August 2002 9:57 AM To: '[EMAIL PROTECTED]'; Cocoon-Users (E-mail) Subject: RE: esql patch for paging and ResultSets from Oracle stored procs I woul

RE: esql patch for paging and ResultSets from Oracle stored procs

2002-08-18 Thread neil
class. SQLTransformer has to use reflection because its acting as an interpreter and executing the queries directly rather than generating code to do so. Regards, Neil. - Please check that your question has not already

RE: esql patch for paging and ResultSets from Oracle stored procs

2002-08-16 Thread neil
ogged, and something else thrown). Also, I don't think paging works within esql:call-results/esql:use-results e.g.: sessionData.getRow() - 1 sessionData.getRowsPerPage() I'll look into this one next week. Regards, Neil. -

RE: esql patch for paging and ResultSets from Oracle stored procs

2002-08-08 Thread neil
escription applies: With EsqlQuery.position initialised to -1: I asked for 3 rows starting at 1 and got 4 rows starting at 1 I asked for 3 rows starting at i > 1 and got 3 rows starting at i + 1 with position initialised to 0 it works as expected. This was without any . The "else"

patch to fix NullPointerException from

2002-06-03 Thread neil
e's version CVS Id: XSPRequestHelper.java,v 1.11 2002/02/27 05:33:50 vgritsenko Exp * @version CVS $Id: XSPRequestHelper.java,v 1.1 2002/06/04 04:52:31 neil Exp $ */ public class XSPRequestHelper { @@ -278,15 +289,18 @@ String[] values = request.getParameterValues(name);

RE: esql v1.22 multiple returned update counts and ResultSets

2002-05-22 Thread neil
eak; This allows you to reuse the same if you want to. Likewise for and . Its not "difficult to work with" and I think its an option worth having even though its not strictly necessary. Cheers, Neil. - Please

RE: esql v1.22 multiple returned update counts and ResultSets

2002-05-21 Thread neil
Please > > read the javadoc carefully any try experimenting with a simple standalone > > test programme. > > Neil, please look at the actual code. EsqlQuery.getMoreResults() does a lot > more than Statement.getMoreResults(). OK. I didn't spot that your change depends on updates to

RE: esql v1.22 multiple returned update counts and ResultSets

2002-05-19 Thread neil
Re: http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=102165197728849&w=2 > note that you are always calling getUpdateCount on the same statement. will > it's state be changed?!? That would be indeed a ugly behaviour... The code I included in the original post is abridged working code that corre

esql v1.22 multiple returned update counts and ResultSets

2002-05-16 Thread neil
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 a

DTD for the sitemap

2002-04-22 Thread neil
Has anyone come up with a reasonably rigorous DTD for the sitemap? I know its been talked about at various times, but I haven't found one yet. I've cobbled together the following DTD, which I find handy with emacs xml (psgml) mode. It handles the cocoon-2.0.2 sitemap OK and should be handy with ot

SQLTransformer bug that appears under load

2002-04-08 Thread neil
I've been load testing my cocoon app with jmeter and I think I've found a SQLTransformer bug. My (MS SQL Server) JDBC driver was complaining about attempts to use various objects after they had been closed (Connections, ResultSets and Statements). In Query.execute() I think this bit should be rem

build error: cocoon-2.0.2, jdk-1.4, Win2000

2002-03-26 Thread neil
In a dos box: set PATH=C:\WINNT\system32;C:\WINNT set CLASSPATH= build clean build First error: C:\Neil\cocoon-2.0.2\build\cocoon\src\org\apache\cocoon\components\language\ mark up\xsp\EsqlConnection.java:66: class org.apache.cocoon.components.language.marku p.xsp.EsqlConnection must be

Object Oriented Cocoon

2002-03-01 Thread Ellis, Neil (FNB)
path already or if anyone has any views. I am very new to cocoon and am in search of the right platform for this venture. Many regards Neil Ellis - Please check that your question has not already been answered in the

RE: sunRise tutorial here

2002-02-28 Thread Ellis, Neil (FNB)
tomcat 4.0.1 > > Ellis, Neil (FNB) wrote: > > Hi I've just installed cocoon on a linux box redhat 7.1 with sun jdk, > tomcat > > 4.0 and got this ... I've searched the web to no avail... any ideas? > > I got a 500 error with: > > javax.servlet.Servl

RE: sunRise tutorial here

2002-02-28 Thread Ellis, Neil (FNB)
Hi I've just installed cocoon on a linux box redhat 7.1 with sun jdk, tomcat 4.0 and got this ... I've searched the web to no avail... any ideas? I got a 500 error with: javax.servlet.ServletException: Servlet.init() for servlet Cocoon2 threw exception at org.apache.catalina.core.StandardW

RE: Calling MS SQL stored procedure

2002-02-21 Thread neil
I'm using instead of IN parameters: { ? = call sp( '', ) } The MS JDBC driver had trouble parsing a query with new lines in it, but at least it gets by with one long line. In reply to: http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=101429060624988&w=2

Re: Calling MS SQL stored procedure

2002-02-20 Thread neil
ease share any improvements you may have. Cheers, Neil. Subject: Calling MS SQL stored procedure From: "Miller, Grant" <[EMAIL PROTECTED]> Date: 2002-02-20 15:45:47 Hi, I'm having a problem calling an ms sql server stored procedure with the sql transf

streaming large pdf reports

2002-02-19 Thread neil
I'm trying to get large PDF reports streaming to the browser so that: 1. not too much memory is used (we can support multiple users doing reports) 2. we can support arbitrarily large reports 3. the user sees data dribbling onto their screen rather than being left to wonder if anything is happen

Example use of writeDOMsession / readDOMsession

2002-02-11 Thread neil
e? 3. Has anybody got a better way of doing it? Cheers,

patch to SQLTransformer for result sets returned from stored procedures

2002-02-08 Thread neil
F\lib\AAnewstuff.jar and cocoon picks it up from there. Cheers, Neil. Result of: LC_ALL=C TZ=UTC0 diff -Naurb SQLTransformer-1.24.java SQLTransformer.java --- SQLTransformer-1.24.javaThu Feb 7 01:23:52 2002 +++ SQLTransformer.java Fri Feb 8 05:25:10 2002 @@ -35,7 +35,7 @@ * @author m

RE: XSP in a stylesheet help

2001-12-19 Thread neil
Wouldn't it be easier to compute the row number in the stylesheet instead of XSP? I think will give you the 1 based index of the current element e.g. which might be what you need. Otherwise you could define a variable and increment it to count the rows. Great XSLT examples are a

ArrayIndexOutOfBoundsException from filter transform (FilterTransformer)

2001-12-11 Thread neil
I've got something working with (from sitemap.xmap): but if I change the "2" to a "1" I get (amongst heaps of other stack trace lines): original exceptionOriginal exception : java.lang.ArrayIndexOutOfBoundsException at org.apache.xalan.serialize.SerializerToHTML.endEleme