Re: how to get the user agent in an xsp page?

2004-01-03 Thread Simon Mieth
On Sat, 03 Jan 2004 01:54:59 +0100 Davide [EMAIL PROTECTED] wrote: Hi, my question il simple: how to get the user agent in an xsp page? Best Regards, Davide Hi, xsp-request:get-header name=user-agent as=xml/ or this xsp:exprrequest.getHeader(user-agent)/xsp:expr Best regards,

esql logicsheet and date

2004-01-03 Thread Davide
Hi! I need to use esql to perform a query to put some data in a mysql db; In the used table i have a Date column with timestamp(14) data type In my xsp i get the date by xsp:exprnew Date()/xsp:expr but i think the format is very differen. How can i use a compatible format? Are there some

Re: Python Script Generator

2004-01-03 Thread Laurent Mauron
I wrote a short wiki entry a couple of weeks ago. http://wiki.cocoondev.org/Wiki.jsp?page=PythonScriptGenerator I would be glad to add a more detailed entry in the official doc. Regards, L. - Original Message - From: Joerg Heinicke [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday,

problems with esql logicsheet and insert

2004-01-03 Thread Davide
Hi; i have the following xsp to perform an insert into a table xsp:includejava.sql/xsp:include xsp:logic java.util.Date now=new java.util.Date(); /xsp:logic esql:connection esql:poolmcnavigator/esql:pool esql:execute-query esql:queryInsert into comments (Comment_ID, User_ID,

Re: Python Script Generator

2004-01-03 Thread Joerg Heinicke
On 03.01.2004 10:19, Laurent Mauron wrote: I wrote a short wiki entry a couple of weeks ago. http://wiki.cocoondev.org/Wiki.jsp?page=PythonScriptGenerator I would be glad to add a more detailed entry in the official doc. Regards, L. Ah, I didn't see it. Thanks for your effort. Joerg

Re: problems with esql logicsheet and insert

2004-01-03 Thread Davide
At 11:37 AM 03-01-04, you wrote: Hi; i have the following xsp to perform an insert into a table xsp:includejava.sql/xsp:include xsp:logic java.util.Date now=new java.util.Date(); /xsp:logic esql:connection esql:poolmcnavigator/esql:pool

Re: problem with caching aggregated src

2004-01-03 Thread Joerg Heinicke
On 21.12.2003 16:00, rufio wrote: ok so : 1) test1.html - caches 2) you add a file to src/main and request test1.html - new file does not show up 3) you request test2.html - new file shows up and is cached Is this what you're getting now? Exactly it's like this: I have some xml files in

Trouble transforming EMPTY tag [Cocoon 2.1.4]

2004-01-03 Thread Matteo
Problem description: When a try to transform an empty tag from an XML content to an HTML formatting the resulting tag in the HTML page has not the closing part. Code Example (this example is semplified but I tested it doesn't work the same way the original problem): here is the XML file with

Re: Cocoon + postgreSQL

2004-01-03 Thread Jürgen Haas
Hi, is anybody using cocoon and postgresql to query a stored procedure? I am trying to return a resultset: select * from tablename, and am having problems writing the procedure. What do you mean by to query a stored procedure? I don't understand this. But I am using Cocoon and PostgreSQL, so

Re: esql logicsheet and date

2004-01-03 Thread Jürgen Haas
Hi, maybe you should have a look in your database's manual. For example you can use INSERT INTO table (date_column) VALUES (now()); for inserting the current date (and time) into the column. The result may be different, depending on the data type of the column. Type date will result in

Re: Trouble transforming EMPTY tag [Cocoon 2.1.4]

2004-01-03 Thread J.Pietschmann
Matteo wrote: map:serialize type=html/ ... img alt=logo src=data/image/oilogo.jpg/body /html Any clue why the img doesn't end with img/? Thanks in advance for the help! That's because you are serializing as HTML. HTML is not XML. THere is no closing tag for IMG necesary. If you want

Re: Cocoon + postgreSQL

2004-01-03 Thread beyaRecords - The home Urban music
Hi Jürgen, I was having problems constructing a stored procedure which would return a recordset in postgresql. I have managed to resolve the problem now. thanks Uzo On 3 Jan 2004, at 14:56, Jürgen Haas wrote: Hi, is anybody using cocoon and postgresql to query a stored procedure? I am trying

Re: problem with caching aggregated src

2004-01-03 Thread Jorg Heymans
I had a look at this. Joerg's observation is correct. There is an easy way around IMHO : Check the lastmodified attribute of the directory instead of each individual file. Adding or removing files in a directory updates the lastmodified timestamp of this directory (at least on windows). If

Re: problem with caching aggregated src

2004-01-03 Thread rufio
on Sat, 03 Jan 2004 13:07:03 +0100 Joerg Heinicke [EMAIL PROTECTED] wrote: I couldn't find a bug in bugzilla, so can you file it there please? I was going to locate the problem, send description and recipe to the bugtrack in few days but in this situation I'll do it just after I get my pass to

Re: problem with caching aggregated src

2004-01-03 Thread rufio
on Sat, 03 Jan 2004 18:46:32 +0100 Jorg Heymans [EMAIL PROTECTED] wrote: I had a look at this. Joerg's observation is correct. There is an easy way around IMHO : Check the lastmodified attribute of the directory instead of each individual file. Adding or removing files in a directory

Re: problem with caching aggregated src

2004-01-03 Thread Jorg Heymans
Cool tnx, so that's 2 platforms out of 3, i'll get started on that patch tonight. rufio wrote: on Sat, 03 Jan 2004 18:46:32 +0100 Jorg Heymans [EMAIL PROTECTED] wrote: I had a look at this. Joerg's observation is correct. There is an easy way around IMHO : Check the lastmodified attribute of

Problems with date and xsp

2004-01-03 Thread Davide
Hi, i have some problems in getting the actual timestamp to put it into a db. My xsp is: ?xml version=1.0? xsp:page language=java xmlns:xsp=http://apache.org/xsp; xmlns:xsp-request=http://apache.org/xsp/request/2.0;

JDOUserException: Object not PersistenceCapable

2004-01-03 Thread Eric Rich
I had this problem solved once but it came back again. I'm trying to use OJB/Woody. I made sure there is only one instance of my classes in the classpath (they're in cocoon/WEB-INF/classes/...). I enhanced the classes using com.sun.jdori.enhancer.Main. Is there something I'm missing here?

Re: Problems with date and xsp

2004-01-03 Thread Jorg Heymans
Could you *please* stop posting your problem in other threads? All it takes is to write a new mail instead of hitting reply+erase subject. Davide wrote: Hi, i have some problems in getting the actual timestamp to put it into a db. My xsp is: ?xml version=1.0? xsp:page language=java

Re: Problems with date and xsp

2004-01-03 Thread Christopher Painter-Wakefield
You are instantiating your Date variable at the class level, when the page is instantiated. Cocoon re-uses the page object (just calling the generate() method each time), AFAIK. So you need to put your Date instantiation inside the generate() method by doing the logic block inside addcomment.

Re: Problems with date and xsp

2004-01-03 Thread Davide
Thanks a lot, but now the problem is: what is addcomment and where do I need to put it? You are instantiating your Date variable at the class level, when the page is instantiated. Cocoon re-uses the page object (just calling the generate() method each time), AFAIK. So you need to put your Date

Re: problem with caching aggregated src

2004-01-03 Thread Joerg Heinicke
On 03.01.2004 19:26, Jorg Heymans wrote: Cool tnx, so that's 2 platforms out of 3, i'll get started on that patch tonight. There was a really simple patch proposal - if I could find it ... You only have to take the number of entries in the validity into account additionally. If this number is

Re: problem with caching aggregated src

2004-01-03 Thread Jorg Heymans
Doesn't the lastmodified check on the directory cover all this? 1) Validity stores the src directory last modified attribute + number of files that were added to the generator 2) Validity is invalidated if any of the above changes. There is no iterating over (potentially long) filesets to

Error transforming docbook 2 pdf?

2004-01-03 Thread Stephan Coboos
Hello, I'm using the stylesheets from Norman Walsh to transform a docbook-xml to pdf, but it doesnt work. Every time I tried to transform the doc, I got a error message but I don't know how to resolve this problem: org.apache.cocoon.ProcessingException: Failed to execute pipeline.:

Re: Error transforming docbook 2 pdf?

2004-01-03 Thread Joerg Heinicke
Don't use the docbook.xsl directly but a mydocbook.xsl importing the docbook.xsl. Add a xsl:param name=fop.extensions select='1'/ to it. Another possibility is to add a map:parameter name=fop.extensions value=1/ to the sitemap's map:transform src=docbook.xsl/, but I don't like for the case you

Re: Trouble transforming EMPTY tag [Cocoon 2.1.4]

2004-01-03 Thread Matteo
Thanks you very much... i'm very new to cocoon (only a week) ;) Matteo J.Pietschmann wrote: That's because you are serializing as HTML. HTML is not XML. THere is no closing tag for IMG necesary. If you want XHTML, try map:serialize type=xml/

Re: JDOUserException: Object not PersistenceCapable

2004-01-03 Thread Antonio Gallardo
Hi Eric: Wat version of JDO are you using? The OJB block now uses JDO 1.01 Hope this help. Best Regards, Antonio Gallardo Eric Rich dijo: I had this problem solved once but it came back again. I'm trying to use OJB/Woody. I made sure there is only one instance of my classes in the

Need help w/ entity catalog

2004-01-03 Thread Mark Lundquist
Hello, I have the following in a stylesheet: ?xml version=1.0? !DOCTYPE xsl:stylesheet [ !ENTITY % ISOnum PUBLIC ISO 8879:1986//ENTITIES Numeric and Special Graphic//EN//XML ISOnum.pen %ISOnum; ] Cocoon displays an error page reporting a Null Pointer Exception, but when I look at the

Re: Need help w/ entity catalog

2004-01-03 Thread Mark Lundquist
On Jan 3, 2004, at 5:39 PM, I wrote: snip I don't understand what I'm missing... the catalog-demo included in Cocoon (2.1.3) works just fine in fact, the DTD above is identical to that in catalog-demo/style.xsl My bad, I should have said samples/catalog/style.xsl, in the webapp/ directory

Re: problem with caching aggregated src

2004-01-03 Thread rufio
on Sat, 03 Jan 2004 13:07:03 +0100 Joerg Heinicke [EMAIL PROTECTED] wrote: I couldn't find a bug in bugzilla, so can you file it there please? I was going to locate the problem, send description and recipe to the bugtrack in few days but in this situation I'll do it just after I get my pass to