XMLDB Proptocol in cocoon2.0.4

2002-12-11 Thread Shruti Ahuja, Noida



Hi,
 
I am setting up 
an application which reads from an XMLdatabase using the XMLDB API's on 
cocoon 2.0.4 . This was running fine on coccon 2.0.3. 
The problem i am having is when 
an XMLResource is being read from the XML database. It throws an XMLDB API 
exception with the reason being could not read XMLResource. 
What could be the reason for 
this?. Is there any change in cocoon2.0.4 relating to support for XMLDB 
protocol.
 
Thanks,
shruti.


Cocoon's cache problems?

2002-12-11 Thread Maxime.Gheysen
Hello,
I changed a page a saw that the modification hasn't been done. So I made
a backup of my documents and delete them. I restarted tomcat and cocoon,
and all the pages are stil displayed! Even if I press Ctrl-F5 in IE6 or
F5 in opera! How can it be? The document directory is empty!

Thank you for your help.

-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Re: orphans and widows within XSL-FO and Cocoon

2002-12-11 Thread Eddy De Clercq
Hi,

Thanks for the answer. Since there is no release date for implementing this,
are there alternatives for FOP which handle widow/orphans already?

Greetz

Eddy De Clercq
- Original Message -
From: "J.Pietschmann" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, December 11, 2002 9:45 PM
Subject: Re: orphans and widows within XSL-FO and Cocoon


> Eddy De Clercq wrote:
> > I'm testing Cocoon for creating PDF with XSL-FO in
> > order to investigate the orphan and widow control and till now I can't
manage
> > to achieve this.
> Its not implemented yet. The issue is adressed in a redesigned
> version, with no target date yet.
>
> > I've tried both keep-with-next
> This works on table rows, with some caveats. If you want to use
> it for ordinary text, put it in a blind table, as mentioned in the
> FOP FAQ.
>
> > Which versions of XSL-FO can Cocoon handle and where is a good
> > reference for it.
> Recent Cocoon versions should be able to handle all FOP versions from
> 0.20.2 on. Just the latest FOP jar into the lib directory. The FOP
> documentation can be downloaded with both the FOP source and binary
> distribution, as well as read online at
>   http://xml.apache.org/fop
>
> > --Content-Type: text/html; charsetContent-Transfer-Encoding:
> You should not post HTML mail.
> J.Pietschmann
>
>
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. 
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
>
>


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Converting & to & in HTML output...

2002-12-11 Thread Derek Hohls
I would appreciate some help with the following problem. 
 
The input of this XML fragment (partially auto-generated
from an xsp:request): 
 

  
  

 

To this stylesheet fragment:
 

  
  http:///www.adobe.com/svg/viewer/install/";
type="image/svg-xml"
   width="500" height="300" name="SCVEmbed"
   src="{@src}"/>
  
  Link

 

Yields this output (via a HTML-serialized pipeline):
 

 http:///www.adobe.com/svg/viewer/install/";
type="image/svg-xml" 
 width="500" height="300" name="SCVEmbed" 
 src="graph/graph_WQ.svg?point=1&endyr=2002&varid=1"/>

Link
 

In order for the embedded SVG to work properly, the &
in the "src" attributes needs to be converted to a conventional &.
 
I am not sure why the conversion happens for the  
element and not for the  one, but I would appreciate 
any ideas as to how make this happen?!
 
Thanks
Derek
 

-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




How can i have both upload and saving to Xindice on click of a button?

2002-12-11 Thread Sreenivasan N.
Hi all

I am planning to design a user interface where the user upload documents 
say pdf, word, excel. I will also capture some information like author 
name, description entered by the user which then get saved in Xindice.

I want to do the upload and the save on click of a button. Any idea to do 
this or any method

Thanks in advance

Regards
Sreenivasan







"Attitudes are much more important than aptitudes."
"Nothing is impossible for a willing heart"

Sreenivasan N.
Sony SARD
Ext 5816

Email. [EMAIL PROTECTED]
Per: [EMAIL PROTECTED]


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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



XMLForm Howto tips'n tricks

2002-12-11 Thread lpr
That was quite an effort to make the xmlform examples
run. A problem was the xmlform-id in sitemap.xmap that
is referred as id in the xf:form tag in the input file.
The sitemap example in Step 5 of the howto is a bit
strange, there are different versions of the same part>

If you use different xmlform-ids, form-howto and
form-feedback, you need two different versions of
files like start.xml, where this id is used.
I introduced a directory wizard beside existing xmlform.
Here comes my version of the part in samples/xmlform/sitemap.xmap

Note !! that I commented out the validation, because I still have
library problems.
The redirections solve the problem of incorrect references,
e.g. I saw howto-wizard.html and also howto-wizard.

   
  
 
  
  
 
  
  
 
  

  
 












 
  

  
 










   
   




 
  

   




btw: the combination java 1.4 and cocoon cvs snapshot doesn't
even show the first page of the Cocoon2 Demo, at least on my
box. I still use cocoon-2.0.3. Your experiences?





--
Dipl.-Inform. Ludwig Prager / [EMAIL PROTECTED] / www.celp.de
Marienstr. 13, 83530 Waldhausen, Germany / Phone: +49 8074 176619
81314 Munich PF, Germany / Phone: +49 89 7602075
Mobile:+49 173 362 96 01 / Fax: 0180 54 02 52 555 84



-
Please check that your question  has not already been answered in the
FAQ before posting. 

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



xmlform: accessing requestparameter in an xml form representation

2002-12-11 Thread Kirchhoff, Lars
hi,

I created a table output of some data, but as this can be a very long list 
I would like to split this in different screens and therefore thought I can 
use the XPath options. 

what I did is the following:

 

 
Customer Name
Address
Zip
City 
´   Telephon Number  








  



My problem is now, how to replace the XPath statement with some dynamic
values 
from a request parameter like this:


I would like to create a navigation bar, where all alphabetical letters are
displayed.
Only those entry's, which the starts with the selected letter should then be
displayed. 

Does anybody have an idea if this could be working and how? Or do I have to
do this 
with a Bean method which gets me the appropriate entrys from the database
every time, 
I call the page.

thanks 

ciao Lars

-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Re: cocoon out of memory error

2002-12-11 Thread Paul Lee
My immediate reaction is to check the memory heap size of Jetty or Tomcat.

I think Java defaults to a maximum of 64MB per process unless otherwise
specified.  With memory hungry operations like XSLT, 64MB really is not
enough, and I have had the "out of memory error" because of that.

Hope this helps.

> I've been using Cocoon 2.0.2 in Tomcat 4.03 and also in Jetty. In 
> both instances, I frequently get out of memory error. I've tried few 
> tuning measures like turning off debugging but still I get this 
> error, especially when it comes to calls that make database 
> connection(hsql). How is everyong else handling this problem? Any 
> suggestions ?
> 
> Sushil
> 
> _
> STOP MORE SPAM with the new MSN 8 and get 2 months FREE* 
> http://join.msn.com/?page=features/junkmail
> 
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. 
> 
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>




-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




cocoon out of memory error

2002-12-11 Thread Sushil Bhattarai

I've been using Cocoon 2.0.2 in Tomcat 4.03 and also in Jetty. In both 
instances, I frequently get out of memory error. I've tried few tuning 
measures like turning off debugging but still I get this error, especially 
when it comes to calls that make database connection(hsql). How is everyong 
else handling this problem? Any suggestions ?

Sushil

_
STOP MORE SPAM with the new MSN 8 and get 2 months FREE* 
http://join.msn.com/?page=features/junkmail


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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



Re: Problems with

2002-12-11 Thread J.Pietschmann
Jessica Niewint wrote:

The variable $sectioncontent contains a path to an image (Like: 
http://www.myserver.com/xyz.jpg) .
If you point a browser to this address, do you see the image?


Image here
Apart from the problems mentioned elsewhere, content-height
and content-width are not implemented. If you want your image
to have specific measurements, use height and/or width with
absolute measurements (cm, in or pt, not %). If you use both
height and width, your image will be stretched, otherwise
the aspect ratio is conserved. If you omit both height and
width, your image will be rendered with a 72dpi resolution.
This may overflow the available space, which in turn may
cause the image to be dropped (you should see an overflow mark
in the logs).

J.Pietschmann


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Re: orphans and widows within XSL-FO and Cocoon

2002-12-11 Thread J.Pietschmann
Eddy De Clercq wrote:

I'm testing Cocoon for creating PDF with XSL-FO in
order to investigate the orphan and widow control and till now I can't manage
to achieve this.

Its not implemented yet. The issue is adressed in a redesigned
version, with no target date yet.


I've tried both keep-with-next 
This works on table rows, with some caveats. If you want to use
it for ordinary text, put it in a blind table, as mentioned in the
FOP FAQ.


Which versions of XSL-FO can Cocoon handle and where is a good
reference for it.

Recent Cocoon versions should be able to handle all FOP versions from
0.20.2 on. Just the latest FOP jar into the lib directory. The FOP
documentation can be downloaded with both the FOP source and binary
distribution, as well as read online at
 http://xml.apache.org/fop


--Content-Type: text/html; charsetContent-Transfer-Encoding:

You should not post HTML mail.
J.Pietschmann


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




RE: Cocoon 2.1 (was RE: Question about handling of components)

2002-12-11 Thread Antonio Gallardo
Geoff Howard dijo:
>
>
>> -Original Message-
>> From: Fabricio Chalub [mailto:[EMAIL PROTECTED]]
>> Sent: Wednesday, December 11, 2002 2:02 PM
>> To: '[EMAIL PROTECTED]'
>> Subject: Cocoon 2.1 (was RE: Question about handling of components)
> 
>
>> Regarding 2.1, I may be wrong, but my impression is that there
>> hasn't been a complete overhaul of the entire Cocoon core since
>> 2.0, so probably the 'old' 2.0 components are as stable as ever
>> in 2.1, while the new features are still a little turbulent and
>> thus should be used with caution.
>>
>> Is this feeling true?  Is there anybody here using 2.1.x on
>> production servers?  How's the stability?
>
> I think the stability you most need to worry about is stability of the
> API - meaning that 2.1 status is currently in flux even as to how things
> work and what they are named.  If you're going to use 2.1 (as I am on
> live projects) you need to at least monitor the dev mailing list for any
> discussion on any feature you are using so that you can be forewarned if
> the API is changing. You'll also need to be prepared to update from CVS
> fairly frequently, which can be a task depending on the complexity of
> your project and the
> sophistication of your own project's build procedures as relate to
> cocoons.
>
> Geoff Howard

Yes, the complexity of your project will increase, but the reward for
using the lastest Cocoon developed technology is priceless! ;-D

Antonio Gallardo.
>
>
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. 
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>




-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Re: problem with the sitemap and patterns

2002-12-11 Thread Antonio Gallardo
Mirco Pallotta - Sebi dijo:
> Is there a way to specify a GENERAL pattern?
> I know, the wildcards exists for this reason, but if I write in my
> sitemap:
>
> 
Try:



This will work.

Antonio Gallardo
>
> and the user write something like:
> http://localhost:8080/cocoon/mysite/dir1/dir2/file1.html
> then my pattern doesn't match
>
> Furthermore, if the user writes:
> http://localhost:8080/cocoon/mysite/dir1/
> my pattern doesn't match again
>
> I'd like to know if there's a way to match everything that begins with
> "mysite".
>
> Thanks in advance




-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Re: problem with the sitemap and patterns

2002-12-11 Thread Timothy Larson
Try 
Notice the two asterisks.

Tim

>>> [EMAIL PROTECTED] 12/11/02 12:44PM >>>
Is there a way to specify a GENERAL pattern?
I know, the wildcards exists for this reason, but if I write in my sitemap:



and the user write something like:
http://localhost:8080/cocoon/mysite/dir1/dir2/file1.html 
then my pattern doesn't match

Furthermore, if the user writes:
http://localhost:8080/cocoon/mysite/dir1/ 
my pattern doesn't match again

I'd like to know if there's a way to match everything that begins with "mysite".

Thanks in advance





-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




problem with the sitemap and patterns

2002-12-11 Thread Mirco Pallotta - Sebi




Is there a way to specify a GENERAL pattern?I know, the wildcards exists 
for this reason, but if I write in my sitemap:

and the user write something like:http://localhost:8080/cocoon/mysite/dir1/dir2/file1.htmlthen 
my pattern doesn't match
Furthermore, if the user writes:http://localhost:8080/cocoon/mysite/dir1/my 
pattern doesn't match again
I'd like to know if there's a way to match everything that begins with 
"mysite".
Thanks in advance
 


Link Livesites: http://www.informacja.zakopane.pl

2002-12-11 Thread Pawel Bafia
This site is in Polsish. It's an example to my M.A Thesis which I wrote about XML and 
Apache Cocoon, at AGH University  (leading in high technologies in my country).
The site is being used by Turist Information in Tatra Mountains. Content is reguraly 
updatet by workers of this information.
URL: http://www.informacja.zakopane.pl

Regards
Karol Bafa
--r-e-k-l-a-m-a-

Masz dość płacenia prowizji bankowi ?
mBank - załóż konto
http://epieniadze.onet.pl/mbank 

-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Re: Unit Test Cocoon

2002-12-11 Thread Charlene Mitchell
Hi,

Could you possibly send me some code snippets to get
me started?

I'm looking for the Excalibur test components but
haven't found them yet.  :-(
Still lokking mind!

Charlene

 --- Kevin O'Neill <[EMAIL PROTECTED]> wrote: >
On Tue, 2002-12-10 at 19:40, Charlene Mitchell
> wrote:
> > Hi,
> > 
> > Does anyone successfully use JUnit and/or Cactus
> to
> > Unit Test Cocoon actions/generators etc ?
> > 
> > I have my own generators and actions but I'm not
> sure
> > how to call them from JUnit, how to pass in what
> they
> > would normally expect to receive.
> > e.g. an action receives
> >   public Map act(Redirector redirector,
> SourceResolver
> > resolver, Map objectModel, String source,
> Parameters
> > params)
> 
> Have a look at the Excalubur test components. I'm
> using them as the
> basis for my action and generator tests.
> 
> > Thanks (hopefully) in advance for any tips/info
> > 
> > Charlene
> > 
> > PS - the CVS test cases didn't shed any extra
> light
> > 
> > __
> > Do You Yahoo!?
> > Everything you'll ever need on one web page
> > from News and Sport to Email and Music Charts
> > http://uk.my.yahoo.com
> > 
> >
>
-
> > Please check that your question  has not already
> been answered in the
> > FAQ before posting.
> 
> > 
> > To unsubscribe, e-mail:
> <[EMAIL PROTECTED]>
> > For additional commands, e-mail:  
> <[EMAIL PROTECTED]>
> -- 
> If you don't test then your code is only a
> collection of bugs which 
> apparently behave like a working program. 
> 
> Website: http://www.rocketred.com.au/blogs/kevin/
> 
> 
>
-
> Please check that your question  has not already
> been answered in the
> FAQ before posting.
> 
> 
> To unsubscribe, e-mail:
> <[EMAIL PROTECTED]>
> For additional commands, e-mail:  
> <[EMAIL PROTECTED]>
>  

__
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com

-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




RE: Cocoon 2.1 (was RE: Question about handling of components)

2002-12-11 Thread Geoff Howard


> -Original Message-
> From: Fabricio Chalub [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, December 11, 2002 2:02 PM
> To: '[EMAIL PROTECTED]'
> Subject: Cocoon 2.1 (was RE: Question about handling of components)


> Regarding 2.1, I may be wrong, but my impression is that there
> hasn't been a complete overhaul of the entire Cocoon core since
> 2.0, so probably the 'old' 2.0 components are as stable as ever
> in 2.1, while the new features are still a little turbulent and
> thus should be used with caution.
>
> Is this feeling true?  Is there anybody here using 2.1.x on
> production servers?  How's the stability?

I think the stability you most need to worry about is stability of the API -
meaning that 2.1 status is currently in flux even as to how things work and
what they are named.  If you're going to use 2.1 (as I am on live projects)
you need to at least monitor the dev mailing list for any discussion on any
feature you are using so that you can be forewarned if the API is changing.
You'll also need to be prepared to update from CVS fairly frequently, which
can be a task depending on the complexity of your project and the
sophistication of your own project's build procedures as relate to cocoons.

Geoff Howard


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Re: Problems with

2002-12-11 Thread Joerg Heinicke
Hello Jessica,

can you view the resulting XSL FO code (serializing it with XML 
serializer)? Does it contain the ?

Furthermore you have a XSLT error:



This should create a src attribute containing the *value* 
"$sectioncontent". If you want to replace it with the content of 
$sectioncontent, change it to

 src="{$sectioncontent}"

using Attribute Value Template (AVT).

Absolute paths (both http:// and file://) shell work.

Regards,

Joerg

Jessica Niewint wrote:
Hi,  for me it seems to be impossible to generate a PDF with graphics.

I use (cocoon 2.0.3 with java 1.4) ...
The data come from a database (via xsp).

The variable $sectioncontent contains a path to an image (Like: 
http://www.myserver.com/xyz.jpg) .
In the  tag I use this var to define the src 
(src="$sectioncontent").








Image here












But no image will be displayed in the pdf file, even if I put a static 
path in to the  tag : nothing !
Is there something I have to know ? Sitemap, Cocoon ???
I have to generators with html everything will be shown correctly


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Passing parameters from a form to a xmlform bean

2002-12-11 Thread jtbamcai
Hi,
I'm trying to pass parameters from a form to a xmlform bean. In that
way, I could show this parameter's value in the xmlform, calling the get
value of the bean. So, how can I do the request.getParameter from the
bean or from the wizard?
Thanks,
Iker.




-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Re: Cocoon 2.1 (was RE: Question about handling of components)

2002-12-11 Thread Antonio Gallardo
Fabricio Chalub dijo:
>>
>> If you are using the 2.1 version there are some samples. Also you can
>> check wiki:
>>
>> http://outerthought.net/wiki/Wiki.jsp?page=DatabaseActions
>>
>
> No, I'm using 2.0.4.
You can use the the Original Dabatase Actions.
>
> Regarding this very issue, it seems that many useful features (these
> modules, 'expires', etc.) are present only on 2.1.x, with eventual
> backports to the 2.0.x tree.
>
> Regarding 2.1, I may be wrong, but my impression is that there hasn't
> been a complete overhaul of the entire Cocoon core since 2.0, so
> probably the 'old' 2.0 components are as stable as ever in 2.1, while
> the new features are still a little turbulent and thus should be used
> with caution.
>
> Is this feeling true?  Is there anybody here using 2.1.x on production
> servers?  How's the stability?

I am currently using 2.1 in production. It stability seems to be OK. I am
not using all the features. But the 2.1 is almost stable. maybe there is
some hidden bug. I am using mainly, XSP, Modular Database Actions,
Original Database Actions, session-fw and authentication-fw.

Antonio Gallardo
>
> fc
>
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. 
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>




-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




NullPointerException in XSPUtil.relativeFilename()

2002-12-11 Thread Matthias Brunner
Hello,

I have an XSP in which I use the following:
XSPUtil.relativeFilename("myfile.xml", this.objectModel)

The first time when this is called I get an NPE, subsequent calls 
work. (at Line 141 in XSPUtil.java, I guess that this.objectModel is 
null the first time)

What am I doing wrong?

SW: Cocoon 2.0.4, Tomcat 4.1.12, JDK 1.4.1_01, Linux

Best regards!
-- 
Matthias Brunner <[EMAIL PROTECTED]>
PGP FP 7862 32B3 3B75 292A F76F  5042 8587 21AB 5B89 D501
Check out http://blumenstrasse.vol.at/~mb/gpgkey.asc


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Cocoon 2.1 (was RE: Question about handling of components)

2002-12-11 Thread Fabricio Chalub
> 
> If you are using the 2.1 version there are some samples. Also you can
> check wiki:
> 
> http://outerthought.net/wiki/Wiki.jsp?page=DatabaseActions
> 

No, I'm using 2.0.4.

Regarding this very issue, it seems that many useful features (these modules, 
'expires', etc.) are present only on 2.1.x, with eventual backports to the 2.0.x tree.

Regarding 2.1, I may be wrong, but my impression is that there hasn't been a complete 
overhaul of the entire Cocoon core since 2.0, so probably the 'old' 2.0 components are 
as stable as ever in 2.1, while the new features are still a little turbulent and thus 
should be used with caution.

Is this feeling true?  Is there anybody here using 2.1.x on production servers?  How's 
the stability?

fc

-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




RE: Question about handling of components

2002-12-11 Thread Antonio Gallardo
If you are using the 2.1 version there are some samples. Also you can
check wiki:

http://outerthought.net/wiki/Wiki.jsp?page=DatabaseActions

I hope it can help you.

Antonio Gallardo.

Fabricio Chalub dijo:
>>
>> Its fine, but why reinvent the wheel?
>>
>> I think you can use the Modular DB actions that offers you a
>> good approach
>> with DB in Cocoon. Also you can concentrate on your
>> application, rather
>> than in this problems. ;-)
>>
>
> Yes, I can see ... database modules were recently added to Cocoon,
> right?  Are there any examples of their usage? (specially when it comes
> to integration with logicsheets ;)
>
> Thanks for the pointer!
>
> fc
>
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. 
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>




-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




RE: Question about handling of components

2002-12-11 Thread Fabricio Chalub
> 
> Its fine, but why reinvent the wheel?
> 
> I think you can use the Modular DB actions that offers you a 
> good approach
> with DB in Cocoon. Also you can concentrate on your 
> application, rather
> than in this problems. ;-)
> 

Yes, I can see ... database modules were recently added to Cocoon, right?  Are there 
any examples of their usage? (specially when it comes to integration with logicsheets 
;)

Thanks for the pointer!

fc

-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Re: Question about handling of components

2002-12-11 Thread Antonio Gallardo
Its fine, but why reinvent the wheel?

I think you can use the Modular DB actions that offers you a good approach
with DB in Cocoon. Also you can concentrate on your application, rather
than in this problems. ;-)

Antonio Gallardo.

Fabricio Chalub dijo:
> Hi,
>
> I'm trying something here and I would like to see from you if this is
> adequate.  In some of my logicsheets I'm using a helper class to get
> attributes from a database, instead of using, eg, ESQL.  So for example:
>
> Suppose I have a table CAR, with a column COLOR, indexed by key KEY.
> And I have a logicsheet like this (I've simplified/cleared the code a
> bit, nevermind syntax problems)
>
> 
> 
>
> 
>
>   ObjectHelper.getStringAttribute ("CAR", "COLOR",
>  ,
>  new DataSourceHelper(manager))
>
> 
>
> 
>
> That is, getStringAttribute is a static (synchronized) method that
> receives a database connection and DTRT.
>
> Notice the "new DataSourceHelper (manager)"
>
> I have also what I call a "DataSourceHelper", that does something like
> this:
>
> this.manager = manager;
> dbselector = (ComponentSelector)
>   manager.lookup(DataSourceComponent.ROLE + "Selector");
> datasource = (DataSourceComponent) dbselector.select("database");
>
> Inside "getStringAttribute" I do a "getConnection" and DataSourceHelper
> gets me a (new?) connection from the datasource pool.  When I'm done, I
> close everything (the connection including) and call a method on
> DataSourceHelper that does this:
>
> this.dbselector.release (this.datasource);
> this.datasource = null;
> manager.release (this.dbselector);
>
> None of those classes are remotely related to any kind of Avalon
> component.  They deal with them through the manager available
> "magically" on the logicsheet.
>
> My question is if there is a way of doing this in a more integrated way
> to Cocoon/Avalon's components, so I know that I'm using all the pools
> efficiently and I'm not leaking any memory (and I'm not prone to
> deadlocks either).
>
> I hope I posted the relevant parts of my code.
>
> Thanks,
> Fabricio
>
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. 
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>




-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




RE: Calling resources from mounted sitemaps

2002-12-11 Thread Bordet, Simone
Hi,

> Did you try the cocoon pseudo-protocol?   resource="cocoon://stdout"> for the root sitemap, 
> cocoon:/stdout for one in the same sitemap.

Tried, no luck.
I've tried also to setup a local resource that calls the resource in the root sitemap, 
again no luck.

It seems to me that resources referenced by a sub sitemap can only be local to the sub 
sitemap, and resources in the root sitemap cannot be referenced in any way, as I 
always get a:

org.apache.cocoon.ProcessingException: Sitemap: resource 'stdout' not found: 
java.lang.NoSuchMethodException: 
org.apache.cocoon.www.file_.D_.Catalina.webapps.cocoon.simon.simon_xmap.resource_stdout(org.apache.cocoon.components.pipeline.StreamPipeline,
 org.apache.cocoon.components.pipeline.EventPipeline, java.util.List, 
org.apache.cocoon.environment.Environment, java.lang.String, boolean)

It seems to me that the method is always looked up locally to the sub sitemap.

It seems strange to me that resources, that are pipelines "factored out" for reuse, 
cannot be called from a sub sitemap, I must miss something very obvious.

Anyone knows how to solve this problem ?

Thanks

Simon

> -Original Message-
> From: Bordet, Simone [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, December 10, 2002 5:18 PM
> To: [EMAIL PROTECTED]
> Subject: Calling resources from mounted sitemaps
> 
> 
> Hi, 
> I could not find a way to call resources in the root sitemap 
> from a mounted sitemap. 
> I have my resources defined in the root sitemap, and I'd like 
> to call these resources from sub-sitemaps. 
> In the sub sitemap I have a simple matcher: 
>  
> 
>  
> The resource stdout is defined in the root sitemap, as it 
> will be used by several sub sitemaps. 
> If I move the sub sitemap in the root sitemap everything works fine. 
> I could not find any way to make this working, but since I'm 
> fairly new to cocoon maybe there are better ways to achieve 
> what I'd like.
> I'm using Cocoon 2.0.3 and Tomcat 4.1.12. 
> Thanks 
> Simon 
> 

-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Cocoon + Squid

2002-12-11 Thread Fabricio Chalub
Hi,

Does anybody here using Cocoon+Squid have any hints on the best configuration for this 
combination?

Since (as far as I know) Cocoon 2.0.x doesn't have any way of helping proxy caches 
(like Last-Modified, for instance) and the "expires" parameter of the pipeline is only 
functional on the 2.1 branch, I'm /forcing/ Squid to cache the pages for X minutes 
(currently X = 30), modulo the forms and search results pages (since those results 
would be cached too! ;).

This doesn't seem like an optimal configuration, but I can't think of any other way ...

Any help would be appreciated.

Thanks,
Fabricio

-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Cocoon 2.0.4 problem

2002-12-11 Thread Alex McLintock
Hi folks,

I'm trying to upgrade my dev box from a six month old Cocoon to the latest 
release 2.0.4

I've built cocoon.war from source, moved away my old cocoon dir, and 
restarted tomcat and wiped the work dir too.

I'm getting this error when trying to fetch the Cocoon homepage. Any 
suggestions?

Cocoon 2 - Internal server error

type fatal

message SAX2 driver class org.apache.xerces.parsers.SAXParser does not 
implement XMLReader

description java.lang.ClassCastException: 
org.apache.xerces.parsers.StandardParserConfiguration

sender org.apache.cocoon.servlet.CocoonServlet

source Cocoon servlet

stack-trace

java.lang.ClassCastException: 
org.apache.xerces.parsers.StandardParserConfiguration
at org.xml.sax.helpers.XMLReaderFactory.createXMLReader(Unknown 
Source)
at org.xml.sax.helpers.XMLReaderFactory.createXMLReader(Unknown 
Source)
at 
org.apache.cocoon.components.language.markup.AbstractMarkupLanguage.generateCode(AbstractMarkupLanguage.java:377)
at 
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.generateResource(ProgramGeneratorImpl.java:390)
at 
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createResource(ProgramGeneratorImpl.java:353)
at 
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(ProgramGeneratorImpl.java:312)
at org.apache.cocoon.sitemap.Handler.run(Handler.java:267)
at java.lang.Thread.run(Thread.java:484)

request-uri

/cocoon/

path-info




I'm using Apache Tomcat/4.0.4-b1
RedHat Linux 7.x
Java 1.3.0.something

=

Have I built my cocoon.war file wrong somehow?
Shall I try the binary download?

Alex






Openweb Analysts Ltd, London.
Software For Complex Websites http://www.OWAL.co.uk/
Open Source Software Companies please register here 
http://www.OWAL.co.uk/oss_support/


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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



Re: Problems with

2002-12-11 Thread Johannes . Becker

Hi,

have you tried for example the path on your harddisc: .
I had the same problems, and this was the only way it worked.

Jonny



This electronic message contains information from the mmo2 plc Group which
may be
privileged or confidential. The information is intended to be for the use
of the
individual(s) or entity named above. If you are not the intended recipient
be aware
that any disclosure, copying, distribution or use of the contents of this
information
is prohibited. If you have received this electronic message in error,
please notify
us by telephone or email (to the numbers or address above) immediately.




-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




RE: Blank screen on error

2002-12-11 Thread Steven Cummings
Yes, I'm sure. I've had this happen where no action was involved and sometimes no XSP 
at all.  I'll try to make a list of cases that I can reproduce, but that seems to be 
the difficult thing. When the error occurs, I usually have trouble singling out the 
characteristics of the pipeline or sitemap that made it occur, because the logs ofte 
don't say anything when this problem occurs.

/S

"Geoff Howard" <[EMAIL PROTECTED]> wrote:

>> -Original Message-
>> From: Steven Cummings [mailto:[EMAIL PROTECTED]]
>> Sent: Monday, December 09, 2002 3:57 PM
>> To: [EMAIL PROTECTED]
>> Subject: Blank screen on error
>>
>>
>> Hello all,
>>
>> We've occasional seen the messages on this list about a blank
>> screen that is returned when there is some error in a pipeline or
>> resource, and often times (but not quite always) this is while
>> running an XSP. So what I'd like to know is, why does the
>> "handle-error" resource not get invoked in these cases? The blank
>> screen is useless for debugging and the logs don't always say
>> what's wrong. Is there some way to fix this or is is being worked on.
>
>Are you sure it's not just that an action failed gracefully, returned null
>and no
>generator was found in the sitemap outside the action?  i.e.,
>
>
>  
>
>...
>  
>
>
>If that action fails, a blank screen will result.
>
>HTH,
>Geoff Howard
>
>
>-
>Please check that your question  has not already been answered in the
>FAQ before posting. 
>
>To unsubscribe, e-mail: <[EMAIL PROTECTED]>
>For additional commands, e-mail:   <[EMAIL PROTECTED]>
>
>


-- 
Steven Cummings
Columbia, MO
Email: [EMAIL PROTECTED]
AIM:   cummingscs
ICQ:   3330114


__
The NEW Netscape 7.0 browser is now available. Upgrade now! 
http://channels.netscape.com/ns/browsers/download.jsp 

Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/

-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Problems with

2002-12-11 Thread Jessica Niewint
Hi,  for me it seems to be impossible to generate a PDF with graphics.

I use (cocoon 2.0.3 with java 1.4) ...
The data come from a database (via xsp).

The variable $sectioncontent contains a path to an image (Like: 
http://www.myserver.com/xyz.jpg) .
In the  tag I use this var to define the src 
(src="$sectioncontent").







Image here












But no image will be displayed in the pdf file, even if I put a static path 
in to the  tag : nothing !
Is there something I have to know ? Sitemap, Cocoon ???
I have to generators with html everything will be shown correctly 


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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



Re: Problem with Character Encoding in Cocoon 2 / Postgres

2002-12-11 Thread Yves Vindevogel
Hi All,

My problem is solved thanks to your help (all of you)
Therefore, I'd like to post what I did because I had some mails from people 
from Italy and Zwitserland with the same problem.  This is kind of my help 
towards them.

I changed my sitemap:

ISO-8859-1


1024
ISO-8859-1



I added an action:





I added a meta tag into my pages


I changed the jdbc url into  jdbc:postgresql://server/db?charSet=ISO-8859-1


After this, all went well, but I wanted to be sure what the real problem was.
So, I removed all of them again and started to add one by one.

In the end, the most simple one did it:
The serializer :

1024
ISO-8859-1


Jean-Roch Smitt gave me this useful link that helped me most ...
http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=103701015026425&w=2


Thanks again to all !!
-- 
Kind regards,
Yves Vindevogel

Implements
Kortrijkstraat 2 bus 1  --  9700 Oudenaarde  --  Belgium
Phone/Fax: +32 (55) 45.74.73  --  Mobile: +32 (478) 80.82.91
Mail: [EMAIL PROTECTED]  --  www.implements.be

Quote: The winner never says participating is more important than winning.

-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




RE: Add/Remove/Edit Sql entries with buttons (using ESQL)

2002-12-11 Thread Maxime.Gheysen
I'm using Microsoft SQL 2000 server and microsoft's JDBC drivers. Is
there is other simple way? Like executing a simple "INSERT ... INTO..."
SQL command when I click on my button?

-Original Message-
From: Geoff Howard [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, December 11, 2002 2:51 PM
To: [EMAIL PROTECTED]
Subject: RE: Add/Remove/Edit Sql entries with buttons (using ESQL)


To be honest, I don't know how to do this using the regular
Database*Actions as you are - you'll have to dig through the docs and
search the archives of this list.  I have used the modular database
actions, which use input/output modules in general and a special series
of auto-incr modules to handle each database's particular method.  What
DB are you using?  Does it have a native auto-increment concept?

Geoff

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, December 11, 2002 2:23 AM
> To: [EMAIL PROTECTED]
> Subject: RE: Add/Remove/Edit Sql entries with buttons (using ESQL)
>
>
> I want to add an entry in my page when I click on : " type="submit" value="Save" name="cocoon-action-Add"/>" And how can I 
> have an automatic ID? What is wrong in my page? Or in my Sitemap? 
> Where do I have to write witch connection to use?
>
> 
>  src="org.apache.cocoon.acting.DatabaseAddAction" />
>  src="org.apache.cocoon.acting.DatabaseDeleteAction" />
>  src="org.apache.cocoon.acting.DatabaseUpdateAction" />
> 
> ...
> 
> 
>   
>   
>   
> 
>   
> ...
>
> 
>   src="workflowmax/documents/add-workflow.xsp"/>
>
>
>
> 
>
> ---
> 
>xmlns:xsp="http://apache.org/xsp";
>   xmlns:esql="http://apache.org/cocoon/SQL/v2";
>   xmlns:xsp-request="http://apache.org/xsp/request/2.0";>
>   
> Add a Workflow
> 
>   
> 
> Workflow ID: 
> Workflow Name: 
>   Workflow dispatch:  type="text"/>
>   Workflow dispatch2:  type="text"/>
>   Workflow dispatch3:  type="text"/>
>
>   
>   
> 
>   
> 
>
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. 
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
>
>
>


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




RE: [HELP]Exception in ServerPagesGenerator.generate()

2002-12-11 Thread Geoff Howard
You need to have the driver in /cocoon/WEB-INF/lib, declared in web.xml
under classes to load at runtime, and you need to set up the datasource in
cocoon.xconf.  Sounds like you got step one wrong.  See:
http://outerthought.net/wiki/Wiki.jsp?page=SpecificDatabaseConnection

Geoff Howard

-Original Message-
From: Lars Müller [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 10, 2002 5:48 PM
To: [EMAIL PROTECTED]
Subject: [HELP]Exception in ServerPagesGenerator.generate()

Description:org.apache.cocoon.ProcessingException: Exception in
ServerPagesGenerator.generate(): java.lang.RuntimeException: Could not get
the datasource
org.apache.avalon.excalibur.datasource.NoValidConnectionException: No valid
JdbcConnection class available

Please help me! I've made everything but it doesn't work. I have an JDBC
Driver in the JDK1.4, but I don't know if this is the right one. Please let
me know why I get this Exception

Best Regards

Lars


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Re: oprhan/window control, blind tables, keep-with-next etc

2002-12-11 Thread Steven Noels
Eddy De Clercq wrote:


Hi,
 
I've seen in the archives in the FOP mailing list lots of thread 
concerning this matter. Is there any news/update on when features like
orphan/widow control, keep-with-next will be implemented in FOP and Cocoon?

I see you posted your question on [EMAIL PROTECTED] also - FOP is but a 
library for us, so hopefully you will get an answer over there. If that 
fails, you politely ping [EMAIL PROTECTED] instead.


--
Steven Noelshttp://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
Read my weblog at  http://radio.weblogs.com/0103539/
stevenn at outerthought.orgstevenn at apache.org


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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



RE: Add/Remove/Edit Sql entries with buttons (using ESQL)

2002-12-11 Thread Geoff Howard
To be honest, I don't know how to do this using the regular Database*Actions
as you are - you'll have to dig through the docs and search the archives of
this list.  I have used the modular database actions, which use input/output
modules in general and a special series of auto-incr modules to handle each
database's particular method.  What DB are you using?  Does it have a native
auto-increment concept?

Geoff

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, December 11, 2002 2:23 AM
> To: [EMAIL PROTECTED]
> Subject: RE: Add/Remove/Edit Sql entries with buttons (using ESQL)
>
>
> I want to add an entry in my page when I click on : " type="submit" value="Save" name="cocoon-action-Add"/>"
> And how can I have an automatic ID?
> What is wrong in my page? Or in my Sitemap? Where do I have to write
> witch connection to use?
>
> 
>  src="org.apache.cocoon.acting.DatabaseAddAction" />
>  src="org.apache.cocoon.acting.DatabaseDeleteAction" />
>  src="org.apache.cocoon.acting.DatabaseUpdateAction" />
> 
> ...
> 
> 
>   
>   
>   
> 
>   
> ...
>
> 
>   src="workflowmax/documents/add-workflow.xsp"/>
>
>
>
> 
>
> ---
> 
>xmlns:xsp="http://apache.org/xsp";
>   xmlns:esql="http://apache.org/cocoon/SQL/v2";
>   xmlns:xsp-request="http://apache.org/xsp/request/2.0";>
>   
> Add a Workflow
> 
>   
> 
> Workflow ID: 
> Workflow Name: 
>   Workflow dispatch:  type="text"/>
>   Workflow dispatch2:  type="text"/>
>   Workflow dispatch3:  type="text"/>
>
>name="cocoon-action-Add"/>
>   
> 
>   
> 
>
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. 
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
>
>
>


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




oprhan/window control, blind tables, keep-with-next etc

2002-12-11 Thread Eddy De Clercq




Hi,
 
I've seen in the archives in the FOP mailing 
list lots of thread concerning this matter. Is there any news/update on when 
features like
orphan/widow control, keep-with-next will be 
implemented in FOP and Cocoon?
 
Many thanks
 
Eddy De 
Clercq 



Problems with sitemap compilation in jdk1.4 / cocoon 2.0.4

2002-12-11 Thread Andrew Savory

Hi,

I'm seeing some really weird failures in sitemap compilation on a site
under JDK1.4. The site works fine with JDK1.3.1, and this is using Cocoon
recompiled with JDK1.4.

Frequently on starting up, I get Language Exceptions (full error log
below). After a few reloads, the sitemap mysteriously compiles. Looking at
sitemap_xmap.java, it appears to be truncated at line 3996.

Any ideas?

Cocoon 2 - Internal server error

type fatal

message Language Exception

description org.apache.cocoon.ProcessingException: Language Exception:
org.apache.cocoon.components.language.LanguageException: Error compiling
sitemap_xmap: Line 3996, column 33: '}' expected Line 1033, column 25:
method error_process_1_500(org.apache.cocoon.sitemap.SitemapRedirector,
org.apache.cocoon.environment.Environment, java.util.Map,
java.lang.Exception, boolean) not found in class
org.apache.cocoon.www.file_.usr.local.jakarta_tomcat.webapps.cocoon.mount.aw.sitemap_xmap
Line 1275, column 8: method
matchN4003B0(org.apache.cocoon.sitemap.SitemapRedirector,
org.apache.cocoon.environment.Environment,
org.apache.cocoon.components.pipeline.StreamPipeline,
org.apache.cocoon.components.pipeline.EventPipeline, boolean,
java.util.List) not found in class
org.apache.cocoon.www.file_.usr.local.jakarta_tomcat.webapps.cocoon.mount.aw.sitemap_xmap
Line 1281, column 8: method
matchN4003C7(org.apache.cocoon.sitemap.SitemapRedirector,
org.apache.cocoon.environment.Environment,
org.apache.cocoon.components.pipeline.StreamPipeline,
org.apache.cocoon.components.pipeline.EventPipeline, boolean,
java.util.List) not found in class
org.apache.cocoon.www.file_.usr.local.jakarta_tomcat.webapps.cocoon.mount.aw.sitemap_xmap
Line 1287, column 8: method
matchN4003EE(org.apache.cocoon.sitemap.SitemapRedirector,
org.apache.cocoon.environment.Environment,
org.apache.cocoon.components.pipeline.StreamPipeline,
org.apache.cocoon.components.pipeline.EventPipeline, boolean,
java.util.List) not found in class
org.apache.cocoon.www.file_.usr.local.jakarta_tomcat.webapps.cocoon.mount.aw.sitemap_xmap
Line 1294, column 8: method
matchN400415(org.apache.cocoon.sitemap.SitemapRedirector,
org.apache.cocoon.environment.Environment,
org.apache.cocoon.components.pipeline.StreamPipeline,
org.apache.cocoon.components.pipeline.EventPipeline, boolean,
java.util.List) not found in class
org.apache.cocoon.www.file_.usr.local.jakarta_tomcat.webapps.cocoon.mount.aw.sitemap_xmap
Line 1320, column 8: method
matchN40044A(org.apache.cocoon.sitemap.SitemapRedirector,
org.apache.cocoon.environment.Environment,
org.apache.cocoon.components.pipeline.StreamPipeline,
org.apache.cocoon.components.pipeline.EventPipeline, boolean,
java.util.List) not found in class
org.apache.cocoon.www.file_.usr.local.jakarta_tomcat.webapps.cocoon.mount.aw.sitemap_xmap
Line 1327, column 8: method
matchN400461(org.apache.cocoon.sitemap.SitemapRedirector,
org.apache.cocoon.environment.Environment,
org.apache.cocoon.components.pipeline.StreamPipeline,
org.apache.cocoon.components.pipeline.EventPipeline, boolean,
java.util.List) not found in class
org.apache.cocoon.www.file_.usr.local.jakarta_tomcat.webapps.cocoon.mount.aw.sitemap_xmap
Line 1334, column 8: method
matchN400498(org.apache.cocoon.sitemap.SitemapRedirector,
org.apache.cocoon.environment.Environment,
org.apache.cocoon.components.pipeline.StreamPipeline,
org.apache.cocoon.components.pipeline.EventPipeline, boolean,
java.util.List) not found in class
org.apache.cocoon.www.file_.usr.local.jakarta_tomcat.webapps.cocoon.mount.aw.sitemap_xmap
Line 1341, column 8: method
matchN4004CF(org.apache.cocoon.sitemap.SitemapRedirector,
org.apache.cocoon.environment.Environment,
org.apache.cocoon.components.pipeline.StreamPipeline,
org.apache.cocoon.components.pipeline.EventPipeline, boolean,
java.util.List) not found in class
org.apache.cocoon.www.file_.usr.local.jakarta_tomcat.webapps.cocoon.mount.aw.sitemap_xmap
Line 1348, column 8: method
matchN400506(org.apache.cocoon.sitemap.SitemapRedirector,
org.apache.cocoon.environment.Environment,
org.apache.cocoon.components.pipeline.StreamPipeline,
org.apache.cocoon.components.pipeline.EventPipeline, boolean,
java.util.List) not found in class
org.apache.cocoon.www.file_.usr.local.jakarta_tomcat.webapps.cocoon.mount.aw.sitemap_xmap
Line 1354, column 8: method
matchN40053D(org.apache.cocoon.sitemap.SitemapRedirector,
org.apache.cocoon.environment.Environment,
org.apache.cocoon.components.pipeline.StreamPipeline,
org.apache.cocoon.components.pipeline.EventPipeline, boolean,
java.util.List) not found in class
org.apache.cocoon.www.file_.usr.local.jakarta_tomcat.webapps.cocoon.mount.aw.sitemap_xmap
Line 1511, column 25: method
error_process_8_500(org.apache.cocoon.sitemap.SitemapRedirector,
org.apache.cocoon.environment.Environment, java.util.Map,
java.lang.Exception, boolean) not found in class
org.apache.cocoon.www.file_.usr.local.jakarta_tomcat.webapps.cocoon.mount.aw.sitemap_xmap
Line 1380, column 8: method
matchN40056F(org.apache.cocoo

Re: Problem with Character Encoding in Cocoon 2 / Postgres

2002-12-11 Thread Jean-Roch SCHMITT
Hi/Bonjour,

As far as I understand, I have encountered the same problem.
I have found the following link useful :
http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=103701015026425&w=2

Indeed I have solved the problem this way.


I hope this helps.

rgds



Hi,

I'm using Cocoon 2 and Postgres 7 on Slackware 8, JDK 1.4.
My database and pages contain French characters (like é,à,ç, ...)
I use XSP to get the data from PG.

I can show all the data correctly when I set the encoding to ISO-8859-1.
I wrote some plsql procedures to store data.  I call them from my XSP pages.
This is where it goes wrong: the French characters are stored in an unreadable
manner.  (Storing is the only thing where it goes wrong)

Calling the function from the command line with the French characters works
fine.  It's only when I post the page and call the function that it goes
wrong.

Any ideas ??



-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Question about handling of components

2002-12-11 Thread Fabricio Chalub
Hi,

I'm trying something here and I would like to see from you if this is adequate.  In 
some of my logicsheets I'm using a helper class to get attributes from a database, 
instead of using, eg, ESQL.  So for example:

Suppose I have a table CAR, with a column COLOR, indexed by key KEY.  And I have a 
logicsheet like this (I've simplified/cleared the code a bit, nevermind syntax 
problems)

 




  ObjectHelper.getStringAttribute ("CAR", "COLOR", 
 , 
 new DataSourceHelper(manager))





That is, getStringAttribute is a static (synchronized) method that receives a database 
connection and DTRT.  

Notice the "new DataSourceHelper (manager)"

I have also what I call a "DataSourceHelper", that does something like this:

this.manager = manager;
dbselector = (ComponentSelector) 
  manager.lookup(DataSourceComponent.ROLE + "Selector");
datasource = (DataSourceComponent) dbselector.select("database");

Inside "getStringAttribute" I do a "getConnection" and DataSourceHelper gets me a 
(new?) connection from the datasource pool.  When I'm done, I close everything (the 
connection including) and call a method on DataSourceHelper that does this:

this.dbselector.release (this.datasource);
this.datasource = null;
manager.release (this.dbselector);

None of those classes are remotely related to any kind of Avalon component.  They deal 
with them through the manager available "magically" on the logicsheet.  

My question is if there is a way of doing this in a more integrated way to 
Cocoon/Avalon's components, so I know that I'm using all the pools efficiently and I'm 
not leaking any memory (and I'm not prone to deadlocks either).

I hope I posted the relevant parts of my code.

Thanks,
Fabricio

-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Re: i18n and xmlform combination- HELP

2002-12-11 Thread Konstantin Piroumian
i18n and xmlform combination- HELPPlease do not use HTML messages!

Try to remove the LocaleAction and leave the:




if this helps, move the action to the beginning of the matcher and wrap with
it all the contents. Do not forget to change other parameters, e.g.:


---^

Konstantin


- Original Message -
From: Hong Gia Dinh
To: [EMAIL PROTECTED]
Sent: Wednesday, December 11, 2002 13:23
Subject: i18n and xmlform combination- HELP





-Original Message-
From: Hong Gia Dinh
Sent: 10 December 2002 15:10
To: '[EMAIL PROTECTED]'
Subject: RE: i18n and xmlform combination-HELP


I just applied i18n into the XMLForm sample of Cocoon2.1 like this, but it
cant apply i18n
in sitemap i declare :


http://www.ascc.net/xml/schematron"/>


























and my start.xsp like this:

http://apache.org/xsp";
xmlns:xsp-request="http://apache.org/xsp/request/2.0";
xmlns:i18n="http://apache.org/cocoon/i18n/2.0";>



start?locale=en
English


start?locale=fr
French










homepage







and my userIdentity.xsp like this :

http://apache.org/xsp";
xmlns:xsp-request="http://apache.org/xsp/request/2.0";
xmlns:i18n="http://apache.org/cocoon/i18n/2.0";>
http://xml.apache.org/cocoon/xmlform/2002";>



wizard?cocoon-action-start=true&locale=en
English



wizard?cocoon-action-start=true&locale=fr

French




personal_information

.
and wizard2html.xsl :




http://www.w3.org/1999/XSL/Transform";
xmlns:xf="http://xml.apache.org/cocoon/xmlform/2002";
exclude-result-prefixes="xalan"
xmlns:i18n="http://apache.org/cocoon/i18n/2.0";>




XMLForm - Cocoon Feedback Wizard













but every time i click to change from english to french in the userIdentify
form and even in the english form the part "

personal_information

" always display 'personal_information' (message key)- not 'Personal
Information'
although i define the messages files and in sitemap :

messages

translation
true

for the directory and the file
i am really getting crazy with it!!
can somebody tell me what i did wrong ???
thanks very very much in advance
GD











-Original Message-
From: Kirchhoff, Lars [mailto:[EMAIL PROTECTED]]
Sent: 10 December 2002 13:54
To: '[EMAIL PROTECTED]'
Subject: AW: i18n and xmlform combination-HELP


have you set the {locale} variable correctly or are you sure this working.
my sitemap looks like this:
- code -
 
   
 
   
 
- /code 
try to set the locale parameter to a hard coded value to see if this is
working:
eg.  
to reference a dictionary like dict_tw.xml
ciao Lars
-Ursprüngliche Nachricht-
Von: Hong Gia Dinh [mailto:[EMAIL PROTECTED]]
Gesendet: Montag, 9. Dezember 2002 18:38
An: [EMAIL PROTECTED]
Betreff: i18n and xmlform combination-HELP


could sb explain me why i cant use the message key in the message when i use
i18n and xmlform ?
i applied the sample in the how-to i18n and xml form for my application but
it cant read the message key ?


what will the link i will call for translation in xmlform?
thanks very much in advance
GD
-
Please check that your question  has not already been answered in the
FAQ before posting. 
To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>


---

i18n and xmlform combination- HELP

2002-12-11 Thread Hong Gia Dinh
Title: i18n and xmlform combination- HELP







-Original Message-
From: Hong Gia Dinh 
Sent: 10 December 2002 15:10
To: '[EMAIL PROTECTED]'
Subject: RE: i18n and xmlform combination-HELP



I just applied i18n into the XMLForm sample of Cocoon2.1 like this, but it cant apply i18n


in sitemap i declare :

    
    http://www.ascc.net/xml/schematron"/>
    
    
    
    
                        
    


    
    
    
        
            
        
    
    
    
    
    
    
        
            
        
    
                            
    




and my start.xsp like this:



http://apache.org/xsp" xmlns:xsp-request="http://apache.org/xsp/request/2.0" xmlns:i18n="http://apache.org/cocoon/i18n/2.0">


    
        
        start?locale=en
        English
        
        
            start?locale=fr
        French
        
    
    
    
    
    
        
            
                
            homepage

                        
                    
                
            
        
    



and my userIdentity.xsp like this :



http://apache.org/xsp" xmlns:xsp-request="http://apache.org/xsp/request/2.0" xmlns:i18n="http://apache.org/cocoon/i18n/2.0">

    http://xml.apache.org/cocoon/xmlform/2002">
        
            
                wizard?cocoon-action-start=true&locale=en


                English
            
            
                wizard?cocoon-action-start=true&locale=fr
                
                French
            
        
        
            
                personal_information
            


.


and wizard2html.xsl :





http://www.w3.org/1999/XSL/Transform"
    xmlns:xf="http://xml.apache.org/cocoon/xmlform/2002"
    exclude-result-prefixes="xalan" xmlns:i18n="http://apache.org/cocoon/i18n/2.0">
    
        
            
        
            XMLForm - Cocoon Feedback Wizard
            
            
                
            
        
    
    
    
        
            
        
    



but every time i click to change from english to french in the userIdentify form and even in the english form the part "

            
                personal_information
            


" always display 'personal_information' (message key)- not 'Personal Information'


although i define the messages files and in sitemap :


            

                messages
                translation
                true
            


for the directory and the file


i am really getting crazy with it!!


can somebody tell me what i did wrong ???


thanks very very much in advance
GD












-Original Message-
From: Kirchhoff, Lars [mailto:[EMAIL PROTECTED]]
Sent: 10 December 2002 13:54
To: '[EMAIL PROTECTED]'
Subject: AW: i18n and xmlform combination-HELP



have you set the {locale} variable correctly or are you sure this working. 


my sitemap looks like this:


- code -
       
   
 
   
  
- /code 


try to set the locale parameter to a hard coded value to see if this is
working:
eg.  


to reference a dictionary like dict_tw.xml


ciao Lars


-Ursprüngliche Nachricht-
Von: Hong Gia Dinh [mailto:[EMAIL PROTECTED]]
Gesendet: Montag, 9. Dezember 2002 18:38
An: [EMAIL PROTECTED]
Betreff: i18n and xmlform combination-HELP



could sb explain me why i cant use the message key in the message when i use
i18n and xmlform ? 
i applied the sample in the how-to i18n and xml form for my application but
it cant read the message key ? 



what will the link i will call for translation in xmlform? 
thanks very much in advance 
GD 


-
Please check that your question  has not already been answered in the
FAQ before posting. 


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





aggregation !!

2002-12-11 Thread Hong Gia Dinh
Title: aggregation !!





Hi all,


can anybody explain me how i can retrieve the value from the xml/xsp file from a xsl file that is not any declaration in the sitemap that showig the pipeline between them???

in the cocoon/samples/i18n i found that cocoon can do this, but i really dont understand why they can do that (cos i tried to apply it in my application but i can not work)(the file "site2html.xsl"

in the map:resources declaration can retrieve and attach the value of the menu.xml/xsp file)


can you show me?
thanks very much in advance
GD





RE: orphans and widows within XSL-FO and Cocoon

2002-12-11 Thread caleb racey
Doug Tidwell from IBMs developer works had a very in depth  (and very
good) session about FOP at apacheCon (the developerworks toot-o-matic
uses it).

He said he couldn't get keep-with-next to work (something about blind
tables  I think).

Anyhow he said developerworks would be publishing a very in depth
tutorial on FOP in december so keep you eyes open on
http://www-106.ibm.com/developerworks/.

I can send you the pdf of his presentation if you want (all 228
pages)anybody know what the copyright issues are (can't find
anything on the disk)? 

Caleb Racey
Webteam 
University Computer Service 
University of Newcastle
tel 0191 222 5916


> -Original Message-
> From: Eddy De Clercq [mailto:[EMAIL PROTECTED]]
> Sent: 11 December 2002 11:25
> To: [EMAIL PROTECTED]
> Subject: orphans and widows within XSL-FO and Cocoon
> 
> Hi,
> 
> I have 2 questions:
> 1. I'm testing Cocoon for creating PDF with XSL-FO in order to
investigate
> the orphan and widow control and till now I can't manage to achieve
this.
> I'm using http://www.w3.org/TR/1998/WD-xsl-19980818 as a reference and
> I've just adapted the existing simple-page2fo.xsl (see below). I've
tried
> both keep-with-next and widows and orphans, but none of these seem to
> work.
> I'm fairly new to XSL-FO so it could be that I'm doing something
wrong.
> Can you help me out pls?
> 2. I've also tried http://www.antennahouse.com/XSLsample/fo/sample-
> keepwith-next_1.fo (which is linked from
> http://xml.apache.org/cocoon/link/xsl.html) and this seems not to work
> either. Which versions of XSL-FO can Cocoon handle and where is a good
> reference for it.
> 
> Thanks in advance
> 
> Eddy De Clercq
> 
> 
> 
>xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
>   xmlns:fo="http://www.w3.org/1999/XSL/Format";>
> 
>   
>http://www.w3.org/1999/XSL/Format";>
> 
> 
> page-height="297mm"
>   page-width="210mm"
>   margin-top="10mm"
>   margin-bottom="20mm"
>   margin-left="25mm"
>   margin-right="25mm">
>
>
>
>  
> 
>  
>
>position="first"/>
>
>  
> 
> 
> 
>   
>  font-size="10pt"
> font-family="serif"
> line-height="14pt">page 
>   
> 
>   
> 
>   
> 
>
>   
> 
>   
>  align="center">
>   
>   
>  align="left">
>   
>   
>  align="left">
>   
> 
> 
> --extPart_000_003E_01C2A110.4811A5E0
> Content-Type: text/html;
>   charsetso-8859-1"
> Content-Transfer-Encoding: quoted-printable
> 
> 
> 
> 
> 
> 
> 
> 
> Hi,
>  
> I have 2 questions:
> 1. I'm testing Cocoon for creating PDF
with
> XSL-FO
> in order to investigate the orphan and widow control and till now I
can't
> manage
> to achieve this.
> I'm using  href="http://www.w3.org/TR/1998/WD-xsl-
> 19980818">http://www.w3.org/TR/1998/WD-xsl-19980818 as
> a reference and I've just adapted the existing simple-page2fo.xsl (see
> below).
> I've tried both keep-with-next and widows and orphans, but none of
these
> seem to
> work.
> I'm fairly new to XSL-FO so it could be
that
> I'm
> doing something wrong. Can you help me out pls?
> 2. I've also tried  href="http://www.antennahouse.com/XSLsample/fo/sample-keepwith-
> next_1.fo">http://www.antennahouse.com/XSLsample/fo/sample-keepwith-
> next_1.fo (which
> is linked from 
href="http://xml.apache.org/cocoon/link/xsl.html";>http://xml.apache.org/
co
> coon/link/xsl.html)
> and this seems not to work either. Which versions of XSL-FO can Cocoon
> handle
> and where is a good reference for it.
>  
> Thanks in advance
>  
> Eddy De Clercq
>  
> 
>  
>  xmlns:xsl="
href="http://www.w3.org/1999/XSL/Transform";>http://www.w3.org/1999/XSL/T
ra
> nsform" 
> xmlns:fo="
href="http://www.w3.org/1999/XSL/Format";>http://www.w3.org/1999/XSL/Form
at
> ">
>  
>    match="/">   http://www.w3.org/1999/XSL/Form
at
> ">  
>      set>
>  master-
>
name="page" &nb
sp
> ;   
> page-height="297mm"
>
   &n
bs
> p; 
> page-
>
width="210mm" &
nb
> sp;   
> margin-top="10mm"
>
   &n
bs
> p; 
> margin-bottom="20mm"
>
   &n
bs
> p; 
> margin-left="25mm"
>
   &n
bs
> p; 
> margin-right="25mm">  
>  extent="30mm"/>  
>  margin-top="30mm"/>  
> 
> 
>  
> 
>  master-name="all">  
>  
>  page-position="first"/>  
>  alternatives>
>    
> 
>  
>      master-name="all">  

orphans and widows within XSL-FO and Cocoon

2002-12-11 Thread Eddy De Clercq
Hi,

I have 2 questions:
1. I'm testing Cocoon for creating PDF with XSL-FO in order to investigate the orphan 
and widow control and till now I can't manage to achieve this.
I'm using http://www.w3.org/TR/1998/WD-xsl-19980818 as a reference and I've just 
adapted the existing simple-page2fo.xsl (see below). I've tried both keep-with-next 
and widows and orphans, but none of these seem to work.
I'm fairly new to XSL-FO so it could be that I'm doing something wrong. Can you help 
me out pls?
2. I've also tried http://www.antennahouse.com/XSLsample/fo/sample-keepwith-next_1.fo 
(which is linked from http://xml.apache.org/cocoon/link/xsl.html) and this seems not 
to work either. Which versions of XSL-FO can Cocoon handle and where is a good 
reference for it.

Thanks in advance

Eddy De Clercq



http://www.w3.org/1999/XSL/Transform";
  xmlns:fo="http://www.w3.org/1999/XSL/Format";>

  
   http://www.w3.org/1999/XSL/Format";>
   

 
   
   
   
 

 
   
  
   
 



  
 page 
   

  

  

   
  

  

  
  

  
  

  


--extPart_000_003E_01C2A110.4811A5E0
Content-Type: text/html;
charsetso-8859-1"
Content-Transfer-Encoding: quoted-printable








Hi,
 
I have 2 questions:
1. I'm testing Cocoon for creating PDF with XSL-FO 
in order to investigate the orphan and widow control and till now I can't manage 
to achieve this.
I'm using http://www.w3.org/TR/1998/WD-xsl-19980818";>http://www.w3.org/TR/1998/WD-xsl-19980818 as
 
a reference and I've just adapted the existing simple-page2fo.xsl (see below). 
I've tried both keep-with-next and widows and orphans, but none of these seem to 
work.
I'm fairly new to XSL-FO so it could be that I'm 
doing something wrong. Can you help me out pls?
2. I've also tried http://www.antennahouse.com/XSLsample/fo/sample-keepwith-next_1.fo";>http://www.antennahouse.com/XSLsample/fo/sample-keepwith-next_1.fo (which
 
is linked from http://xml.apache.org/cocoon/link/xsl.html";>http://xml.apache.org/cocoon/link/xsl.html)
 
and this seems not to work either. Which versions of XSL-FO can Cocoon handle 
and where is a good reference for it.
 
Thanks in advance
 
Eddy De Clercq
 

 
http://www.w3.org/1999/XSL/Transform" 
 
xmlns:fo="http://www.w3.org/1999/XSL/Format";>http://www.w3.org/1999/XSL/Format">
 
     http://www.w3.org/1999/XSL/Format">  
 
     
   
   
   
 

 
 
   
  
   
 
    

 
       page 
  
 
 
      
  
       
  
 
        
        
        








Re: Problem with Character Encoding in Cocoon 2 / Postgres

2002-12-11 Thread Yves Vindevogel

I didn't have this ...

I recreated the database with this encoding in it 
but it still doesn't work


> On Wednesday 11 December 2002 10:32, Yves Vindevogel wrote:
> > I'm using Cocoon 2 and Postgres 7 on Slackware 8, JDK 1.4.
> > My database and pages contain French characters (like é,à,ç, ...)
> > I use XSP to get the data from PG.
> >
> > Calling the function from the command line with the French
> > characters works fine.  It's only when I post the page and call
> > the function that it goes wrong.
>
> Is multibyte encoding enabled in the database (e.g. createdb -E
> ISO-8859-1 mydb)?
>
> Best regards!

-- 
Kind regards,
Yves Vindevogel

Implements
Kortrijkstraat 2 bus 1  --  9700 Oudenaarde  --  Belgium
Phone/Fax: +32 (55) 45.74.73  --  Mobile: +32 (478) 80.82.91
Mail: [EMAIL PROTECTED]  --  www.implements.be

Quote: The winner never says participating is more important than winning.

-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Using database actions

2002-12-11 Thread Maxime.Gheysen
I have a form in my page : 
  
personnel  

  
Workflow Name: 
Workflow dispatch:   
Workflow dispatch2: 
Workflow dispatch3:
   


  
I want to set the entries : wfName - Dispatcher1 - Dispatcher2 -
Dispatcher3 in a table with the name Workflowlist. My connection is
"personnel", I have the following action : "add-dbentry" and the
action-set "Add". 
What is missing? When I click on button "Save" I just go to url :
.../add-dbentry!

Thanks 4 your help!

-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Re: Problem with Character Encoding in Cocoon 2 / Postgres

2002-12-11 Thread Matthias Brunner
On Wednesday 11 December 2002 10:32, Yves Vindevogel wrote:
> I'm using Cocoon 2 and Postgres 7 on Slackware 8, JDK 1.4.
> My database and pages contain French characters (like é,à,ç, ...)
> I use XSP to get the data from PG.
>
> Calling the function from the command line with the French
> characters works fine.  It's only when I post the page and call
> the function that it goes wrong.
>

Is multibyte encoding enabled in the database (e.g. createdb -E 
ISO-8859-1 mydb)?

Best regards!
-- 
Matthias Brunner <[EMAIL PROTECTED]>
PGP FP 7862 32B3 3B75 292A F76F  5042 8587 21AB 5B89 D501
Check out http://blumenstrasse.vol.at/~mb/gpgkey.asc


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Problem with Character Encoding in Cocoon 2 / Postgres

2002-12-11 Thread Yves Vindevogel
Hi,

I'm using Cocoon 2 and Postgres 7 on Slackware 8, JDK 1.4.
My database and pages contain French characters (like é,à,ç, ...)
I use XSP to get the data from PG.

I can show all the data correctly when I set the encoding to ISO-8859-1.
I wrote some plsql procedures to store data.  I call them from my XSP pages.
This is where it goes wrong: the French characters are stored in an unreadable 
manner.  (Storing is the only thing where it goes wrong)

Calling the function from the command line with the French characters works 
fine.  It's only when I post the page and call the function that it goes 
wrong.

Any ideas ??




Here's some of my code:

1) Sample XSP where it goes wrong


http://apache.org/xsp";
xmlns:esql="http://apache.org/cocoon/SQL/v2";
xmlns:xsp-request="http://apache.org/xsp/request/2.0";
xmlns:xsp-session="http://apache.org/xsp/session/2.0";
create-session="true">












Nouveau type de cancer







pierrefabre



select fnCancerTypeInsert ('')





if (.equals("1"))
{
Ce type de 
cancer existe déja.  Les modifications ne 
sont pas enrégistrées.
} ;
if (.equals("0"))
{
Les 
modifications sont enrégistrées.
};













2) Cocoon.xconf setting for the database


  
  
jdbc:postgresql://10.32.1.3:5432/pierrefabre?charSet=LATIN1
  postgres
  

  

3) The pgplsql function called in that page 
create function fnCancerTypeInsert (varchar(50)) returns integer as
'
declare
p_description alias for $1 ;

v_count integer ;
begin
select into v_count count(*) from tblCancerTypes
where upper(description) = upper(p_description) ;

if v_count > 0 then
return 1 ;
end if ;

insert into tblCancerTypes
values (p_description) ;

return 0 ;
end ;
' language 'plpgsql' ;







-- 
Kind regards,
Yves Vindevogel

Implements
Kortrijkstraat 2 bus 1  --  9700 Oudenaarde  --  Belgium
Phone/Fax: +32 (55) 45.74.73  --  Mobile: +32 (478) 80.82.91
Mail: [EMAIL PROTECTED]  --  www.implements.be

Quote: The winner never says participating is more important than winning.

-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Cocoon-2.0.4 possible bug in Sql transformer

2002-12-11 Thread Gabriele Domenichini
Cocoon-2.0.4 seems to repeat namespace declaration in the sql:rowset
element resulting from a sql transformation launching a stored procedure.

I have cocoon 2.0.3 and cocoon 2.0.4 side by side on the same machine.

I call an Oracle stored procedure with SQL transformer
With this code:
http://apache.org/cocoon/SQL/2.0";>

  begin dbchem.scheda_xml('1',?,'30060','1',''); end;



And I obtain this


http://apache.org/cocoon/SQL/2.0";>
: 
content of the out parameter




If I use the same invocation on cocoon 2.0.4
I get this error from the same browser (MSIE):

Duplicate attribute. Line 10, Position 52 
 

  http://apache.org/cocoon/SQL/2.0";
  xmlns="http://apache.org/cocoon/SQL/2.0";>: 
---^
My system
- jre 
version 1.4.1 
java-vendor Sun Microsystems Inc. 

- operating-system 
name Windows 2000 
architecture x86 
version 5.0 
 
If you confirm I could compile a bug even if It would be my first.
-- 
  Gabriele Domenichini
  [EMAIL PROTECTED]

-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




protocols of imagedirectory generator

2002-12-11 Thread u15603
hello cocooners,

i try to implement  the imagesgenerator to my application - but there 
are some problems! which protocol i could use in the src- attribute?  i 
my image path is every the same, but reference it from different 
path-levels! if i use context:// there is an error!

i hope somebody could help me!

dirk



-
Please check that your question  has not already been answered in the
FAQ before posting. 

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