Title: Message
Do you set encodingCp1251/encoding
parameter of the serializer?
I don't remember that I've ever had this kind of
problems with Russian characters,though I didn't check it for a long
time.BTW, I always use UTF-8 for my XML
documents.
--
Konstantin
Piroumian
Hi,
How can I count the rows in my resultset? I'm using esql, but
esql:row-count/ doesn't seem to be implemented yet. SQL COUNT(*) doesn't
work in this case either. Can I do this with XSP?
Thanks,
-Tuomo
-
Please check that
On 28.Aug.2002 -- 10:07 AM, Tuomo Lesonen wrote:
Hi,
How can I count the rows in my resultset? I'm using esql, but
esql:row-count/ doesn't seem to be implemented yet. SQL COUNT(*) doesn't
work in this case either. Can I do this with XSP?
Yes, have a new var declared before the
On Wed, 28 Aug 2002, Christian Haul wrote:
On 28.Aug.2002 -- 10:07 AM, Tuomo Lesonen wrote:
Hi,
How can I count the rows in my resultset? I'm using esql, but
esql:row-count/ doesn't seem to be implemented yet. SQL COUNT(*) doesn't
work in this case either. Can I do this with XSP?
On 28.Aug.2002 -- 10:48 AM, Tuomo Lesonen wrote:
On Wed, 28 Aug 2002, Christian Haul wrote:
On 28.Aug.2002 -- 10:07 AM, Tuomo Lesonen wrote:
Hi,
How can I count the rows in my resultset? I'm using esql, but
esql:row-count/ doesn't seem to be implemented yet. SQL COUNT(*)
Hi All!!
I have a matcher creating a XML result given a certain request parameter.
Now I need to call this matcher X times with different request parameters
and aggregate the output into one XML document. I don't know how many times
this matcher will be called, or with which request parameters.
...
xsp:logic
int rowCount = 0;
...
esql:execute-query
...
esql:row-results
...
xsp:logic
rowCount++;
try to do select count(*) as row_count from table;
On 28.Aug.2002 -- 10:54 AM, Leszek Gawron wrote:
try to do select count(*) as row_count from table;
and then in esql:row-results do esql:get-long column=row_count/
I'm not 100% sure but this highly probable to work
Yes, if it is an option to run the query twice this should work. The
as
On Wed, 28 Aug 2002, Christian Haul wrote:
On 28.Aug.2002 -- 10:54 AM, Leszek Gawron wrote:
try to do select count(*) as row_count from table;
and then in esql:row-results do esql:get-long column=row_count/
I'm not 100% sure but this highly probable to work
Yes, if it is an option
I have just worked thru the employee example shipped with cocoon 2.0.3.
For a newbie like me it's difficult to understand. That why I ask you
Does someone have an easier example that shows how to use an XML-DATABASE?
I want (try) to use only xsp without edXml or 4suite or something like that.
Time to take out some heavier arms. Since I only need to
get id and name
from my table, I'm placing these pairs in a hashtable inside
esql:row-results/. Then I have a nice hashtable, which I iterate through
later on. hashtables size() method gives the rowCount.
BUT: How to implement Enumeration
Try SELECT(id) FROM names WHERE id = 1;
K.
-Oorspronkelijk bericht-
Van: Tuomo Lesonen [mailto:[EMAIL PROTECTED]]
Verzonden: woensdag 28 augustus 2002 12:07
Aan: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Onderwerp: Re: Counting rows in a resultset
On Wed, 28 Aug 2002, Christian
The way I do this kind of thing is to write a pipeline generator which
makes include statements. Then run a cinclude transformer to resolve the
includes.
ie. Generator 1 does some business logic and creates SAX like this:
cinclude:include cocoon:/generator2?parm=x/
cinclude:include
Hi! (another time). It seems that I've partially solved the jsp trouble from
Cocoon with Resin. I've changed the default jsp-engine per
com.caucho.jsp.JspServlet and now my initial proves with some simple jsp
pages have worked correctly. Even so, I can't assure that this is definitive
because
Raul,
I have had the same problem you are facing with the welcome.xml page. It
seems as though Resin does something weird with files that end in .xml
eg.
map:match pattern=content/news.xml
map:generate type=serverpages src=xsp/news.xsp/
/map:match
map:match pattern=news.html
On 28.Aug.2002 -- 01:29 PM, Tuomo Lesonen wrote:
Time to take out some heavier arms. Since I only need to
get id and name
from my table, I'm placing these pairs in a hashtable inside
esql:row-results/. Then I have a nice hashtable, which I iterate through
later on. hashtables size() method
Konstantin had commented to me that there was a patch in Bugzilla about the
JSP+Resin+Cocoon,
about an attribute in request that should contain the requested path to JSP
... Do you think that is possibly related?, even so, I've searched and I
don't found it.
Then , don't you have been able to
On Wed, 28 Aug 2002, Christian Haul wrote:
On 28.Aug.2002 -- 01:29 PM, Tuomo Lesonen wrote:
Time to take out some heavier arms. Since I only need to
get id and name
from my table, I'm placing these pairs in a hashtable inside
esql:row-results/. Then I have a nice hashtable, which I
Hi !!
I worked with Tomcat 4.0.4, JDK 1.3.1_03 and Cocoon2.0.2 under W2000.
I want to use the Cocoon2.0.3 version.
I installed it as describe in the Installing Apache Cocoon page.
But when I test it I receive the following message :
org.apache.cocoon.ProcessingException: Language Exception:
hi,
I'm getting compilation errors when I try to access a session-value by using
String language = (String)session:get-attribute name=LANGUAGE_FROM_TO/;
My xsp is defined as :
xsp:page
language=java
xmlns:xsp=http://apache.org/xsp;
I cannot tell you what has changed, but I can help you look for the error.
The exception is thrown during the compile phase for the sitemap. When the
sitemap (or any xsp/logicsheet) is recompiled, cocoon generates a java
source file that gets compiled. The line number in the exception is in this
My configuration:
tomcat 4.0.4, cocoon 2.0.3, java jdk1.2.2
In copied the mm.mysql-2.0.4-bin.jar file into the lib folder of
cocoon/WEB-INF. I loaded the driver in the web.xml file. When I check now
the installation in the access.log file I got the following message:
DEBUG (2002-08-28)
Geert,
I guess you are using the session logicsheet, if
so, please make a change in your namespace
declaration.
It should read
xmlns:xsp-session=http://apache.org/xsp/session/2.0;
FYI, refer to
http://xml.apache.org/cocoon/userdocs/xsp/session.html
Regards,
KC
--- Geert Poels [EMAIL
I think there is something wrong with Cocoon ..I installed Tomcat
and it run perfectly.
However, when i put in the cocoon.war file
into Tomcat webapps and try to connect to Tomcat again,Tomcat die.
Of course i shutdown Tomcat before trying to install Cocoon.
When i start Tomcat, it just won't
Hi Jessica,
You should have something like this in web.xml
init-param param-nameload-class/param-name param-value org.gjt.mm.mysql.Driver /param-value /init-param
and something like this in cocoon.xconf
datasources jdbc name="mysqlds" pool-controller min="5" max="10"/
Roger,
have you tried to raise the memory (setting -Xmx in CATALINA_OPTS) ?
Keep in mind that Cocoon uses a lot of memory at startup (mainly for XSP compilation).
Best regards,
-
Luca Morandini
GIS Consultant
Does the driver show up in the Classpath in core.log? (Do a search on
Classpath = in core.log and see if the driver is listed over there).
I also had a lot of trouble with getting mysql to work. Using JDK1.4 and
Connector/J 3.0 beta now (that's the successor to mm.mysql, they're
essentially the
I have a simple xsp file that includes the following:
?xml version=1.0 encoding=ISO-8859-1?
xsp:page
language=java
xmlns:xsp=http://apache.org/xsp;
xmlns:xsp-session=http://apache.org/xsp/session/2.0;
xsp-session:invalidate/
/xsp:page
Here is the portion of the sitemap that
Sorry, I forgot my environment:
Win2K
jdk1.3.1_03
tomcat 4.1.3
cocoon 2.0.3
:)
-Original Message-
From: Matthew Hailstone
Sent: Wednesday, August 28, 2002 10:15 AM
To: [EMAIL PROTECTED]
Subject: xsp-session:invalidate
I have a simple xsp file that includes the following:
Sitemap parameters that are returned by an actions
are not available when map:act doesn't have any
child nodes other than map:parameters/.
So the following doesn't work:
map:match pattern=somepage.xml
map:act type=my-act src={0}/
map:generate/
map:transform
Matthew,
this works for me:
?xml version=1.0 encoding=iso-8859-1 standalone=yes?
!--
drop-session.xsp
Descrizione:
Elimina la sessone corrente.
Storia:
25/06/02 Luca Morandini Creazione
--
xsp:page
xmlns:xsp=http://apache.org/xsp;
At 18.02 28/08/2002 +0200, you wrote:
Does the driver show up in the Classpath in core.log? (Do a search on
Classpath = in core.log and see if the driver is listed over there).
I also had a lot of trouble with getting mysql to work. Using JDK1.4 and
Connector/J 3.0 beta now (that's the successor
Title: Request-parameter matcher and cinclude
When I use this combination below I get out of memory errors, the first request to the server works fine I get the login2.xsp (its below as well). When the second request comes up (button is pressed from the login page) it throw out of memory
Great! Looks like I was missing a root node: page tags or something
like it.
Thanks Luca.
Matthew :)
-Original Message-
From: Luca Morandini [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 28, 2002 10:33 AM
To: [EMAIL PROTECTED]
Subject: RE: xsp-session:invalidate
I just dropped it into the lib folder. My setup in web.xml and
cocoon.xconf are like Jermey Aston desribed in his reply (only
difference are the classnames for connector/j).
Try dropping it $CATALINA_HOME/common/lib, that seems to work for some
setups.
JW
-Original Message-
From:
I am using cocoon to let the users fill a database.
I am using Cocoon 2.03, Tomcat 4.1.9 and Java 1.4.1 on Linux.
I wrote the following descriptor:
root
parameter name=id nullable=no type=long default=1/
parameter name=nombre nullable=no max-len=50 min-len=3
type=string/
parameter
On Wednesday, August 28, 2002, at 06:06 , Tuomo Lesonen wrote:
This doesn't work: SELECT COUNT(*), id, name FROM names WHERE id = 1;
I'm using MS SQL2000. The query above is probably not well
formed SQL, or
SQL2000 doesn't know what to do with it... :(
The count(*) syntax works in MySQL,
You can also put it in $JAVA_HOME/lib/ext (or
$JAVA_HOME/jre/lib/ext depending on your setup). That way, it's
accessible from anywhere on your system disclaimerwhich is a
feature or a bug.../disclaimer.
On Wednesday, August 28, 2002, at 12:51 , Jan Willem Penterman wrote:
I just dropped it
Since we upgraded to Cocoon 2.0.3, we've been experiencing a very annoying
problem, which is that Cocoon seems to silently handle all exceptions.
I've tested it now with a couple of exceptions types: RuntimeExceptions
(thrown by the ESQL logicsheet) and NullPointerExceptions. The behavior is
Hi:
To answer my own question. Nobody reply my question. I was researching the
Cocoon 2.0.3 source code
The answer is: THERE IS NO A BOOLEAN DATA TYPE. I must change the DB Schema to
rebuild a new database.
Valid datatypes are ONLY (see the file AbtractDatabaseAction.java inside the
On Wednesday, August 28, 2002, at 05:57 , Christopher
Painter-Wakefield wrote:
This problem (I won't say bug, in case it is something we've
done!) is very
detrimental to development, since we have to go look in the
logs to find
out we got an exception. Any help would be appreciated!
Given Cocoon's big focus on transforms, I was wondering if anyone is using
unit tests and/or test-first design when developing their xslt? I'd
appreciate any comments on its effectiveness and what tools you are using
(XSLTunit for example?).
Robert
42 matches
Mail list logo