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,
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
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,
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,
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
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
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
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
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
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
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
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
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
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
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
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
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;
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?
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
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.
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
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
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
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.:
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
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/
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
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
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
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
30 matches
Mail list logo