Re: i18n

2003-06-24 Thread Konstantin Piroumian



Take a look at i18n transformer 
configuration in your sitemap. Probably it defines the 'untranslated-text' 
parameter which is used instead of the key value.
 
-- Konstantin

  - Original Message - 
  From: 
  Kavitha Ramesh 
  To: [EMAIL PROTECTED] 
  
  Sent: Tuesday, June 24, 2003 18:30
  Subject: i18n 
  
  Hi,
   
  I read the following in a documentation:
   
  untranslated-text: text used for untranslated keys 
  (default is to output the key name).
   
  But when I dont have translations in my messages.xml, i get something 
  like "untranslated-text".Actually it should display the key name.I use IBM 
  Websphere 4.0 with Cocoon 2.0.
  If someone has any solutions pls tell me.
   
  Regards
  Kavitha Ramesh.
  
  
  Do you Yahoo!?SBC 
  Yahoo! DSL - Now only $29.95 per month!


PDF attachment using Sendmail and 2.0.4

2003-06-24 Thread Tony Edwards
Title: PDF attachment using Sendmail and 2.0.4





Hi all,
I checked out the sendmail item on wiki and tried to mail the results of a pipeline serialized as PDF.
I followed the wiki instructions to the letter.
The mail worked alright, but the PDF file was attached as uuencoded text (at least that's what it looked like). I have obviously overlooked something. Should I be using  as specified or something different?

I noticed in the 2.1 sendmail logicsheet that there's a  tag which specifies a mime-type parameter, but the project I'm working on is in good old 2.0.4.

Any clues?


thanks everyone,


Tony





Re: [Error] Sendmail Logicsheet and Cinclude

2003-06-24 Thread Bill Humphries
On Friday, June 20, 2003, at 04:52 AM, Christian Haul wrote:

I'd appreciate some assistance with this. Once I've found my way 
around this problem, I'll write up a how-to for the cocoondev.org 
wiki.
Deal!
Those notes are now at 
http://wiki.cocoondev.org/Wiki.jsp?page=MailBodyViaPipeline

Amplications and corrections welcome as always.

-- whump

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: [Error] Sendmail Logicsheet and Cinclude

2003-06-24 Thread Bill Humphries
On Friday, June 20, 2003, at 04:52 AM, Christian Haul wrote:

[EMAIL PROTECTED] wrote:
I've been stumbling the past couple of days through the sendmail 
logicsheet and sendmail actions in 2.1-M1.
Here's what I'm trying to do:
Include generated content (i.e. content produced by a pipeline) into 
the body of an email sent by sendmail action or logicsheet.
This is possible only by using the util logicsheet.
...

The "correct" solution is to use  to pull in the generated 
content.
AFAIR you could as well do 
Yes, and that worked in my test. Thanks for pointing that out.

I'd appreciate some assistance with this. Once I've found my way 
around this problem, I'll write up a how-to for the cocoondev.org 
wiki.
Deal!
I'll write up those notes then. Sorry for the delay in replying, but I 
only got the chance to start working with this again today.

-- whump

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


XHTML+DTD problem

2003-06-24 Thread Joel Ekstrand



I have problems reading xhtml-files. The problem 
occours when I have a DTD specified. I tried this just to see what is going 
on:
 

 
 
I then request test.xml and I have a file like this 
in documents/test.html:
 
http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">http://www.w3.org/TR/REC-html40">


test


 
The generated output is:
 
http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"

Re: java docs?

2003-06-24 Thread Roger I Martin PhD
C:\apache\cocoon-2.1\build\cocoon-2.1m3-dev\javadocs locally;

http://cocoon.apache.org/2.1/apidocs/index.html remotely. Can get there from
http://cocoon.apache.org/2.1/developing/index.html
-Roger
- Original Message -
From: "Tim Bachta" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, June 24, 2003 6:07 PM
Subject: java docs?


Where are the cocoon javadocs located?



Thanks



Tim






-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



java docs?

2003-06-24 Thread Tim Bachta
Where are the cocoon javadocs located?

 

Thanks

 

Tim 

 

 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: esql !!!HELP!!!

2003-06-24 Thread Tim Bachta
Thanks, I have gotten past that problem, and on to the next.  I was able
to view the actual java code that cocoon compiled my page into and
figured out a few errors on my end now I am stuck again.  I am getting
an error of Invalid parameter binding(s).  My code now looks like this:


{call rptLocationDeviations(number,room,beginTime,endTime)}



(ResultSet)











I have no Idea what invalid parameter binding(s) means.  Any help is
greatly appreciated.

Tim Bachta 

-Original Message-
From: Roger I Martin PhD [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 24, 2003 3:37 PM
To: [EMAIL PROTECTED]
Subject: Re: esql !!!HELP!!!

Hi,

Every one that your driver supports.  The error message your getting
appears
to be from the SQLServer 2000 Driver for JDBC showing
java.sql.SQLException:
[Microsoft][SQLServer 2000 Driver for JDBC]Syntax
error at token t, line 0 offset 7.
 talking about a syntax error it exceptions on.  Do simple queries work
in
you Cocoon based project?  Are stored procedures supported by the
SQLServer
2000 Driver for JDBC? Can you test this driver directly?

If you need to explore Cocoon more, look in
cocoon-2.1\src\blocks\databases\java\org\apache\cocoon\components\langua
ge\m
arkup\xsp\java\esql.xsl at particularly

 internal. set one parameter of a callable statement



_esql_query.getCallableStatement().
registerOutParameter(,
,  );


_esql_query.getCallableStatement().




 and what it calls and does.  If you look at your generated *_xsp.java
files
under tomacat (C:\Program
Files\jakarta-tomcat-5\dist\work\Catalina\localhost\wita\cocoon-files\
working mount) or other work directory of another server you will see
that
they extend
"org.apache.cocoon.components.language.markup.xspXSPGenerator"
but it looks like most of your parameters are direction='in' so you can
look
more at the esql.xsl set-query-parameter template.  Note you can put
System.out.println() inside this esql.xsl prove to yourself that the
stylesheet is working.  You can write a lot of Java code in here to
explore
the driver classes and the queries they manage.  The output from
System.out.println()'s will show up in the launch window of your server.

-Roger

- Original Message -
From: "Tim Bachta" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, June 24, 2003 2:41 PM
Subject: RE: esql !!!HELP!!!


Does anyone know what the different types of parameters there are for
esql:parameter.  I know String and Int.

Tim Bachta

(913)693-0538 Office
(913)486-5213 Mobile


-Original Message-
From: Tim Bachta
Sent: Tuesday, June 24, 2003 12:56 PM
To: [EMAIL PROTECTED]
Subject: RE: esql !!!HELP!!!

Geoff,
Thanks for the help that was really helpful.  Now I was able to get a
step further in my quest.  I am running the following code:


{? = rptLocationDeviations(number,room,beginTime,endTime)}



(ResultSet)











and I am now getting this error message:

org.apache.cocoon.ProcessingException: Exception in
ServerPagesGenerator.generate(): java.lang.RuntimeException: Error
executing statement: {? = rptLocationDeviations(?,?,?,?)} :
java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Syntax
error at token t, line 0 offset 7.

Does anyone have any ideas?  Maybee where I can find
ServerPagesGenerator or even what I am doing wrong here.  Thanks

Tim Bachta

-Original Message-
From: Geoff Howard [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 24, 2003 12:38 PM
To: [EMAIL PROTECTED]
Subject: RE: esql !!!HELP!!!

Yes.  The .java file is in your servlet container's work directory under

cocoon-files.  There will be an org/apache/cocoon... structure the path
and
name will mimic your xsp file's name and location after a certain point.

If you're using tomcat, the work dir is under %tomcat_home%\work

in jetty, it's in your window's temp dir (documents and
settings\your.user\...
some where.  the dir is called something like Jetty_)

HTH,
Geoff Howard

At 01:35 PM 6/24/2003, you wrote:
>Does cocoon compile an xsp into a Java class file?  If so where does it
>put it.  The reason why I am asking is that my procedures that I am
>having trouble with in cocoon work fine in a java class file.
>
>Tim Bachta
>
>
>
>-Original Message-
>From: Tim Bachta
>Sent: Tuesday, June 24, 2003 12:21 PM
>To: [EMAIL PROTECTED]
>Subject: RE: esql !!!HELP!!!
>
>I wish I could make the stored procedure easier, but unfortunately this
>is the procedure that I have been given.
>
>Tim Bachta
>
>
>-Original Message-
>From: Scherler, Thorsten [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, June 24, 2003 12:07 PM
>To: [EMAIL PROTECTED]
>Subject: RE: esql !!!HELP!!!
>
>Hello Tim,
>
>your code is quite complex.
>
>I had heaps of problem with similar code.
>
>Can you break it down to 1 or 2 parameter?
>
>Your error:
>Line 702, column 45: ')' expected
>Line 707, column 65: ';' expected
>Line 710, column 6: illegal start of expression
>Line 702, column -1: inconvertible types
>
>Seeing the last error I reckon that MS SQ

Re: esql !!!HELP!!!

2003-06-24 Thread Roger I Martin PhD
Hi,

Every one that your driver supports.  The error message your getting appears
to be from the SQLServer 2000 Driver for JDBC showing java.sql.SQLException:
[Microsoft][SQLServer 2000 Driver for JDBC]Syntax
error at token t, line 0 offset 7.
 talking about a syntax error it exceptions on.  Do simple queries work in
you Cocoon based project?  Are stored procedures supported by the SQLServer
2000 Driver for JDBC? Can you test this driver directly?

If you need to explore Cocoon more, look in
cocoon-2.1\src\blocks\databases\java\org\apache\cocoon\components\language\m
arkup\xsp\java\esql.xsl at particularly

 internal. set one parameter of a callable statement



_esql_query.getCallableStatement().
registerOutParameter(, ,  );


_esql_query.getCallableStatement().




 and what it calls and does.  If you look at your generated *_xsp.java files
under tomacat (C:\Program
Files\jakarta-tomcat-5\dist\work\Catalina\localhost\wita\cocoon-files\
working mount) or other work directory of another server you will see that
they extend "org.apache.cocoon.components.language.markup.xspXSPGenerator"
but it looks like most of your parameters are direction='in' so you can look
more at the esql.xsl set-query-parameter template.  Note you can put
System.out.println() inside this esql.xsl prove to yourself that the
stylesheet is working.  You can write a lot of Java code in here to explore
the driver classes and the queries they manage.  The output from
System.out.println()'s will show up in the launch window of your server.

-Roger

- Original Message -
From: "Tim Bachta" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, June 24, 2003 2:41 PM
Subject: RE: esql !!!HELP!!!


Does anyone know what the different types of parameters there are for
esql:parameter.  I know String and Int.

Tim Bachta

(913)693-0538 Office
(913)486-5213 Mobile


-Original Message-
From: Tim Bachta
Sent: Tuesday, June 24, 2003 12:56 PM
To: [EMAIL PROTECTED]
Subject: RE: esql !!!HELP!!!

Geoff,
Thanks for the help that was really helpful.  Now I was able to get a
step further in my quest.  I am running the following code:


{? = rptLocationDeviations(number,room,beginTime,endTime)}



(ResultSet)











and I am now getting this error message:

org.apache.cocoon.ProcessingException: Exception in
ServerPagesGenerator.generate(): java.lang.RuntimeException: Error
executing statement: {? = rptLocationDeviations(?,?,?,?)} :
java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Syntax
error at token t, line 0 offset 7.

Does anyone have any ideas?  Maybee where I can find
ServerPagesGenerator or even what I am doing wrong here.  Thanks

Tim Bachta

-Original Message-
From: Geoff Howard [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 24, 2003 12:38 PM
To: [EMAIL PROTECTED]
Subject: RE: esql !!!HELP!!!

Yes.  The .java file is in your servlet container's work directory under

cocoon-files.  There will be an org/apache/cocoon... structure the path
and
name will mimic your xsp file's name and location after a certain point.

If you're using tomcat, the work dir is under %tomcat_home%\work

in jetty, it's in your window's temp dir (documents and
settings\your.user\...
some where.  the dir is called something like Jetty_)

HTH,
Geoff Howard

At 01:35 PM 6/24/2003, you wrote:
>Does cocoon compile an xsp into a Java class file?  If so where does it
>put it.  The reason why I am asking is that my procedures that I am
>having trouble with in cocoon work fine in a java class file.
>
>Tim Bachta
>
>
>
>-Original Message-
>From: Tim Bachta
>Sent: Tuesday, June 24, 2003 12:21 PM
>To: [EMAIL PROTECTED]
>Subject: RE: esql !!!HELP!!!
>
>I wish I could make the stored procedure easier, but unfortunately this
>is the procedure that I have been given.
>
>Tim Bachta
>
>
>-Original Message-
>From: Scherler, Thorsten [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, June 24, 2003 12:07 PM
>To: [EMAIL PROTECTED]
>Subject: RE: esql !!!HELP!!!
>
>Hello Tim,
>
>your code is quite complex.
>
>I had heaps of problem with similar code.
>
>Can you break it down to 1 or 2 parameter?
>
>Your error:
>Line 702, column 45: ')' expected
>Line 707, column 65: ';' expected
>Line 710, column 6: illegal start of expression
>Line 702, column -1: inconvertible types
>
>Seeing the last error I reckon that MS SQL have a different type of
data
>then you expect.
>
>-Original Message-
>From: Tim Bachta [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, June 24, 2003 6:54 PM
>To: [EMAIL PROTECTED]
>Subject: esql !!!HELP!!!
>
>Ok, I am using the syntax exactly like that of the example at
>http://cocoon.apache.org/2.1/userdocs/xsp/esql.html#Stored+Procedure+Su
p
>port
>pport>  and I am getting errors.  I am really confused on why I am
>getting these errors.  Here is the code for the xsp that has the stored
>procedure in it:
>
>
>
> 
>
> {? = rptLocation

Re: Dynamically generated forms with dynamically generated verification

2003-06-24 Thread Jens Maukisch
Hi

> I have to generate dynamically a form out of the structure Information of
> some XML-data (it's SCORM for learning metadata). Is there a way to verify
> dynamically the data entries when submitting the form?

maybe you should have a look at woody http://wiki.cocoondev.org/Wiki.jsp?page=Woody
or some xforms stuff http://xform.nanoworks.org
or http://cocoon.apache.org/2.1/userdocs/concepts/xmlform.html

hth

-- 
* best regards
* Jens Maukisch  
* www: http://www.maukisch.net


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: sendMail sample not working for Cocoon2.1M2...

2003-06-24 Thread Yan, Charlene
Chris,

I'm able to run the example now.  Please follow my other thread "Chaining pipelines 
--- write a file to server --- email it as an attachment -- delete the file"

Thanks.

Charlene

> 
>   
>   
> 
> It did not give me much useful info (see below).

Actually, the crucial part would be before the snippet you provided.

> Do I have to rebuild Cocoon if I want to run sendMail sample?  Are there any ways to 
> detect why it is not working?

No, no need to rebuild Cocoon. 

Which page is shown as result?

Chris.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Chaining pipelines --- write a file to server --- email it as an attachment -- delete the file

2003-06-24 Thread Yan, Charlene
All,

Please let me know if this is possible with Cocoon to accomplish the following:  

When I click a "Send Email" button on the page, the application will create a rtf file 
on the server, and then sendMail will send email to an email address entered by the 
user with attachment of the rtf file and idealy the rtf file should be deleted from 
the server.  

Here is what I have so far.  1.   I am able to create a rtf file and display it in a 
browser.  The user has the option to save it to their hard drive.  Do you know how I 
can write it to the server behind the scene, meaning without opening it in a browser.  
2.  I am able to send emails from the mail sample page with attachment either from a 
file or from a url.  

Basically it is a pipeline chaining issue, I think.  Please let me now if what I'm 
planning to do is feasible in Cocoon.  I will appreciate any ideas and thoughts from 
you!!!

Thanks.

Charlene 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: clob import: best practice?

2003-06-24 Thread Arthur Allen
I tried the latest sqltransformer & it did the right thing !!!

Now if only someone could fix the session generator in the same way ;), as 
it seems quite happy to
drop xml as cdata into the xml event stream.

Thanks!
Arthur Allen
Ditto using the sql transformer. Drats!

I actually was looking at the same problem a couple of days ago. It turns 
out that the
SQL
transformer has code that should detect XML automatically. However there 
has been an
error that
meant that the XML parser never got instatiated, and that XML was therefore 
never
detected. This
has been corrected in version 1.6 (2003/06/11 00:28:31) of 
SQLTransformer.java. I have
not tested
this yet so I don't know if it works, but the code looks reasonable to me 
:-)
_
STOP MORE SPAM with the new MSN 8 and get 2 months FREE*  
http://join.msn.com/?page=features/junkmail

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Invalid Parameter Bindings

2003-06-24 Thread Tim Bachta
Can someone give me a general idea of what Invalid parameter bindings is
and what may be causing it in an esql:call?

 

Thank you

Tim Bachta

 

 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Reference of transforms in sub-sitemap

2003-06-24 Thread Jeff Sexton

On Tue, 24 Jun 2003, Andreas Hartmann wrote:
> But I would rather suggest to use a common location-independent
> cocoon:// call:
>
> 
>
> The common stylesheets would be served by your main sitemap
> (or a special sub-sitemap). This enables you to change the
> stylesheet location without affecting your applications.

That looks much better, thanks!


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Reference of transforms in sub-sitemap

2003-06-24 Thread Andreas Hartmann
Jeff Sexton wrote:

Can I reference a a stylesheet that is off in a different subsite
instead?  Something like:
 
Yes, this is possible.

But I would rather suggest to use a common location-independent
cocoon:// call:


The common stylesheets would be served by your main sitemap
(or a special sub-sitemap). This enables you to change the
stylesheet location without affecting your applications.
Andreas



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: esql !!!HELP!!!

2003-06-24 Thread Tim Bachta
Does anyone know what the different types of parameters there are for
esql:parameter.  I know String and Int.

Tim Bachta
 
(913)693-0538 Office
(913)486-5213 Mobile
 

-Original Message-
From: Tim Bachta 
Sent: Tuesday, June 24, 2003 12:56 PM
To: [EMAIL PROTECTED]
Subject: RE: esql !!!HELP!!!

Geoff,  
Thanks for the help that was really helpful.  Now I was able to get a
step further in my quest.  I am running the following code:


{? = rptLocationDeviations(number,room,beginTime,endTime)}



(ResultSet)











and I am now getting this error message:

org.apache.cocoon.ProcessingException: Exception in
ServerPagesGenerator.generate(): java.lang.RuntimeException: Error
executing statement: {? = rptLocationDeviations(?,?,?,?)} :
java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Syntax
error at token t, line 0 offset 7.

Does anyone have any ideas?  Maybee where I can find
ServerPagesGenerator or even what I am doing wrong here.  Thanks

Tim Bachta 

-Original Message-
From: Geoff Howard [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 24, 2003 12:38 PM
To: [EMAIL PROTECTED]
Subject: RE: esql !!!HELP!!!

Yes.  The .java file is in your servlet container's work directory under

cocoon-files.  There will be an org/apache/cocoon... structure the path
and 
name will mimic your xsp file's name and location after a certain point.

If you're using tomcat, the work dir is under %tomcat_home%\work

in jetty, it's in your window's temp dir (documents and
settings\your.user\...
some where.  the dir is called something like Jetty_)

HTH,
Geoff Howard

At 01:35 PM 6/24/2003, you wrote:
>Does cocoon compile an xsp into a Java class file?  If so where does it
>put it.  The reason why I am asking is that my procedures that I am
>having trouble with in cocoon work fine in a java class file.
>
>Tim Bachta
>
>
>
>-Original Message-
>From: Tim Bachta
>Sent: Tuesday, June 24, 2003 12:21 PM
>To: [EMAIL PROTECTED]
>Subject: RE: esql !!!HELP!!!
>
>I wish I could make the stored procedure easier, but unfortunately this
>is the procedure that I have been given.
>
>Tim Bachta
>
>
>-Original Message-
>From: Scherler, Thorsten [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, June 24, 2003 12:07 PM
>To: [EMAIL PROTECTED]
>Subject: RE: esql !!!HELP!!!
>
>Hello Tim,
>
>your code is quite complex.
>
>I had heaps of problem with similar code.
>
>Can you break it down to 1 or 2 parameter?
>
>Your error:
>Line 702, column 45: ')' expected
>Line 707, column 65: ';' expected
>Line 710, column 6: illegal start of expression
>Line 702, column -1: inconvertible types
>
>Seeing the last error I reckon that MS SQL have a different type of
data
>then you expect.
>
>-Original Message-
>From: Tim Bachta [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, June 24, 2003 6:54 PM
>To: [EMAIL PROTECTED]
>Subject: esql !!!HELP!!!
>
>Ok, I am using the syntax exactly like that of the example at
>http://cocoon.apache.org/2.1/userdocs/xsp/esql.html#Stored+Procedure+Su
p
>port
>pport>  and I am getting errors.  I am really confused on why I am
>getting these errors.  Here is the code for the xsp that has the stored
>procedure in it:
>
>
>
> 
>
> {? = rptLocationDeviations(type="Int">number,direction="in"
>type="String">room,direction="in"
>type="String">beginTime,meter direction="in"
>type="String">endTime)}
>
> 
>
> 
>
> 
>
> 
>
> 
>
> column="1" from-call="true"/>
>
> 
>
> 
>
> 
>
> 
>
> 
>
>
>
>
> 
>
> 
>
> 
>
> 
>
> 
>
>
>
>
>
>and the error message that I am getting is:
>
>
>
>The org.apache.cocoon.www.sitemap_xmap notifies that
>org.apache.cocoon.ProcessingException says:
>
>Language Exception
>
>More precisely:
>
>org.apache.cocoon.ProcessingException: Language Exception:
>org.apache.cocoon.components.language.LanguageException: Error
compiling
>room_report_xsp:
>Line 702, column 45: ')' expected
>Line 707, column 65: ';' expected
>Line 710, column 6: illegal start of expression
>Line 702, column -1: inconvertible types
>Line 0, column 0:
>4 errors
>
>
>
>Please any help is greatly appreciated.
>
>
>
>Tim Bachta
>
>
>
>
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>--

RE: esql !!!HELP!!!

2003-06-24 Thread Tim Bachta
Geoff,  
Thanks for the help that was really helpful.  Now I was able to get a
step further in my quest.  I am running the following code:


{? = rptLocationDeviations(number,room,beginTime,endTime)}



(ResultSet)











and I am now getting this error message:

org.apache.cocoon.ProcessingException: Exception in
ServerPagesGenerator.generate(): java.lang.RuntimeException: Error
executing statement: {? = rptLocationDeviations(?,?,?,?)} :
java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Syntax
error at token t, line 0 offset 7.

Does anyone have any ideas?  Maybee where I can find
ServerPagesGenerator or even what I am doing wrong here.  Thanks

Tim Bachta 

-Original Message-
From: Geoff Howard [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 24, 2003 12:38 PM
To: [EMAIL PROTECTED]
Subject: RE: esql !!!HELP!!!

Yes.  The .java file is in your servlet container's work directory under

cocoon-files.  There will be an org/apache/cocoon... structure the path
and 
name will mimic your xsp file's name and location after a certain point.

If you're using tomcat, the work dir is under %tomcat_home%\work

in jetty, it's in your window's temp dir (documents and
settings\your.user\...
some where.  the dir is called something like Jetty_)

HTH,
Geoff Howard

At 01:35 PM 6/24/2003, you wrote:
>Does cocoon compile an xsp into a Java class file?  If so where does it
>put it.  The reason why I am asking is that my procedures that I am
>having trouble with in cocoon work fine in a java class file.
>
>Tim Bachta
>
>
>
>-Original Message-
>From: Tim Bachta
>Sent: Tuesday, June 24, 2003 12:21 PM
>To: [EMAIL PROTECTED]
>Subject: RE: esql !!!HELP!!!
>
>I wish I could make the stored procedure easier, but unfortunately this
>is the procedure that I have been given.
>
>Tim Bachta
>
>
>-Original Message-
>From: Scherler, Thorsten [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, June 24, 2003 12:07 PM
>To: [EMAIL PROTECTED]
>Subject: RE: esql !!!HELP!!!
>
>Hello Tim,
>
>your code is quite complex.
>
>I had heaps of problem with similar code.
>
>Can you break it down to 1 or 2 parameter?
>
>Your error:
>Line 702, column 45: ')' expected
>Line 707, column 65: ';' expected
>Line 710, column 6: illegal start of expression
>Line 702, column -1: inconvertible types
>
>Seeing the last error I reckon that MS SQL have a different type of
data
>then you expect.
>
>-Original Message-
>From: Tim Bachta [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, June 24, 2003 6:54 PM
>To: [EMAIL PROTECTED]
>Subject: esql !!!HELP!!!
>
>Ok, I am using the syntax exactly like that of the example at
>http://cocoon.apache.org/2.1/userdocs/xsp/esql.html#Stored+Procedure+Su
p
>port
>pport>  and I am getting errors.  I am really confused on why I am
>getting these errors.  Here is the code for the xsp that has the stored
>procedure in it:
>
>
>
> 
>
> {? = rptLocationDeviations(type="Int">number,direction="in"
>type="String">room,direction="in"
>type="String">beginTime,meter direction="in"
>type="String">endTime)}
>
> 
>
> 
>
> 
>
> 
>
> 
>
> column="1" from-call="true"/>
>
> 
>
> 
>
> 
>
> 
>
> 
>
>
>
>
> 
>
> 
>
> 
>
> 
>
> 
>
>
>
>
>
>and the error message that I am getting is:
>
>
>
>The org.apache.cocoon.www.sitemap_xmap notifies that
>org.apache.cocoon.ProcessingException says:
>
>Language Exception
>
>More precisely:
>
>org.apache.cocoon.ProcessingException: Language Exception:
>org.apache.cocoon.components.language.LanguageException: Error
compiling
>room_report_xsp:
>Line 702, column 45: ')' expected
>Line 707, column 65: ';' expected
>Line 710, column 6: illegal start of expression
>Line 702, column -1: inconvertible types
>Line 0, column 0:
>4 errors
>
>
>
>Please any help is greatly appreciated.
>
>
>
>Tim Bachta
>
>
>
>
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>--

RE: esql !!!HELP!!!

2003-06-24 Thread Geoff Howard
Yes.  The .java file is in your servlet container's work directory under 
cocoon-files.  There will be an org/apache/cocoon... structure the path and 
name will mimic your xsp file's name and location after a certain point.

If you're using tomcat, the work dir is under %tomcat_home%\work

in jetty, it's in your window's temp dir (documents and settings\your.user\...
some where.  the dir is called something like Jetty_)
HTH,
Geoff Howard
At 01:35 PM 6/24/2003, you wrote:
Does cocoon compile an xsp into a Java class file?  If so where does it
put it.  The reason why I am asking is that my procedures that I am
having trouble with in cocoon work fine in a java class file.
Tim Bachta



-Original Message-
From: Tim Bachta
Sent: Tuesday, June 24, 2003 12:21 PM
To: [EMAIL PROTECTED]
Subject: RE: esql !!!HELP!!!
I wish I could make the stored procedure easier, but unfortunately this
is the procedure that I have been given.
Tim Bachta

-Original Message-
From: Scherler, Thorsten [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 24, 2003 12:07 PM
To: [EMAIL PROTECTED]
Subject: RE: esql !!!HELP!!!
Hello Tim,

your code is quite complex.

I had heaps of problem with similar code.

Can you break it down to 1 or 2 parameter?

Your error:
Line 702, column 45: ')' expected
Line 707, column 65: ';' expected
Line 710, column 6: illegal start of expression
Line 702, column -1: inconvertible types
Seeing the last error I reckon that MS SQL have a different type of data
then you expect.
-Original Message-
From: Tim Bachta [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 24, 2003 6:54 PM
To: [EMAIL PROTECTED]
Subject: esql !!!HELP!!!
Ok, I am using the syntax exactly like that of the example at
http://cocoon.apache.org/2.1/userdocs/xsp/esql.html#Stored+Procedure+Sup
port
  and I am getting errors.  I am really confused on why I am
getting these errors.  Here is the code for the xsp that has the stored
procedure in it:




{? = rptLocationDeviations(number,room,beginTime,endTime)}





































and the error message that I am getting is:



The org.apache.cocoon.www.sitemap_xmap notifies that
org.apache.cocoon.ProcessingException says:
Language Exception

More precisely:

org.apache.cocoon.ProcessingException: Language Exception:
org.apache.cocoon.components.language.LanguageException: Error compiling
room_report_xsp:
Line 702, column 45: ')' expected
Line 707, column 65: ';' expected
Line 710, column 6: illegal start of expression
Line 702, column -1: inconvertible types
Line 0, column 0:
4 errors


Please any help is greatly appreciated.



Tim Bachta





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Reference of transforms in sub-sitemap

2003-06-24 Thread Jeff Sexton

In a subsite map, I'd like to use an xsl in a transform clause that is off
under a different part of my project.  Transform entries in subsite maps
use relative paths, so I have all mine reading something like this:

 

So 'stylesheets' is a directory under the applications directory, as
defined in the main sitemap.

Can I reference a a stylesheet that is off in a different subsite
instead?  Something like:

 

Maybe I'm going about this incorrectly.  I'd just like to have some
stylesheets be globally available in my various sub-applications.

Many thanks for any advice.

Jeff Sexton
The ODS Companies
[EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: esql !!!HELP!!!

2003-06-24 Thread Tim Bachta
Does cocoon compile an xsp into a Java class file?  If so where does it
put it.  The reason why I am asking is that my procedures that I am
having trouble with in cocoon work fine in a java class file.

Tim Bachta
 
 

-Original Message-
From: Tim Bachta 
Sent: Tuesday, June 24, 2003 12:21 PM
To: [EMAIL PROTECTED]
Subject: RE: esql !!!HELP!!!

I wish I could make the stored procedure easier, but unfortunately this
is the procedure that I have been given.

Tim Bachta
 

-Original Message-
From: Scherler, Thorsten [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 24, 2003 12:07 PM
To: [EMAIL PROTECTED]
Subject: RE: esql !!!HELP!!!

Hello Tim,

your code is quite complex.

I had heaps of problem with similar code.

Can you break it down to 1 or 2 parameter?

Your error:
Line 702, column 45: ')' expected
Line 707, column 65: ';' expected
Line 710, column 6: illegal start of expression
Line 702, column -1: inconvertible types

Seeing the last error I reckon that MS SQL have a different type of data
then you expect.

-Original Message-
From: Tim Bachta [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 24, 2003 6:54 PM
To: [EMAIL PROTECTED]
Subject: esql !!!HELP!!!

Ok, I am using the syntax exactly like that of the example at
http://cocoon.apache.org/2.1/userdocs/xsp/esql.html#Stored+Procedure+Sup
port
  and I am getting errors.  I am really confused on why I am
getting these errors.  Here is the code for the xsp that has the stored
procedure in it:





{? = rptLocationDeviations(number,room,beginTime,endTime)}























 














 

and the error message that I am getting is:

 

The org.apache.cocoon.www.sitemap_xmap notifies that
org.apache.cocoon.ProcessingException says:

Language Exception 

More precisely:

org.apache.cocoon.ProcessingException: Language Exception:
org.apache.cocoon.components.language.LanguageException: Error compiling
room_report_xsp:
Line 702, column 45: ')' expected
Line 707, column 65: ';' expected
Line 710, column 6: illegal start of expression
Line 702, column -1: inconvertible types
Line 0, column 0: 
4 errors

 

Please any help is greatly appreciated.

 

Tim Bachta

 

 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Dynamically generated forms with dynamically generatedverification

2003-06-24 Thread Mathias Wiegard
Hi,
I have to generate dynamically a form out of the structure Information of
some XML-data (it's SCORM for learning metadata). Is there a way to verify
dynamically the data entries when submitting the form? If yes, how does it
function or where can I get further informations?
Best regards,
Matze


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: esql !!!HELP!!!

2003-06-24 Thread Tim Bachta
I wish I could make the stored procedure easier, but unfortunately this
is the procedure that I have been given.

Tim Bachta
 

-Original Message-
From: Scherler, Thorsten [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 24, 2003 12:07 PM
To: [EMAIL PROTECTED]
Subject: RE: esql !!!HELP!!!

Hello Tim,

your code is quite complex.

I had heaps of problem with similar code.

Can you break it down to 1 or 2 parameter?

Your error:
Line 702, column 45: ')' expected
Line 707, column 65: ';' expected
Line 710, column 6: illegal start of expression
Line 702, column -1: inconvertible types

Seeing the last error I reckon that MS SQL have a different type of data
then you expect.

-Original Message-
From: Tim Bachta [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 24, 2003 6:54 PM
To: [EMAIL PROTECTED]
Subject: esql !!!HELP!!!

Ok, I am using the syntax exactly like that of the example at
http://cocoon.apache.org/2.1/userdocs/xsp/esql.html#Stored+Procedure+Sup
port
  and I am getting errors.  I am really confused on why I am
getting these errors.  Here is the code for the xsp that has the stored
procedure in it:





{? = rptLocationDeviations(number,room,beginTime,endTime)}























 














 

and the error message that I am getting is:

 

The org.apache.cocoon.www.sitemap_xmap notifies that
org.apache.cocoon.ProcessingException says:

Language Exception 

More precisely:

org.apache.cocoon.ProcessingException: Language Exception:
org.apache.cocoon.components.language.LanguageException: Error compiling
room_report_xsp:
Line 702, column 45: ')' expected
Line 707, column 65: ';' expected
Line 710, column 6: illegal start of expression
Line 702, column -1: inconvertible types
Line 0, column 0: 
4 errors

 

Please any help is greatly appreciated.

 

Tim Bachta

 

 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



living without the document() function?

2003-06-24 Thread Dominic Chambers
I have been having problems with caching and the XSLT document function,
and have read that the document function is a 'bad thing'(tm) anyway.
Generally I have been using XInclude for this purpose, but I also allow
my pages to refer to a site template that they should be rendered
within, and I use the document function within XSLT to allow the
template to be loaded first, and then slot parts of the original page
back in as needed.

This is a much happier arrangement then spliting the template page into
segments, and calling the bits from each page. Perhaps somebody with
experience in this area could say if there is another way of doing this
without XSLT?



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: A tranformer for sxw files

2003-06-24 Thread Vindevogel - van Loco
Take a look at the wiki ...
I published a document there how you can do this ;..

-Original Message-
From: Denis Svishchev [mailto:[EMAIL PROTECTED]
Sent: dinsdag 24 juni 2003 8:51
To: [EMAIL PROTECTED]
Subject: A tranformer for sxw files

Hi!

Is there a transformer for StarOffice sxw files?
I want to use a StarOffice document in sxw format as a source and show its
content as html or pdf.

Thanks in advance.

--
Best regards,
Denis Svishchev
ZAO "Mobicom-Kavkaz"


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: esql !!!HELP!!!

2003-06-24 Thread Scherler, Thorsten
Hello Tim,

your code is quite complex.

I had heaps of problem with similar code.

Can you break it down to 1 or 2 parameter?

Your error:
Line 702, column 45: ')' expected
Line 707, column 65: ';' expected
Line 710, column 6: illegal start of expression
Line 702, column -1: inconvertible types

Seeing the last error I reckon that MS SQL have a different type of data
then you expect.

-Original Message-
From: Tim Bachta [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 24, 2003 6:54 PM
To: [EMAIL PROTECTED]
Subject: esql !!!HELP!!!

Ok, I am using the syntax exactly like that of the example at
http://cocoon.apache.org/2.1/userdocs/xsp/esql.html#Stored+Procedure+Sup
port
  and I am getting errors.  I am really confused on why I am
getting these errors.  Here is the code for the xsp that has the stored
procedure in it:





{? = rptLocationDeviations(number,room,beginTime,endTime)}























 














 

and the error message that I am getting is:

 

The org.apache.cocoon.www.sitemap_xmap notifies that
org.apache.cocoon.ProcessingException says:

Language Exception 

More precisely:

org.apache.cocoon.ProcessingException: Language Exception:
org.apache.cocoon.components.language.LanguageException: Error compiling
room_report_xsp:
Line 702, column 45: ')' expected
Line 707, column 65: ';' expected
Line 710, column 6: illegal start of expression
Line 702, column -1: inconvertible types
Line 0, column 0: 
4 errors

 

Please any help is greatly appreciated.

 

Tim Bachta

 

 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



esql !!!HELP!!!

2003-06-24 Thread Tim Bachta
Ok, I am using the syntax exactly like that of the example at
http://cocoon.apache.org/2.1/userdocs/xsp/esql.html#Stored+Procedure+Sup
port
  and I am getting errors.  I am really confused on why I am
getting these errors.  Here is the code for the xsp that has the stored
procedure in it:





{? = rptLocationDeviations(number,room,beginTime,endTime)}























 














 

and the error message that I am getting is:

 

The org.apache.cocoon.www.sitemap_xmap notifies that
org.apache.cocoon.ProcessingException says:

Language Exception 

More precisely:

org.apache.cocoon.ProcessingException: Language Exception:
org.apache.cocoon.components.language.LanguageException: Error compiling
room_report_xsp:
Line 702, column 45: ')' expected
Line 707, column 65: ';' expected
Line 710, column 6: illegal start of expression
Line 702, column -1: inconvertible types
Line 0, column 0: 
4 errors

 

Please any help is greatly appreciated.

 

Tim Bachta

 

 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Stored Procedure Help

2003-06-24 Thread Tim Bachta
It's a different error this time.  
Error getting ascii data for column ActionName

Thanks for the help

Tim Bachta
 

-Original Message-
From: Frank Taffelt [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 24, 2003 11:17 AM
To: [EMAIL PROTECTED]
Subject: Re: Stored Procedure Help

try the following:




  
{call rptLocationDeviations(number,room,beginTime,endTime)}
  
   
 
  
   

  
   
 
  


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: ESQL help

2003-06-24 Thread Scherler, Thorsten
Hello Tim,

first hint:
http://wiki.cocoondev.org/Search.jsp?query=esql

I think what you are looking for:
http://wiki.cocoondev.org/Wiki.jsp?page=DatabaseConnectionOverview

Hope that helps


-Original Message-
From: Tim Bachta [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 24, 2003 6:08 PM
To: [EMAIL PROTECTED]
Subject: ESQL help

Does anyone know of a good place to get help with esql issues?  I am
having a very difficult time finding any information regarding how to
correctly call a MS SQL stored procedure.  I have looked at the official
cocoon documentation and have the Cocoon developers handbook, neither
have much useful information.  I am in desperate need of help.

 

Thank you

 

Tim Bachta

 

 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Stored Procedure Help

2003-06-24 Thread Frank Taffelt
try the following:




  
{call rptLocationDeviations(number,room,beginTime,endTime)}
  
   
 
  
   

  
   
 
  


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



cocoon protocol issue

2003-06-24 Thread Frank Taffelt
Hi,

in my application i'm using the paginator transformer. This transformer gets
its pagesheet rules from an external file. In my case the paginator
pagesheet is addressed over the cocoon protocol:






where the pagesheet is created based on data from the database:


   
   


The Pagesheet XSP Page is called exactly one time. All other requests
producing the same output like the first time. Why is this content cached
after the first time. In my understanding the output from a XSP page should
never be cached.

Am i doing something wrong ?

thanks,
Frank




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



ESQL help

2003-06-24 Thread Tim Bachta
Does anyone know of a good place to get help with esql issues?  I am
having a very difficult time finding any information regarding how to
correctly call a MS SQL stored procedure.  I have looked at the official
cocoon documentation and have the Cocoon developers handbook, neither
have much useful information.  I am in desperate need of help.

 

Thank you

 

Tim Bachta

 

 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Stored Procedure Help

2003-06-24 Thread Tim Bachta
I am using MS SQL 2000 as a database.  I am trying to run a stored
procedure using the following code:

 



  

{? = call rptLocationDeviations(number,room,beginTime,endTime)}

  

  



  

   

 

  

   

  

   

 



  



 

I am getting back an error message of invalid parameter bindings.  I
checked my input parameters and they are set up correctly.  Any
suggestions would be greatly appreciated.  

 

Thank you

 

Tim Bachta

 

 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Problem installing cocoon 2.0.4 on Tomcat 4.1.18

2003-06-24 Thread Gururaja H
Thanks for the information.
 
Upayavira <[EMAIL PROTECTED]> wrote:
> What may be the cause of following ??> Opening database: C:\Program Files\Apache Group\Tomcat> 4.1\webapps\cocoon\WEB-INF\db\cocoondb HSQLDB server 1.7.1 is running> Use SHUTDOWN to close normally. Use [Ctrl]+[C] to abort abruptlyThat is the HSQL database starting up that is integrated into Cocoon. You can switch it off if you want, but there is no reason to do so at first.Upayavira-To unsubscribe, e-mail: [EMAIL PROTECTED]For additional commands, e-mail: [EMAIL PROTECTED]
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!

Re: Problem installing cocoon 2.0.4 on Tomcat 4.1.18

2003-06-24 Thread Upayavira

> What may be the cause of following ??
> Opening database: C:\Program Files\Apache Group\Tomcat
> 4.1\webapps\cocoon\WEB-INF\db\cocoondb HSQLDB server 1.7.1 is running
> Use SHUTDOWN to close normally. Use [Ctrl]+[C] to abort abruptly

That is the HSQL database starting up that is integrated into Cocoon. You can switch 
it off if you want, but there is no reason to do so at first.

Upayavira

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



i18n

2003-06-24 Thread Kavitha Ramesh
Hi,
 
I read the following in a documentation:
 
untranslated-text: text used for untranslated keys (default is to output the key name).
 
But when I dont have translations in my messages.xml, i get something like "untranslated-text".Actually it should display the key name.I use IBM Websphere 4.0 with Cocoon 2.0.
If someone has any solutions pls tell me.
 
Regards
Kavitha Ramesh.
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!

Suggestion for a Cocoon newbie

2003-06-24 Thread Alberto Zanon
Hello!

I'm a Java developer and I'm looking for a solid system to construct my
sites.
I have already realized an e-commerce site, but without rules.
My jsp pages contain both logic and presentation layer.
Only the data layer is encapsulated into java classes called from jsp.
Now I have to construct an intranet at my company where employees
will register their activity during the day.
The site involves form validation, business logic, and the use of a
database.
Before becoming aware of Cocoon, I thought I would build the site this way:
- a layer of java classes that interface with the database;
- a layer of java classes for business logic;
- a layer of jsp for presentation;

Now I have downloaded the latest version of Cocoon and read many pages of
documentation.
But I'm very confused! I read about XSP but I read also about XMLForm ...
and where I put
my business logic? For example, I downloaded a tutorial from IBM about
Cocoon and databases
but it shows only the XSP pages to dialog with the database and format the
data ... no business
logic in it.
I'm interested about Cocoon because one goal of it is the "MVC" or "SoC"
approach
when a site is developed.

Please, can anyone suggest me the right way to use Cocoon?

Thanks

--
Alberto Zanon

Sistemi & Servizi Informatica Srl
tel +39 0423 722324
fax +39 0423 498302
web http://www.sistemi-servizi.it



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Problem installing cocoon 2.0.4 on Tomcat 4.1.18

2003-06-24 Thread Gururaja H


Hi,
 
I get the following log when tomcat is started:
C:\Program Files\Apache Group\Tomcat 4.1\bin>startupUsing CATALINA_BASE:   C:\Program Files\Apache Group\Tomcat 4.1Using CATALINA_HOME:   C:\Program Files\Apache Group\Tomcat 4.1Using CATALINA_TMPDIR: C:\Program Files\Apache Group\Tomcat 4.1\tempUsing JAVA_HOME:   C:\JAVA\JDK1.3.1_08[INFO] Registry - -Loading registry information[INFO] Registry - -Creating new Registry instance[INFO] Registry - -Creating MBeanServer[INFO] Http11Protocol - -Initializing Coyote HTTP/1.1 on port 8080Starting service Tomcat-StandaloneApache Tomcat/4.1.18server.properties not found, using command line or default propertiesOpening database: C:\Program Files\Apache Group\Tomcat 4.1\webapps\cocoon\WEB-INF\db\cocoondbHSQLDB server 1.7.1 is runningUse SHUTDOWN to close normally. Use [Ctrl]+[C] to abort abruptlyTue Jun 24 19:04:40 IST 2003 Listening for connections ...[INFO] Http11Protocol - -Starting Coyote HTTP/1.1 on port 8080[INFO] ChannelSocket - -JK2: ajp13 listening on 0.0.0.0/0.0.0.0:8009[INFO] JkMain - -Jk running ID=0 time=10/30  config=C:\Program Files\Apache Group\Tomcat 4.1\conf\jk2.properties
   ---
 
What may be the cause of following ??
Opening database: C:\Program Files\Apache Group\Tomcat 4.1\webapps\cocoon\WEB-INF\db\cocoondbHSQLDB server 1.7.1 is runningUse SHUTDOWN to close normally. Use [Ctrl]+[C] to abort abruptly
Thanks,
Geoff Howard <[EMAIL PROTECTED]> wrote:
At 09:39 AM 6/24/2003, you wrote:>>I am able to access localhost:8080/cocoon/ from my browser.>>Does that mean my install is working correctly ?Yes. What made you think you had a problem to begin with?Geoff -To unsubscribe, e-mail: [EMAIL PROTECTED]For additional commands, e-mail: [EMAIL PROTECTED]


Do you Yahoo!?SBC Yahoo! DSL - Now only $29.95 per month!
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!

Re: Problem installing cocoon 2.0.4 on Tomcat 4.1.18

2003-06-24 Thread Gururaja H
Hi,
 
I get the following log when tomcat is started:
C:\Program Files\Apache Group\Tomcat 4.1\bin>startupUsing CATALINA_BASE:   C:\Program Files\Apache Group\Tomcat 4.1Using CATALINA_HOME:   C:\Program Files\Apache Group\Tomcat 4.1Using CATALINA_TMPDIR: C:\Program Files\Apache Group\Tomcat 4.1\tempUsing JAVA_HOME:   C:\JAVA\JDK1.3.1_08[INFO] Registry - -Loading registry information[INFO] Registry - -Creating new Registry instance[INFO] Registry - -Creating MBeanServer[INFO] Http11Protocol - -Initializing Coyote HTTP/1.1 on port 8080Starting service Tomcat-StandaloneApache Tomcat/4.1.18server.properties not found, using command line or default propertiesOpening database: C:\Program Files\Apache Group\Tomcat 4.1\webapps\cocoon\WEB-INF\db\cocoondbHSQLDB server 1.7.1 is runningUse SHUTDOWN to close normally. Use [Ctrl]+[C] to abort abruptlyTue Jun 24 19:04:40 IST 2003 Listening for connections ...[INFO]
 Http11Protocol - -Starting Coyote HTTP/1.1 on port 8080[INFO] ChannelSocket - -JK2: ajp13 listening on 0.0.0.0/0.0.0.0:8009[INFO] JkMain - -Jk running ID=0 time=10/30  config=C:\Program Files\Apache Group\Tomcat 4.1\conf\jk2.properties
   ---
 
What may be the cause of following ??
Opening database: C:\Program Files\Apache Group\Tomcat 4.1\webapps\cocoon\WEB-INF\db\cocoondbHSQLDB server 1.7.1 is runningUse SHUTDOWN to close normally. Use [Ctrl]+[C] to abort abruptly
Thanks,
Geoff Howard <[EMAIL PROTECTED]> wrote:
At 09:39 AM 6/24/2003, you wrote:>>I am able to access localhost:8080/cocoon/ from my browser.>>Does that mean my install is working correctly ?Yes. What made you think you had a problem to begin with?Geoff -To unsubscribe, e-mail: [EMAIL PROTECTED]For additional commands, e-mail: [EMAIL PROTECTED]
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!

RE: sendMail sample not working for Cocoon2.1M2...

2003-06-24 Thread Yan, Charlene
Chris,

Looks like that to field is not changed in the logs.  I hope this email is going to go 
through.  After the send, the same page comes up.

Thanks.

Charlene
: 
Current Sitemap Parameters:
LEVEL 1
PARAM: '1' VALUE: 'new.html'
PARAM: '0' VALUE: 'new.html'

DEBUG   (2003-06-24) 09:40.21:261   [sitemap] (/cocoon/samples/mail/sendmail/new.html) 
HttpProcessor[8080][4]/PreparableMatchNode: Matcher 'host-matcher' matched prepared 
pattern 'localhost' at 
file:/C:/jakarta-tomcat-4.0.5/webapps/cocoon/samples/mail/sendmail/sitemap.xmap:62:57
DEBUG   (2003-06-24) 09:40.21:261   [sitemap] (/cocoon/samples/mail/sendmail/new.html) 
HttpProcessor[8080][4]/InvokeContext: 
Current Sitemap Parameters:
LEVEL 2
PARAM: '0' VALUE: 'localhost'
LEVEL 1
PARAM: '../1' VALUE: 'new.html'
PARAM: '../0' VALUE: 'new.html'

DEBUG   (2003-06-24) 09:40.21:261   [sitemap] (/cocoon/samples/mail/sendmail/new.html) 
HttpProcessor[8080][4]/DefaultComponentFactory: ComponentFactory creating new instance 
of org.apache.cocoon.acting.RequestParameterExistsAction.
DEBUG   (2003-06-24) 09:40.21:271   [sitemap] (/cocoon/samples/mail/sendmail/new.html) 
HttpProcessor[8080][4]/DefaultComponentFactory: logger attribute is 
sitemap.action.requestParamExists
DEBUG   (2003-06-24) 09:40.21:271   [sitemap.action.requestParamExists] 
(/cocoon/samples/mail/sendmail/new.html) 
HttpProcessor[8080][4]/RequestParameterExistsAction: checking default parameters
DEBUG   (2003-06-24) 09:40.21:271   [sitemap.action.requestParamExists] 
(/cocoon/samples/mail/sendmail/new.html) 
HttpProcessor[8080][4]/RequestParameterExistsAction: checking sitemap parameters
DEBUG   (2003-06-24) 09:40.21:271   [sitemap] (/cocoon/samples/mail/sendmail/new.html) 
HttpProcessor[8080][4]/DefaultComponentFactory: ComponentFactory decommissioning 
instance of org.apache.cocoon.acting.RequestParameterExistsAction.
DEBUG   (2003-06-24) 09:40.21:271   [sitemap] (/cocoon/samples/mail/sendmail/new.html) 
HttpProcessor[8080][4]/DefaultComponentFactory: ComponentFactory creating new instance 
of org.apache.cocoon.acting.RequestParameterExistsAction.
DEBUG   (2003-06-24) 09:40.21:271   [sitemap] (/cocoon/samples/mail/sendmail/new.html) 
HttpProcessor[8080][4]/DefaultComponentFactory: logger attribute is 
sitemap.action.requestParamExists
DEBUG   (2003-06-24) 09:40.21:271   [sitemap.action.requestParamExists] 
(/cocoon/samples/mail/sendmail/new.html) 
HttpProcessor[8080][4]/RequestParameterExistsAction: checking default parameters
DEBUG   (2003-06-24) 09:40.21:271   [sitemap.action.requestParamExists] 
(/cocoon/samples/mail/sendmail/new.html) 
HttpProcessor[8080][4]/RequestParameterExistsAction: checking sitemap parameters
DEBUG   (2003-06-24) 09:40.21:271   [sitemap] (/cocoon/samples/mail/sendmail/new.html) 
HttpProcessor[8080][4]/DefaultComponentFactory: ComponentFactory decommissioning 
instance of org.apache.cocoon.acting.RequestParameterExistsAction.
DEBUG   (2003-06-24) 09:40.21:271   [sitemap] (/cocoon/samples/mail/sendmail/new.html) 
HttpProcessor[8080][4]/DefaultComponentFactory: ComponentFactory creating new instance 
of org.apache.cocoon.acting.RequestParameterExistsAction.
DEBUG   (2003-06-24) 09:40.21:271   [sitemap] (/cocoon/samples/mail/sendmail/new.html) 
HttpProcessor[8080][4]/DefaultComponentFactory: logger attribute is 
sitemap.action.requestParamExists
DEBUG   (2003-06-24) 09:40.21:271   [sitemap.action.requestParamExists] 
(/cocoon/samples/mail/sendmail/new.html) 
HttpProcessor[8080][4]/RequestParameterExistsAction: checking default parameters
DEBUG   (2003-06-24) 09:40.21:271   [sitemap.action.requestParamExists] 
(/cocoon/samples/mail/sendmail/new.html) 
HttpProcessor[8080][4]/RequestParameterExistsAction: checking sitemap parameters
DEBUG   (2003-06-24) 09:40.21:271   [sitemap] (/cocoon/samples/mail/sendmail/new.html) 
HttpProcessor[8080][4]/DefaultComponentFactory: ComponentFactory decommissioning 
instance of org.apache.cocoon.acting.RequestParameterExistsAction.
DEBUG   (2003-06-24) 09:40.21:281   [sitemap] (/cocoon/samples/mail/sendmail/new.html) 
HttpProcessor[8080][4]/InvokeContext: 
Current Sitemap Parameters:
LEVEL 2
PARAM: 'target' VALUE: 'form.xml'
PARAM: 'remove' VALUE: 'new.html'
LEVEL 1
PARAM: '../1' VALUE: 'new.html'
PARAM: '../0' VALUE: 'new.html'

DEBUG   (2003-06-24) 09:40.21:321   [sitemap] (/cocoon/samples/mail/sendmail/new.html) 
HttpProcessor[8080][4]/DefaultComponentFactory: ComponentFactory creating new instance 
of org.apache.cocoon.components.pipeline.impl.CachingProcessingPipeline.
DEBUG   (2003-06-24) 09:40.21:321   [sitemap] (/cocoon/samples/mail/sendmail/new.html) 
HttpProcessor[8080][4]/DefaultComponentFactory: no logger attribute available, using 
standard logger
DEBUG   (2003-06-24) 09:40.21:341   [sitemap] (/cocoon/samples/mail/sendmail/new.html) 
HttpProcessor[8080][4]/ResourceLimitingPool: Created a new 
org.apache.cocoon.components.pipeline.impl.CachingProcessingPipeline from the object 
factory.
DEBUG   (2003-06-24) 09:40.21:341   [si

Re: Problem installing cocoon 2.0.4 on Tomcat 4.1.18

2003-06-24 Thread Geoff Howard
At 09:39 AM 6/24/2003, you wrote:
I am able to access localhost:8080/cocoon/ from my browser.

Does that mean my install is working correctly ?
Yes.  What made you think you had a problem to begin with?

Geoff 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Problem installing cocoon 2.0.4 on Tomcat 4.1.18

2003-06-24 Thread Austin Tashis
On Tuesday, June 24, 2003, at 09:39  AM, Gururaja H wrote:

 I am able to access localhost:8080/cocoon/ from my browser.
 
Does that mean my install is working correctly ?
It's certainly a good indication, but I wouldn't say it was working 
correctly without testing everything. Go through the examples and see 
if they all work.
--
Austin
=
Quidquid latine dictum sit, altum sonatur.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: esql:query problem

2003-06-24 Thread Tim Bachta
Here is what I am trying, I am getting an invalid parameter bindings
error, do I need to register the out parameters?  



{? = call rptLocationDeviations(number,

room, beginTime
,
endTime)}















Tim Bachta
 
(913)693-0538 Office
(913)486-5213 Mobile
 

-Original Message-
From: Michael Raffenberg [mailto:[EMAIL PROTECTED] 
Sent: Monday, June 23, 2003 7:25 PM
To: [EMAIL PROTECTED]
Subject: AW: esql:query problem

Hi Tim, 

did you try the  Tag?
Here you find a introduction:
http://cocoon.apache.org/2.1/userdocs/xsp/esql.html#Stored+Procedure+Sup
port

--Raffy

> -Ursprüngliche Nachricht-
> Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
> Gesendet: Montag, 23. Juni 2003 22:55
> An: [EMAIL PROTECTED]
> Betreff: esql:query problem
> 
> 
> I am attempting to call a stored procedure using esql:query.  
> Other stored procedures work using this so it is not a 
> connection issue.  I have narrowed down the issue to being 
> the procedure itself.  I am selecting data and inserting it 
> into a temp table then selecting more data and joining the 
> two data sets.  I need to use the temp tables there is no way 
> around it.  The problem is the stored procedure will not 
> return a result set in cocoon because it sees the insert 
> statement then stops thinking there is not a result set.  My 
> code from my xsp is below, if anyone has any information 
> about why this does not work it would be greatly appreciated. 
>  Thank you
> 
>  
> 
>  
> 
> Tim Bachta
> 
>  
> 
> 
> 
>  
> 
> execute a_joe 
> 'room','beginTime','
> 
> endTime'
> 
>  
> 
>  
> 
> 
> 
>
> 
>   
> 
> 
> 
>  
> 
> 
> 
> 
>  
> 
>
> 
>  
> 
>  
> 
>
> 
> 
> 
>  
> 
>  
> 
>
> 
>  
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Problem installing cocoon 2.0.4 on Tomcat 4.1.18

2003-06-24 Thread Gururaja H
 
I am able to access localhost:8080/cocoon/ from my browser.
 
Does that mean my install is working correctly ?
David Crossley <[EMAIL PROTECTED]> wrote:
Gururaja H wrote:>> I am having problem installing cocoon 2.0.4 on Tomcat 4.1.18> on Windows 2000(on Sun J2SDK 1.3.1_08. I have down loaded the> prebuilt library and> copied the cocoon.war to %CATALINA%\webapps directory.> When I start the Tomcat I get the following message:> Please ask such questions on the cocoon-users list. You will getfar better response there (and that is one purpose of that list).This cocoon-dev list is for development issues only.Also please take note of the statement in the documentationhttp://cocoon.apache.org/2.1/who.htmland refrain from contacting people directly. Everyone is too busyto provide support and anyway that detracts from development time.Anyway, your output log looks like normal start-up messages to me.Did you try to access Cocoon at localhost:8080/cocoon/
 with yourweb browser?--David
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!

Re: clob import: best practice?

2003-06-24 Thread Morten Ludvigsen
> 
> Ditto using the sql transformer. Drats!
> 

I actually was looking at the same problem a couple of days ago. It turns out that the 
SQL
transformer has code that should detect XML automatically. However there has been an 
error that
meant that the XML parser never got instatiated, and that XML was therefore never 
detected. This
has been corrected in version 1.6 (2003/06/11 00:28:31) of SQLTransformer.java. I have 
not tested
this yet so I don't know if it works, but the code looks reasonable to me :-)

HTH.

Morten Ludvigsen



Want to chat instantly with your online friends?  Get the FREE Yahoo!
Messenger http://uk.messenger.yahoo.com/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: A tranformer for sxw files

2003-06-24 Thread Upayavira
Check out:

http://wiki.cocoondev.org/Wiki.jsp?page=OpenOfficeGeneration

On 24 Jun 2003 at 10:50, Denis Svishchev wrote:

> Hi!
> 
>  Is there a transformer for StarOffice sxw files?
> I want to use a StarOffice document in sxw format as a source and show
> its content as html or pdf.
> 
>  Thanks in advance.
> 
> -- 
> Best regards,
> Denis Svishchev
> ZAO "Mobicom-Kavkaz"
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED] For
> additional commands, e-mail: [EMAIL PROTECTED]
> 
> 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: sendMail sample not working for Cocoon2.1M2...

2003-06-24 Thread Christian Haul
On 23.Jun.2003 -- 05:28 PM, Yan, Charlene wrote:
> 
> I'm using Cocoon2.1M2.  I tried to run sample at
> http://localhost:8080/cocoon/samples/mail/sendmail/new.html.  It
> failed.  I didn't get any emails sent.  The mailing archive indicated
> to me that mail.jar and activation.jar should be in
> $tomcat/Webapps/WEB-INF/lib.  So I copied those two jars to the dir.

Correct.

> I also tested my local SMTP server using another java web appication
> which has mailhost as localhost and the email was sent successfully.

Good.

> I restarted tomcat and the mail sample still didn't work.  I tried all
> three: sendMail, sendMailAction and logicsheet.  I also set the
> log-level to debug for sitemap in logkit.xconf file (see below) 

Good.

> 
>   
>   
> 
> It did not give me much useful info (see below).

Actually, the crucial part would be before the snippet you provided.

> Do I have to rebuild Cocoon if I want to run sendMail sample?  Are there any ways to 
> detect why it is not working?

No, no need to rebuild Cocoon. 

Which page is shown as result?

Chris.
-- 
C h r i s t i a n   H a u l
[EMAIL PROTECTED]
fingerprint: 99B0 1D9D 7919 644A 4837  7D73 FEF9 6856 335A 9E08

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: clob import: best practice?

2003-06-24 Thread Christian Haul
On 24.Jun.2003 -- 12:16 AM, Arthur Allen wrote:
> With some help from my friends I've been able to read largish XML clobs
> into a session attributes using modular data base actions.

Great!

> Unfortunately my hope of doing any actual xml processing on these suckers
> using the session attribute generator (very cool) have failed miserably, as 
> SAX & xsl processors
> (I tried them all) refuse to accept the text as valid xml.

You need to parse the text first or make sure that the object
implements xmlizable. Since there is no SQL type that is supposed to
be XML, this cannot be done automatically for you. If there were a
type for this, the JDBCTypeConversions class would be the place to
support it.

> If I were to write a custom action, is there any handy routine I could use 
> to
> rewrite my "xml clob" session attributes into a type acceptable to SAX &the 
> xsl processors?

Well, you need to parse it using a standard XML parser and return a
xmlizable object, DOM would be fine.

> Do DBMS's adhere to some standard in this area? I'm using mysql.

None that I'm aware of.

> Pray tell, what is the current best practice for processing xml clobs under 
> cocoon? Does
> esql offer help?

esql offers a "get-xml" tag that does the parsing for you. Plain XSP
offer the util logicsheet, that has a include-expr tag for a similar
purpose. 

Chris.
-- 
C h r i s t i a n   H a u l
[EMAIL PROTECTED]
fingerprint: 99B0 1D9D 7919 644A 4837  7D73 FEF9 6856 335A 9E08

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How to get a parameter from web.xml

2003-06-24 Thread Lionel Crine
you can try :

Context context = ObjectModelHelper.getContext(objectModel);
String my_variable = context.getInitParameter("my-variable");
Lionel
At 18:34 20/06/2003 +0200, you wrote:
There are some cocoon parameters set in web.xml, e.g. upload-directory.

How can I manage to get the values of my own web.xml-properties in an 
generator or an action ? Is there a hidden path through the forest called 
'objectModel' ?

Or am I conceptually wrong ?

Greetings

Andrew
__
UNICEF bittet um Spenden fur die Kinder im Irak! Hier online an
UNICEF spenden: https://spenden.web.de/unicef/special/?mc=021101
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]