Réf. : Language Exception

2002-07-09 Thread Othman Haddad








  hi,
  that means that you've something wrong in your sitemap.xmap...
  try to use the default sitemap of cocoon2 before using your own 
  one..
  hope it helps
   
  ---Message original---
   
  
  De : [EMAIL PROTECTED]
  Date : mercredi 10 
  juillet 2002 03:27:09
  A : [EMAIL PROTECTED]
  Sujet : Language 
  Exception
   HiI'm a total newbie with cocoon and am getting 
  this error when I try to accesshttp://localhost/cocoon (I've set up 
  Tomcat so I don't need to use the :8080),using cocoon 2 and Tomcat 
  4.03 with JDK1.4, under Windows 2000 professional.I've installed 
  it on another machine using the same OS, servlet engine and 
  cocoonversion, but with JDK1.3.0 and I'm presented with the cocoon 
  homepage when Ienter the previous URL.Here is the error 
  message I'm receiving. Is there a quick fix for this? Didn'tseem to be 
  any mention of it in the FAQ.Many thanksDantype 
  fatalmessage Language Exceptiondescription 
  org.apache.cocoon.ProcessingException:Language 
  Exception:org.apache.cocoon.components.language.LanguageException:Error 
  compiling sitemap_xmap:Line 0, column 0: could not parse error 
  message:error: Invalid class file format 
  inG:\JDK1.4\jre\lib\rt.jar(java/io/OutputStream.class).The 
  major.minor version '48.0' is too recent for this tool to 
  understand.-Please 
  check that your question has not already been answered in theFAQ 
  before posting. To 
  unsubscribe, e-mail: <[EMAIL PROTECTED]>For 
  additional commands, e-mail: <[EMAIL PROTECTED]>.





	
	
	
	
	
	
	




  IncrediMail - La messagerie électronique a enfin 
évolué - Cliquer 
ici



Re: trouble getting return values from an Action Map

2002-07-09 Thread Christian Haul

On 09.Jul.2002 -- 05:39 PM, Lai, Harry wrote:
> If you're planning to pass multiple parameters, though, I think someone
> posted something about a bug with escaping the ampersand
> (http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=101828372801806&w=2)

Harry, this "bug" stems from the fact that a sitemap is XML and "&" is
used to start an XML entity. Just like "<"s are not usable in XML as
characters.
However, using the XML entity "&" and "<" instead works
fine. E.g. 

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


-
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-users-unsubscribe@xml.apache.org

2002-07-09 Thread Nicola Ken Barozzi

TREGAN Fabien wrote:
> o damn ! I didn't knew my answer was such a boring one...

:-))

"_
There is always a better job for you at Monsterindia.com.
Go now http://monsterindia.rediff.com/jobs
"
^

Maybe that guy chose to switch job ;-)

-- 
Nicola Ken Barozzi   [EMAIL PROTECTED]
 - verba volant, scripta manent -
(discussions get forgotten, just code remains)
-


-
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: Authentication Framework

2002-07-09 Thread Carsten Ziegeler


Stephan Michels wrote:
>
> On Tue, 9 Jul 2002 [EMAIL PROTECTED] wrote:
>
> > Hello Carsten,
> >
> >   thanks again for your patch for the Authentication Framework.
> >   I tried it out and now can access my error messages with the
> >   temp session context.
> >   On the other side - with the new LoginAction.java I was not
> able to login
> >   anymore - the authentication always failed.
> >   So, I did some debugging and noticed, that the values of the
> parameters
> >   I give with "request:nickname" and "request:password" were not
> >   substituted
>
> Is
>
> 
>
> really correct? Should it not be
>
> 
>
> ?
>
It depends which version of Cocoon you use. If you use the HEAD,
{request:username} is correct - if you use 2.0.3-dev, the other
form is correct.

When we donated the authentication framework to Cocoon, the new
InputModules didn't exist, so we invented our own notation just
for this case, but with the new concept of InputModules it's
much better and cleaner to use it instead of inventing
an own version.
So, again, if you use the latest version (which I recommend),
{request:username} is correct.


>
> >   MyLoginAction: * param: request:password
> **
> > MyLoginAction: * param: request:nickname
> > **
> >
> > So I looked at the code and changed the new part back to the
> old and then
> > everything worked again.
> > The part I changed is:
> >
> >   if (enum != null) {
> > for(int i = 0; i < enum.length; i++) {
> > final String key = enum[i];
> > if ( key.startsWith("parameter_") ) {
> >   authenticationParameters.setParameter(
> key.substring
> > ("parameter_".length()),
> >
> > par.getParameter(key));
> >
> > back to:
> >
> >   if (enum != null) {
> > for(int i = 0; i < enum.length; i++) {
> > final String key = enum[i];
> > if ( key.startsWith("parameter_") ) {
> > String value = par.getParameter(key);
> > if ( value.startsWith("request:") ) {
> > value = request.getParameter( value.substring(
> > "request:".length()) );
> > this.getLogger().debug("*
> param: " + value
> > + " **");
> > if (value == null) value = "";
> > }
> > authenticationParameters.setParameter(
> key.substring(
> > "parameter_".length()),
> >value);
> > }
> > }
> >
> > }
> >
> > I think you don´t get the values of the request parameters in the new
> > version.
> >
> > If I am wrong, please tell me
> >
The code above was removed because of the reason explained at the
beginning. The InputModules are now used.

Thanks
Carsten

Carsten Ziegeler Chief Architect Open Source Group, S&N AG
--
 Cocoon Consulting, Training and Projects
--
mailto:[EMAIL PROTECTED]  http://www.s-und-n.de
http://ziegeler.bei.t-online.de


-
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-users-unsubscribe@xml.apache.org

2002-07-09 Thread TREGAN Fabien

o damn ! I didn't knew my answer was such a boring one...

>-Message d'origine-
>De: sanjay dubey [mailto:[EMAIL PROTECTED]]
>Date: mercredi 10 juillet 2002 08:41
>À: [EMAIL PROTECTED]
>Objet: [EMAIL PROTECTED]
>
>
>
>
>On Wed, 10 Jul 2002 TREGAN Fabien wrote :
>>have a look at the regular expression matcher at
>>cocoon/documents/userdocs/matchers/matchers.html, you'll be able 
>>to do it
>>with only 1 regexp matcher.
>>
>>fabien.
>>
>> >-Message d'origine-
>> >De: Per Kreipke [mailto:[EMAIL PROTECTED]]
>> >Date: mardi 9 juillet 2002 19:15
>> >À: [EMAIL PROTECTED]
>> >Objet: RE: Howto select EVERY Image ending with *.gif ?
>> >
>> >
>> >Good point, thanks. I thought he was asking about the gifs in
>> >subdirs :-o
>> >
>> >Per
>> >
>> >> -Original Message-
>> >> From: Joerg Heinicke [mailto:[EMAIL PROTECTED]]
>> >> Sent: Tuesday, July 09, 2002 1:08 PM
>> >> To: [EMAIL PROTECTED]
>> >> Subject: Re: Howto select EVERY Image ending with *.gif ?
>> >>
>> >>
>> >> It only doesn't match on .gif without any directory. If he
>> >doesn't need
>> >> the filename specifically, the **.gif (he tested already??) 
>>is the
>> >> correct solution.
>> >>
>> >> Joerg
>> >>
>> >> Per Kreipke wrote:
>> >> > I think the pattern you want is:
>> >> >
>> >> > **/*.gif
>> >> >
>> >> > == 'any .gif in any directory, no matter how deep'
>> >> >
>> >> > Per
>> >>
>> >>
>> >> 
>>-
>> >> 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]>
>>
>
>_
>There is always a better job for you at Monsterindia.com.
>Go now http://monsterindia.rediff.com/jobs
>
>
>-
>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-users-unsubscribe@xml.apache.org

2002-07-09 Thread sanjay dubey



On Wed, 10 Jul 2002 TREGAN Fabien wrote :
>have a look at the regular expression matcher at
>cocoon/documents/userdocs/matchers/matchers.html, you'll be able 
>to do it
>with only 1 regexp matcher.
>
>fabien.
>
> >-Message d'origine-
> >De: Per Kreipke [mailto:[EMAIL PROTECTED]]
> >Date: mardi 9 juillet 2002 19:15
> >À: [EMAIL PROTECTED]
> >Objet: RE: Howto select EVERY Image ending with *.gif ?
> >
> >
> >Good point, thanks. I thought he was asking about the gifs in
> >subdirs :-o
> >
> >Per
> >
> >> -Original Message-
> >> From: Joerg Heinicke [mailto:[EMAIL PROTECTED]]
> >> Sent: Tuesday, July 09, 2002 1:08 PM
> >> To: [EMAIL PROTECTED]
> >> Subject: Re: Howto select EVERY Image ending with *.gif ?
> >>
> >>
> >> It only doesn't match on .gif without any directory. If he
> >doesn't need
> >> the filename specifically, the **.gif (he tested already??) 
>is the
> >> correct solution.
> >>
> >> Joerg
> >>
> >> Per Kreipke wrote:
> >> > I think the pattern you want is:
> >> >
> >> > **/*.gif
> >> >
> >> > == 'any .gif in any directory, no matter how deep'
> >> >
> >> > Per
> >>
> >>
> >> 
>-
> >> 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]>
>

_
There is always a better job for you at Monsterindia.com.
Go now http://monsterindia.rediff.com/jobs


-
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: Howto select EVERY Image ending with *.gif ?

2002-07-09 Thread TREGAN Fabien

have a look at the regular expression matcher at
cocoon/documents/userdocs/matchers/matchers.html, you'll be able to do it
with only 1 regexp matcher.

fabien.

>-Message d'origine-
>De: Per Kreipke [mailto:[EMAIL PROTECTED]]
>Date: mardi 9 juillet 2002 19:15
>À: [EMAIL PROTECTED]
>Objet: RE: Howto select EVERY Image ending with *.gif ?
>
>
>Good point, thanks. I thought he was asking about the gifs in 
>subdirs :-o
>
>Per
>
>> -Original Message-
>> From: Joerg Heinicke [mailto:[EMAIL PROTECTED]]
>> Sent: Tuesday, July 09, 2002 1:08 PM
>> To: [EMAIL PROTECTED]
>> Subject: Re: Howto select EVERY Image ending with *.gif ?
>> 
>> 
>> It only doesn't match on .gif without any directory. If he 
>doesn't need 
>> the filename specifically, the **.gif (he tested already??) is the 
>> correct solution.
>> 
>> Joerg
>> 
>> Per Kreipke wrote:
>> > I think the pattern you want is:
>> > 
>> > **/*.gif
>> > 
>> > == 'any .gif in any directory, no matter how deep'
>> > 
>> > Per
>> 
>> 
>> -
>> 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] How Can I do ?

2002-07-09 Thread TREGAN Fabien

Look for a thread whom subject is "Help on Sitemap" wich started in march
2002.

note for diana : Should this Question be considered as Frequently Asked ? ?

>-Message d'origine-
>De: illo [mailto:[EMAIL PROTECTED]]
>Date: mardi 9 juillet 2002 16:22
>À: [EMAIL PROTECTED]
>Objet: [HELP] How Can I do ?
>
>
>Hello All,
>I hava a question for sitemap
>how can i write a sitmap:
>if i request http://site/test.xml
>it will transform by default.xsl
>if i request http://site/test.xml?sytle=test.xsl
>it will transform by test.xsl
>
>Thanks 
>
>
>-
>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: Cocoon status page ??

2002-07-09 Thread TREGAN Fabien

> I deploy the cocoon servlet as part of a j2ee application
> which uses other servlets as well. So, I don't have the /
> mapped to cocoon (just *.xsp and *.xml). How can I access
> Cocoons status page normally accessed with /cocoon/status

just change the status pipe so it match something that end with .xml :

   



   

then you acces status.xml instead of status.

fabien.

> 
> Thanks,
> 
> Artur...
>
>
>-
>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: CastorTransformer

2002-07-09 Thread TREGAN Fabien

It's called a CastorTransformer because it is a cocoon transformer.

So why is it a transformer ?

In fact, it might have been a generator. But when you use the
CastorGenerator, what you usually want to do is to INSERT the xml
serialization of a Bean into the current flow of datas.
Image you have a table, and you want to insert 3 beans in 3 's of the
table.

If you hade a generator, you must do :

-Generate 
-Make an XSL stylesheet that will wrap the  and 's  around
the beans.

With a generator, you can :

-Define an XML file with  ...
-Use the transformer to replace the 's with the apropriate
content in the flow.

With a transformer, you also can re-transform to insert new beans later in
the pipeline, wich is not possible (without cinclude) if you use a
generator.


fabien.

>-Message d'origine-
>De: Werner Guttmann [mailto:[EMAIL PROTECTED]]
>Date: mardi 9 juillet 2002 17:22
>À: [EMAIL PROTECTED]
>Objet: CastorTransformer
>
>
>Hi,
>
>I had a look at the CastorTransformer the other day to familiarize
>myself with how things are implemented, etc. I still fail to understand
>why this component is actually called Castor*Transformer* when clearly
>it's role is that of a generator, i.e. a component responsible for
>inserying XML (SAX events) into a pipeline.
>
>Can anybody please enlighten me whether I am misunderstanding/missing
>anything fundamental ...
>
>Thanks
>Wenrer
>
>
>-
>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: Cocoon deli is not work.

2002-07-09 Thread Joerg Heinicke

It's a typical Xalan-Exception, when it is tried to convert a string to 
a node set, especially using the extension function nodeset() of Xalan. 
Have a look into the pipeline of hello-page.xml and look into the 
stylesheet. Maybe a wrong parameter is passed to any template.

Regards,

Joerg

??? wrote:
> Hi...all.
>  
> I rebuild cocoon for support deli.
>  
> but deli is not work correctly.
>  
> Error is occured.
>  
> what's the matter?
>  
> 
>=
> The org.apache.cocoon.www.sitemap_xmap notifies that 
> org.apache.cocoon.ProcessingException says:
> 
> /Could not read resource 
> file:/D:/Tomcat40/webapps/cocoon/docs/samples/hello-page.xml/
> 
> More precisely:
> 
> /org.apache.cocoon.ProcessingException: Could not read resource 
> file:/D:/Tomcat40/webapps/cocoon/docs/samples/hello-page.xml: 
> java.lang.RuntimeException: Can not convert #STRING to a NodeList!/
> 
>=



-
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 deli is not work.

2002-07-09 Thread 이선헌



Hi...all.
 
I rebuild cocoon for support deli.
 
but deli is not work correctly.
 
Error is occured.
 
what's the matter?
 
=
The org.apache.cocoon.www.sitemap_xmap notifies 
that org.apache.cocoon.ProcessingException says:Could not read 
resource file:/D:/Tomcat40/webapps/cocoon/docs/samples/hello-page.xml 
More precisely:org.apache.cocoon.ProcessingException: Could 
not read resource file:/D:/Tomcat40/webapps/cocoon/docs/samples/hello-page.xml: 
java.lang.RuntimeException: Can not convert #STRING to a NodeList! 
=


RE: Profiling

2002-07-09 Thread Vadim Gritsenko

> From: Michael Zehrer [mailto:[EMAIL PROTECTED]]
> 
> Hi Vadim,
> 
> It's 2.1, I configured cocoon.xconf (ucommented ) and
> activated the Profiling pipelines in sitemap.xmap.
> 
> Then I constructed a generator that should show me the results, but
all
> I get is:
> 
>   
>   http://apache.org/cocoon/profiler/1.0";
> date="04.07.2002 15:24:51" />
> 
> I think there's something wrong with my generator/pipeline for
> profiling, can you give me an example?

No, I can't. I don't work with 2.1 ATM.

Vadim

> 
> 
> Thanks, Michael
> 
> -Ursprüngliche Nachricht-
> Von: Vadim Gritsenko [mailto:[EMAIL PROTECTED]]
> Gesendet: Mittwoch, 3. Juli 2002 18:08
> An: [EMAIL PROTECTED]
> Betreff: RE: Profiling
> 
> 
> > From: Michael Zehrer [mailto:[EMAIL PROTECTED]]
> >
> > Hi list,
> >
> > what do I have to do to turn on profiling in the actual cvs version?
> How
> 
> 2.1 or 2.0.3? 2.1 has one component less configured in the
cocoon.xconf.
> 
> 
> > ist profiling implemented in general?
> 
> Read cocoon.xconf first, it outlines components used. Then modify
> sitemap.xmap to include pipeline which will render results of
profiling.
> 
> 
> Regards,
> Vadim
> 
> 
> > Cheers, Michael
> >
> 
> 
> -
> 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]>




Language Exception

2002-07-09 Thread Dan Jones

Hi

I'm a total newbie with cocoon and am getting this error when I try to access
http://localhost/cocoon (I've set up Tomcat so I don't need to use the :8080),
using cocoon 2 and Tomcat 4.03 with JDK1.4, under Windows 2000 professional.

I've installed it on another machine using the same OS, servlet engine and cocoon
version, but with JDK1.3.0 and I'm presented with the cocoon homepage when I
enter the previous URL.

Here is the error message I'm receiving. Is there a quick fix for this? Didn't
seem to be any mention of it in the FAQ.

Many thanks

Dan

type fatal

message Language Exception

description org.apache.cocoon.ProcessingException:

Language Exception:
org.apache.cocoon.components.language.LanguageException:
Error compiling sitemap_xmap:
Line 0, column 0: could not parse error message:
error: Invalid class file format in
G:\JDK1.4\jre\lib\rt.jar(java/io/OutputStream.class).
The major.minor version '48.0' is too recent for this tool to understand.



-
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: generating a manifest of xml docs

2002-07-09 Thread Conal Tuohy

I'm glad I could help, icewind.

The xinclude elements refer to another Cocoon pipeline, which extracts the
title from the tei doc, where it is located at
"TEI.2/teiHeader/fileDesc/titleStmt/title/text()". This other pipeline
extracts this "TEI.2/teiHeader/fileDesc/titleStmt/title/text()" and produces
a document with a single top-level element "title":

Some Book Title

So the xpointer fragment #xpointer(/title/text()) is just to take the text
from out of THIS document.

Why the 2-step process?

I could have xincluded it directly by referring directly to the source TEI
document and using an xpointer of
"TEI.2/teiHeader/fileDesc/titleStmt/title/text()", but I wanted to be able
(later) to define the book title differently, perhaps including the contents
of other elements than just "TEI.2/teiHeader/fileDesc/titleStmt/title", such
as TEI.2/teiHeader/fileDesc/publicationStmt/publisher", etc.

This is a separation of concerns: the first XSLT is concerned with defining
an html page of links to xml documents, where the 2nd XSLT is concerned with
the semantics of TEI, i.e. "what constitutes the 'title' of a TEI document?"

Con

> -Original Message-
> From: icewind [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, 10 July 2002 11:41
> To: [EMAIL PROTECTED]
> Subject: RE: generating a manifest of xml docs
>
>
>
>
> Conal,
>
> Thank you very much for taking the time to explain
> your setup to me. I have found it to be very valuable
> and I think others on the list will too.
>
> I got it working on my setup by including the full
> XPath expression for the node I want to select in the
> xinclude tag. I's a little uncertain about the
> fragment "#xpointer(/title/text()". What exactly does
> that do? Is that a tag that you are looking for in the
> ebook? At first I thought it was but then I saw you
> using the XPath to extract the title in the stylesheet
> that extracts the title for you.
>
> Thanks.
>
>
> __
> Do You Yahoo!?
> Sign up for SBC Yahoo! Dial - First Month Free
> http://sbc.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]>
>
>


-
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: generating a manifest of xml docs

2002-07-09 Thread icewind



Conal,

Thank you very much for taking the time to explain
your setup to me. I have found it to be very valuable
and I think others on the list will too.

I got it working on my setup by including the full
XPath expression for the node I want to select in the
xinclude tag. I's a little uncertain about the
fragment "#xpointer(/title/text()". What exactly does
that do? Is that a tag that you are looking for in the
ebook? At first I thought it was but then I saw you
using the XPath to extract the title in the stylesheet
that extracts the title for you.

Thanks.


__
Do You Yahoo!?
Sign up for SBC Yahoo! Dial - First Month Free
http://sbc.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: trouble getting return values from an Action Map

2002-07-09 Thread Lai, Harry

Hi Leona,

I think there was some discussion about changing how the redirect-to works,
but I believe that in Cocoon 2.0.2, you can't provide parameters via a
map:parameter sub-element.  That is, when you redirect to summary, your
playerID parameter is being ignored.

One possible workaround I've seen mentioned on this list is:



...

If you're planning to pass multiple parameters, though, I think someone
posted something about a bug with escaping the ampersand
(http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=101828372801806&w=2)
Anyway, hope that helps!

Harry


-Original Message-
From: Christian Haul [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 09, 2002 5:09 PM
To: [EMAIL PROTECTED]
Subject: Re: trouble getting return values from an Action Map


On 09.Jul.2002 -- 03:13 PM, Leona Slepetis wrote:
> Hi All,
> 
> I've gone  through the samples and archives and still am having trouble
> getting return values from an Action.
> 
>   
>   
> 
 
> 
> 

Leona,
I've deleted all but the relevant lines. Since you send a redirect
response to the browser, processing ends.

The browser requests a new page. For this (second) request, no action
is run, thus no values are set.

  client cocoon
 -gs-login->
 (action)
 <---redirect-to-summary

 summary--->
 <---summary

If you need to keep the value, you could
a) use cocoon: protocol in a generator
b) put summary in a resource and call it
c) store value e.g. in session

Chris.

Please follow up summarizing your problem and which suggested solution
/ information worked for you when you consider your problem
solved. Add "SUMMARY: " to the subject line. This will make FAQ
generation and searching the list easier. In addition, it makes
helping you more fun. Thank you.

-- 
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


-
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: Redirects (again)...

2002-07-09 Thread Per Kreipke

Another thought:

- if I throw an exception in some step of the pipeline, could I configure an
error handler to do a redirect?

Per

> -Original Message-
> From: Per Kreipke [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, July 09, 2002 3:26 PM
> To: [EMAIL PROTECTED]
> Subject: Redirects (again)...
>
>
> As I understand it handling successful form posting in XSP (e.g. without
> actions) can't involve redirecting the user back to the calling page.
>
> E.g. given the following pages:
>
> index.html -> main page, lists all widgets
> form.html -> form to add a new widget
> doPost.xsp -> add the widget
>
> in most cases, you'd like doPost.xsp to redirect back to the
> index.html page
> on _success_ to show the new widget added to the list.
>
> However in Cocoon 2.0.X:
>
> - you can't redirect from an XSP file
>
> - map:redirect-to can't be used after some stage in the pipeline (what is
> that stage?)
>
>
> I understand how to use the form validator to redisplay form.html until
> input is correct but I don't quite know how to handle the post (without an
> Action).
>
>
> Hmm. I just remembered that I can use XSP to create an action. I
> just might
> struggle with that next.
>
> Any other suggestions are welcome,
>
> Per
>
>
> -
> 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: SUMMARY: Howto select EVERY Image ending with *.gif ?

2002-07-09 Thread Christian Haul

On 09.Jul.2002 -- 10:49 PM, Sascha Kulawik wrote:
> 
> 
> > -Ursprüngliche Nachricht-
> > Von: Per Kreipke [mailto:[EMAIL PROTECTED]] 
> > Gesendet: Dienstag, 9. Juli 2002 19:04
> > An: [EMAIL PROTECTED]
> > Betreff: RE: Howto select EVERY Image ending with *.gif ?
> > 
> > 
> > I think the pattern you want is:
> > 
> > **/*.gif
> > 
> > == 'any .gif in any directory, no matter how deep'
> > 
> 
> Thats it - it works ! 

Sascha,
thank you for following up. When you summarize your problem,
bear in mind that a summary should contain a short explanation
of the original question (afterall, understanding it helps
to fomulate question and intention better), and a short 
statement, how / why it was solved. In short: the summary
should be self-contained so that it could be a start of an 
FAQ entry.

To answer your question (unfortunately deleted):
Match pattern "do-login" *and* "**/do-login" because of the "/".

Ah, yes: shouldn't start a new thread from a SUMMARY ;-)

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


-
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: trouble getting return values from an Action Map

2002-07-09 Thread Christian Haul

On 09.Jul.2002 -- 03:13 PM, Leona Slepetis wrote:
> Hi All,
> 
> I've gone  through the samples and archives and still am having trouble
> getting return values from an Action.
> 
>   
>   
> 
 
> 
> 

Leona,
I've deleted all but the relevant lines. Since you send a redirect
response to the browser, processing ends.

The browser requests a new page. For this (second) request, no action
is run, thus no values are set.

  client cocoon
 -gs-login->
 (action)
 <---redirect-to-summary

 summary--->
 <---summary

If you need to keep the value, you could
a) use cocoon: protocol in a generator
b) put summary in a resource and call it
c) store value e.g. in session

Chris.

Please follow up summarizing your problem and which suggested solution
/ information worked for you when you consider your problem
solved. Add "SUMMARY: " to the subject line. This will make FAQ
generation and searching the list easier. In addition, it makes
helping you more fun. Thank you.

-- 
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


-
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: Dynamic XSL

2002-07-09 Thread Conal Tuohy

Yes this is possible. I have used:

mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, 10 July 2002 06:22
> To: [EMAIL PROTECTED]
> Subject: RE: QUESTION: Dynamic XSL
>
>
> Your idea is not as far-fetched as you might think (I think there is a
> sample with dynamically generated content *and* stylesheets).
> You will, however, need to use the cocoon:/ protocol in your
> sitemap to
> allow your .xsl to be machted by the appropriate pipeline:
>
> 
>   
>   
>   
> 
>
> 
>src="logic/stylesheets/{1}.xsp"/>
>   
> 
>
> This example should do what you are looking for. The cocoon:/
> protocol tries
> to find an appropriate match in the
> current sitemap.
>
> Koen.
>
> -Oorspronkelijk bericht-
> Van: Eric Dalquist [mailto:[EMAIL PROTECTED]]
> Verzonden: dinsdag 9 juli 2002 19:56
> Aan: [EMAIL PROTECTED]
> Onderwerp: QUESTION: Dynamic XSL
>
>
> I was wondering if there is a way to generate an XSL document
> to be used in
> another transformation. Here is an theoretical pipeline that might
> illustrate my question a bit better:
>
> 
> 
> 
> 
> 
> 
> 
>
> 
> 
>  src="logic/site_format.xsp"/>
> 
> 
>
> I hope this makes sence to someone and they have some suggestions.
>
> -Eric Dalquist
>
>
> -
> 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]>




AW: Howto select EVERY Image ending with *.gif ?

2002-07-09 Thread Sascha Kulawik
Title: AW: Howto select EVERY Image ending with *.gif ?






Thats it - ist only for gifs and so on. 

Im using the Path as Request-Parameter - so it is possible to have a path you wont suggest.

Does anybody also uses the path as request-parameter or isnt it nice enough ?


> -Ursprüngliche Nachricht-

> Von: Joerg Heinicke [mailto:[EMAIL PROTECTED]] 

> Gesendet: Dienstag, 9. Juli 2002 19:08

> An: [EMAIL PROTECTED]

> Betreff: Re: Howto select EVERY Image ending with *.gif ?

> 

> 

> It only doesn't match on .gif without any directory. If he 

> doesn't need 

> the filename specifically, the **.gif (he tested already??) is the 

> correct solution.

> 

> Joerg

> 

> Per Kreipke wrote:

> > I think the pattern you want is:

> > 

> > **/*.gif

> > 

> > == 'any .gif in any directory, no matter how deep'

> > 

> > Per

> 

> 

> -

> 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]>

> 

> 

> 

> 

> 





SUMMARY: Howto select EVERY Image ending with *.gif ?

2002-07-09 Thread Sascha Kulawik
Title: SUMMARY: Howto select EVERY Image ending with *.gif ?








> -Ursprüngliche Nachricht-

> Von: Per Kreipke [mailto:[EMAIL PROTECTED]] 

> Gesendet: Dienstag, 9. Juli 2002 19:04

> An: [EMAIL PROTECTED]

> Betreff: RE: Howto select EVERY Image ending with *.gif ?

> 

> 

> I think the pattern you want is:

> 

> **/*.gif

> 

> == 'any .gif in any directory, no matter how deep'

> 


Thats it - it works ! 

Thanks a lot.

Another Problem to resolve is identically - if I have a do-login Matcher, i cannot use **/do-login or **/*do-login for the root (http://domain.de/do-login wont work).

Sorry, it is a little bit late and cocoon uses all of my brain-worktime if this will be a smart and easy answer that i suggest :)

Greetings,

Sascha





Re: [HELP] How Can I do ?

2002-07-09 Thread Joerg Heinicke

I think, that's not the best way. Why not doing it in the same way as a 
few hours ago posted: 
http://www.mail-archive.com/cocoon-users@xml.apache.org/msg15068.html.

Regards,

Joerg

Matteo Di Giovinazzo wrote:
> use the selector: org.apache.cocoon.selection.RequestParameterSelector
> 
> This should works:
> 
> 
>   
> 
> 
> 
>   
> 
>   
> 
>   
> 
>   
> 
>   
> 
> 
> 
> 
> 
>   
> 
> 
> CIAO!


-
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: CORREDTION: trouble getting return values from an Action Map

2002-07-09 Thread Leona Slepetis

Yes, I do declare
Map sitemapParams = new HashMap();
in the action.

Sorry for the error.
Leona
> Hi All,
>
> I've gone  through the samples and archives and still am having trouble
> getting return values from an Action.
>
> I followed the sample code for a simple action:
>
> public class GSLoginAction extends AbstractAction {
>   public Map act (Redirector redirector,
>   SourceResolver resolver,
>   Map objectModel,
>   String source,
>   Parameters params) {
>
> String strUserID;
> String strPwd;
> String strPlayerID = "";
> Request request = ObjectModelHelper.getRequest(objectModel);
> strUserID = request.getParameter("userID");
> strPwd = request.getParameter("pwd");
>
> // do something with the request parameters here and set strPlayerID
>
> sitemapParams.put("playerID", strPlayerID);
> request.setAttribute("playerID", strPlayerID);
> if (// the right thing happened) {
>   return sitemapParams;
> }else {
>   return(null);
> }
> }
>
> It is defined in the sitemap under , pointing to the correct
> class file.
> The action is called from this pipeline fragment, which is attached to
> the "ACTION" button of a form with two text boxes, "userID" and "pwd".
>
> 
>   
>   
> 
> 
>   
> 
>   
>   
>   
> 
>
> I know that the action is running, and the parameters are passed in,
because
> of some debugging I did in the Java code. I seem to be getting something
> back, becuase if I enter correct values on the form, redirect
> to "summary" does happen. Otherwise it goes to "gs".
>
> 
>   
>   
> 
> 
> 
>   
>   
>   
> 
>
> The problem is that "playedID" is not being passed to "summary". Do I
> simply have a syntax error in working with the parameter, or is it more
> complicated than
> that?
>
> Thanks very much,
> Leona
>
>
>
>
> -
> 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]>




trouble getting return values from an Action Map

2002-07-09 Thread Leona Slepetis

Hi All,

I've gone  through the samples and archives and still am having trouble
getting return values from an Action.

I followed the sample code for a simple action:

public class GSLoginAction extends AbstractAction {
  public Map act (Redirector redirector,
  SourceResolver resolver,
  Map objectModel,
  String source,
  Parameters params) {

String strUserID;
String strPwd;
String strPlayerID = "";
Request request = ObjectModelHelper.getRequest(objectModel);
strUserID = request.getParameter("userID");
strPwd = request.getParameter("pwd");

// do something with the request parameters here and set strPlayerID

sitemapParams.put("playerID", strPlayerID);
request.setAttribute("playerID", strPlayerID);
if (// the right thing happened) {
  return sitemapParams;
}else {
  return(null);
}
}

It is defined in the sitemap under , pointing to the correct
class file.
The action is called from this pipeline fragment, which is attached to
the "ACTION" button of a form with two text boxes, "userID" and "pwd".


  
  


  

  
  
  


I know that the action is running, and the parameters are passed in, because
of some debugging I did in the Java code. I seem to be getting something
back, becuase if I enter correct values on the form, redirect
to "summary" does happen. Otherwise it goes to "gs".


  
  



  
  
  


The problem is that "playedID" is not being passed to "summary". Do I
simply have a syntax error in working with the parameter, or is it more
complicated than
that?

Thanks very much,
Leona




-
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: Support for XML-XSL-PDF

2002-07-09 Thread Joerg Heinicke

1. You don't have SVGs in your PDF, but JPEGs. Why are you using the 
svg2jpeg serializer instead of svgxml? FOP supports SVG in PDFs.

2. In the sitemap currently delivered with Cocoon a parameter is 
specified in the following way:


   


This should avoid the warning.

Regards,

Joerg


Yogesh Mulwani wrote:
> Hello
>  
> We are using Cocoon-2.0.2 on Tomcat-3.3.1 in our application. 
> Our Application is a reporting tool which generates the PDF files 
> using XML - XSL transformation
> We are also using SVG images embedded into the PDF files.
> In the sitemap.xmap, we are specifying the pattern for tranformation as:
>
> 
> 
> 
>
>  
> We are facing some major problems in our PDF file which is generated 
> through cocoon.
> The following are the problems we are facing:
>
> 1.The SVGs embedded in our PDF has a problem in the sharpness, 
> the pictures get distorted .
>  
> 2.There is an error on the Tomcat console when the PDF gets 
> generated :
> "ERROR: The JPEG quality has not been specified. Use the 
> default one: no compression"
> How can we set the JPEG quality
>  
> 3.We want that we can set the background of our PDF report so we 
> are specifying 'background-image' attribute in  element but it 
> seems the cocoon2.0.2 does not support the 'backgorund-image' attribute. 
> Is there any solution to set the background image of the PDF.
>  
>  
> Thanx
> Yogesh
> Uniqueware Software & Consultancy
> India


-
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: SUMMARY: Re: Problems with Database Tutorial

2002-07-09 Thread Bobby Mitchell

Bad patch file

Bobby Mitchell wrote:

> 
> 
> Christian Haul wrote:
> 
>> On 02.Jul.2002 -- 11:36 AM, Bobby Mitchell wrote:
>>
> While using Sybase I had to remove the  begin and 
> end tags in order to actually edit the entry, otherwise I get an 
> sql error stating that "SELECT name, department_id FROM employee 
> WHERE id = ? " is an error. The id is being passed as a ? so it 
> causes an error. When using Hsqldb I made no changes to the code.
>
>
>>> This behaviour is the same as before. Here is the error message:
>>>
>>>
>>> org.apache.cocoon.ProcessingException: Exception in 
>>> ServerPagesGenerator.generate(): java.lang.RuntimeException: Error 
>>> executing statement: SELECT name, department_id FROM employee WHERE 
>>> id = ? : com.sybase.jdbc2.jdbc.SybSQLException: Implicit conversion 
>>> from datatype 'CHAR' to 'INT' is not allowed. Use the CONVERT 
>>> function to run this query.
>>>
>>
>> Yep, error message says it all. The example is attempting to use a
>> String to set an int column. It looks like HSQLDB is more forgiving in
>> this. Change it to
>>
>> 
>>   SELECT name, department_id FROM employee
>>   WHERE id = > type="int">Integer.parseInt(> name="id" default="0"/>)
>> 
>>
>> and convert the string explicitly to an integer. I've set a default of
>> "0" in case the parameter is non-existent to prevent a NPE or
>> NumberFormatException.
>> It would be great if you could go through the tutorial and look for
>> other, similar changes, that would be required to run it e.g. on
>> sybase and file a bug in bugzilla with patches.
>>
>> Chris.
> 
> 
> 
> I applied the changes and everything works fine. I am including a patch 
> file and I will also file a report on bugzilla. Thanks for the help.
> 
> patch file for the directory cocoon/tutorial/docs:
> **
> diff -Naur tutorial/docs/edit-dept.xsp tutorial/docs.sybase/edit-dept.xsp
> --- tutorial/docs/edit-dept.xsp  Tue Jul  9 09:50:57 2002
> +++ tutorial/docs.sybase/edit-dept.xsp Tue Jul  9 09:47:56 2002
> @@ -24,7 +24,7 @@
>  
>
>  SELECT name FROM department
> -WHERE id =  name="id"/>
> +   WHERE id =  type="int">Integer.parseInt( name="id" default="0"/>)
>
>
>  
> diff -Naur tutorial/docs/edit-empl.xsp tutorial/docs.sybase/edit-empl.xsp
> --- tutorial/docs/edit-empl.xsp  Tue Jul  9 09:50:57 2002
> +++ tutorial/docs.sybase/edit-empl.xsp Tue Jul  9 09:54:39 2002
> @@ -23,7 +23,7 @@
>
>  
>SELECT name, department_id FROM employee
> -  WHERE id =  name="id"/>
> + WHERE id =  type="int">Integer.parseInt( name="id" default="0"/>)
>  
>  
>
> ***

Here's another:
Cut and paste the following patch into a file.
cd to the directory cocoon/tutorial and execute
patch -p0 < patchfile
***
diff -Naur docs/edit-dept.xsp docs.sybase/edit-dept.xsp
--- docs/edit-dept.xsp  Tue Jul  9 19:53:18 2002
+++ docs.sybase/edit-dept.xsp Tue Jul  9 19:50:37 2002
@@ -24,7 +24,7 @@
  

  SELECT name FROM department
-WHERE id = 
+   WHERE id = Integer.parseInt()


  
diff -Naur docs/edit-empl.xsp docs.sybase/edit-empl.xsp
--- docs/edit-empl.xsp  Tue Jul  9 19:53:18 2002
+++ docs.sybase/edit-empl.xsp Tue Jul  9 19:50:19 2002
@@ -23,7 +23,7 @@

  
SELECT name, department_id FROM employee
-  WHERE id = 
+ WHERE id = Integer.parseInt()
  
  

***







> 
> 
>>
>> Please follow up summarizing your problem and which suggested solution
>> / information worked for you when you consider your problem
>> solved. Add "SUMMARY: " to the subject line. This will make FAQ
>> generation and searching the list easier. In addition, it makes
>> helping you more fun. Thank you.
>>
>>
> 
> 


-- 
Robert J. (Bobby) Mitchell
Systems Administrator
NASA Institute for Advanced Concepts
555A 14th St Atlanta, Ga. 30318
Phone: (404)347-9633 Fax: (404)347-9638



-
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: Authentication Framework

2002-07-09 Thread Stephan Michels




On Tue, 9 Jul 2002 [EMAIL PROTECTED] wrote:

> Hello Carsten,
>
>   thanks again for your patch for the Authentication Framework.
>   I tried it out and now can access my error messages with the
>   temp session context.
>   On the other side - with the new LoginAction.java I was not able to login
>   anymore - the authentication always failed.
>   So, I did some debugging and noticed, that the values of the parameters
>   I give with "request:nickname" and "request:password" were not
>   substituted

Is



really correct? Should it not be



?

Stephan Michels.

>   MyLoginAction: * param: request:password **
> MyLoginAction: * param: request:nickname
> **
>
> So I looked at the code and changed the new part back to the old and then
> everything worked again.
> The part I changed is:
>
>   if (enum != null) {
> for(int i = 0; i < enum.length; i++) {
> final String key = enum[i];
> if ( key.startsWith("parameter_") ) {
>   authenticationParameters.setParameter( key.substring
> ("parameter_".length()),
>
> par.getParameter(key));
>
> back to:
>
>   if (enum != null) {
> for(int i = 0; i < enum.length; i++) {
> final String key = enum[i];
> if ( key.startsWith("parameter_") ) {
> String value = par.getParameter(key);
> if ( value.startsWith("request:") ) {
> value = request.getParameter( value.substring(
> "request:".length()) );
> this.getLogger().debug("* param: " + value
> + " **");
> if (value == null) value = "";
> }
> authenticationParameters.setParameter( key.substring(
> "parameter_".length()),
>value);
> }
> }
>
> }
>
> I think you don´t get the values of the request parameters in the new
> version.
>
> If I am wrong, please tell me
>
> Thanks,
>
> miHam
>
>
> -
> 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: Support for XML-XSL-PDF

2002-07-09 Thread J.Pietschmann

Yogesh Mulwani wrote:
> 3.We want that we can set the background of our PDF report so we 
> are specifying 'background-image' attribute in  element but it 
> seems the cocoon2.0.2 does not support the 'backgorund-image' attribute. 
> Is there any solution to set the background image of the PDF.

Background-image is more or less supported in the current
FOP release 0.20.4. Get a distribution and replace the fop.jar
distributed with Cocoon.

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: Support for XML-XSL-PDF

2002-07-09 Thread Argyn Kuketayev



your 
question better fits fop-user mailing list

  -Original Message-From: Yogesh Mulwani 
  [mailto:[EMAIL PROTECTED]]Sent: Tuesday, July 09, 2002 2:28 
  AMTo: [EMAIL PROTECTED]Cc: 
  [EMAIL PROTECTED]Subject: Support for XML-XSL-PDF 
  
  Hello
   
      We are using 
  Cocoon-2.0.2 on Tomcat-3.3.1 in our application. 
      Our Application is a 
  reporting tool which generates the PDF files using XML - 
  XSL transformation
   


COCOON2.0WITH JBOSS2.4.3

2002-07-09 Thread vikas sehgal

Hi .

I am getting and error wihle the instalation of
Cocoon2.0 and with the JBoss2.4.3 is 

Cause:org.jboss.ejb.DeploymentException: Stopping
after fatal error: The encoding "Cp1252" is not
supported., Cause:org.xml.sax.SAXException: Stopping
after fatal error: The encoding "Cp1252" is not
supported.
This is while the parsing of for jboss.xml file that
is in use at JBoss as a part of deplyment descriptor

i did search the web for the under mention error but
no solution was there i am using JDK1.3.1 for runing
JBoss2.4.3. I am making the setup as stated at apache
site making changes in run.bat changes crimson.jar for
xerces.jar .This jar file is from
Xerces-J-bin.1.4.4.tar.gz as the xerecs1.4.4 which is
with the cocoon2.0 set up i think there is some
problem with that jar as it is not having some must
classes

and on the cocoon side  the dump on the screen is 
***
type internal-server-error

message The sitemap handler's sitemap is not
available. Please check logs for the exact error.

description org.apache.cocoon.ProcessingException: The
sitemap handler's sitemap is not available. Please
check logs for the exact error.

sender org.apache.cocoon.servlet.CocoonServlet

source Cocoon servlet

request-uri

/cocoon/

exception

org.apache.cocoon.ProcessingException: The sitemap
handler's sitemap is not available. Please check logs
for the exact error.

path-info



stacktrace

org.apache.cocoon.ProcessingException: The sitemap
handler's sitemap is not available. Please check logs
for the exact error.
at
org.apache.cocoon.sitemap.Manager.setupProcessing(Manager.java:244)
at
org.apache.cocoon.sitemap.Manager.invoke(Manager.java:109)
at org.apache.cocoon.Cocoon.process(Cocoon.java:514)
at
org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:647)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
at
org.apache.tomcat.core.Handler.service(Handler.java:287)
at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:812)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
at java.lang.Thread.run(Thread.java:484)
*

an urgent help needed
vikas



__
Do You Yahoo!?
Sign up for SBC Yahoo! Dial - First Month Free
http://sbc.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]>




Support for XML-XSL-PDF

2002-07-09 Thread Yogesh Mulwani



Hello
 
    We are using 
Cocoon-2.0.2 on Tomcat-3.3.1 in our application. 
    Our Application is a 
reporting tool which generates the PDF files using XML - 
XSL transformation
    We are also using SVG images 
embedded into the PDF files.
    In the sitemap.xmap, we are 
specifying the pattern for tranformation as:
               
            
            
        
    
    We are facing some major 
problems in our PDF file which is generated through cocoon.
    The following are the problems 
we are facing:
    
    1.    The SVGs 
embedded in our PDF has a problem in the sharpness, the pictures get 
distorted . 
 
    2.    There is an 
error on the Tomcat console when the PDF gets generated :
        
    "ERROR: The JPEG quality has not been specified. Use the 
default one: no compression"
        
    How can we set the JPEG quality
 
    3.    We want 
that we can set the background of our PDF report so we are specifying 
'background-image' attribute in  element but it seems the 
cocoon2.0.2 does not support the 'backgorund-image' attribute. Is there any 
solution to set the background image of the PDF.
 
 
Thanx
Yogesh
Uniqueware Software & Consultancy
India
 


Redirects (again)...

2002-07-09 Thread Per Kreipke

As I understand it handling successful form posting in XSP (e.g. without
actions) can't involve redirecting the user back to the calling page.

E.g. given the following pages:

index.html -> main page, lists all widgets
form.html -> form to add a new widget
doPost.xsp -> add the widget

in most cases, you'd like doPost.xsp to redirect back to the index.html page
on _success_ to show the new widget added to the list.

However in Cocoon 2.0.X:

- you can't redirect from an XSP file

- map:redirect-to can't be used after some stage in the pipeline (what is
that stage?)


I understand how to use the form validator to redisplay form.html until
input is correct but I don't quite know how to handle the post (without an
Action).


Hmm. I just remembered that I can use XSP to create an action. I just might
struggle with that next.

Any other suggestions are welcome,

Per


-
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] How Can I do ?

2002-07-09 Thread Matteo Di Giovinazzo

use the selector: org.apache.cocoon.selection.RequestParameterSelector

This should works:


   
 

 
   

   
 
   

   
 
   

 

 

   


CIAO!

-- 
Matteo Di Giovinazzo
[EMAIL PROTECTED]

illo ha scritto:
> Hello All,
> I hava a question for sitemap
> how can i write a sitmap:
> if i request http://site/test.xml
> it will transform by default.xsl
> if i request http://site/test.xml?sytle=test.xsl
> it will transform by test.xsl
> 
> Thanks 
> 
> 
> -
> 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: mod_webapp or mod_jk?

2002-07-09 Thread Skip Carter



> 
> I've found a nasty problem with mod_webapp (Apache 1.3.24, Tomcat 4.0.4b3): 
>sometimes (say, 5% of requests) the communications
> between the two servers (the web-server was on a Solaris box, the application-server 
>on another Solaris box) went down.
> This problems disappeared when we used mod_jk.
>

  Considering that I recently switched over to mod_webapp from mod_jk this is 
scary to hear
  (so far I have not noticed this problem with Apache 1.3.26, Tomcat 4.0.4b2 
on Linux).

 
> About the second question, you have some options, which are reported in the 2.0.3 
>FAQ:
> 1) Use mod-rewrite for an all-apache solution
> 2) Set cocoon as the root context of Tomcat (and redicte every root request to 
>Tomcat, of course)
> 
> After a long soul-searching... I chose the latter :)

  I am also doing #2, (with mod_webapp so the apache conf file has a
  WebAppDeploy cocoon   warpConnection /   for the virutal host).

  But I have one question that somebody may have a suggestion for.

  How do I support legacy CGI ?

  I am currently doing this with a sitemap entry to redirect to a virtual 
Apache server
  that is specifically for the purpose of handling cgi:

   
   http://cgiserver.mydomain.com/cgi-bin/{1}";
/>
   


  This works, but is there a cleaner way ?


-- 
 Dr. Everett (Skip) Carter  Phone: 831-641-0645 FAX:  831-641-0647
 Taygeta Scientific Inc.INTERNET: [EMAIL PROTECTED]
 1340 Munras Ave., Suite 314WWW: http://www.taygeta.com
 Monterey, CA. 93940












-
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: Dynamic XSL

2002-07-09 Thread Koen Pellegrims

Your idea is not as far-fetched as you might think (I think there is a
sample with dynamically generated content *and* stylesheets).
You will, however, need to use the cocoon:/ protocol in your sitemap to
allow your .xsl to be machted by the appropriate pipeline:












This example should do what you are looking for. The cocoon:/ protocol tries
to find an appropriate match in the
current sitemap.

Koen.

-Oorspronkelijk bericht-
Van: Eric Dalquist [mailto:[EMAIL PROTECTED]]
Verzonden: dinsdag 9 juli 2002 19:56
Aan: [EMAIL PROTECTED]
Onderwerp: QUESTION: Dynamic XSL


I was wondering if there is a way to generate an XSL document to be used in
another transformation. Here is an theoretical pipeline that might
illustrate my question a bit better:















I hope this makes sence to someone and they have some suggestions.

-Eric Dalquist


-
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]>




QUESTION: Dynamic XSL

2002-07-09 Thread Eric Dalquist

I was wondering if there is a way to generate an XSL document to be used in
another transformation. Here is an theoretical pipeline that might
illustrate my question a bit better:















I hope this makes sence to someone and they have some suggestions.

-Eric Dalquist


-
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: Howto select EVERY Image ending with *.gif ?

2002-07-09 Thread Per Kreipke

Good point, thanks. I thought he was asking about the gifs in subdirs :-o

Per

> -Original Message-
> From: Joerg Heinicke [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, July 09, 2002 1:08 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Howto select EVERY Image ending with *.gif ?
> 
> 
> It only doesn't match on .gif without any directory. If he doesn't need 
> the filename specifically, the **.gif (he tested already??) is the 
> correct solution.
> 
> Joerg
> 
> Per Kreipke wrote:
> > I think the pattern you want is:
> > 
> > **/*.gif
> > 
> > == 'any .gif in any directory, no matter how deep'
> > 
> > Per
> 
> 
> -
> 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: Howto select EVERY Image ending with *.gif ?

2002-07-09 Thread Christian Haul

On 09.Jul.2002 -- 01:03 PM, Per Kreipke wrote:
> I think the pattern you want is:
> 
> **/*.gif
> 
> == 'any .gif in any directory, no matter how deep'

add another one

  *.gif

if you don't know if a directory is part of the path. That makes it
two matchers. Could use a resource for the actual stuff and forward
only {2} and {1}. Only makes sense if it's more than a reader,
though.

Chris.

Please follow up summarizing your problem and which suggested solution
/ information worked for you when you consider your problem
solved. Add "SUMMARY: " to the subject line. This will make FAQ
generation and searching the list easier. In addition, it makes
helping you more fun. Thank you.

-- 
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


-
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: Howto select EVERY Image ending with *.gif ?

2002-07-09 Thread Joerg Heinicke

It only doesn't match on .gif without any directory. If he doesn't need 
the filename specifically, the **.gif (he tested already??) is the 
correct solution.

Joerg

Per Kreipke wrote:
> I think the pattern you want is:
> 
> **/*.gif
> 
> == 'any .gif in any directory, no matter how deep'
> 
> Per


-
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: Howto select EVERY Image ending with *.gif ?

2002-07-09 Thread Per Kreipke

I think the pattern you want is:

**/*.gif

== 'any .gif in any directory, no matter how deep'

Per

-Original Message-
From: Sascha Kulawik [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 09, 2002 12:59 PM
To: [EMAIL PROTECTED]
Subject: Howto select EVERY Image ending with *.gif ?


Hello,
Currently I havent resolved my problem to create a map for selecting every
image with *.gif.
The Problem occures on subdirectorys (without sitemap), that arent known by
name.
Example: If I select **.gif or */*.gif only one Directory is selected.
If I have some sitestructures with 2 or 4 Tree depth, I have to select the
images for all possible dephts.
*/*/*/*/*.gif and so on.
Is there a better Wildcard for selecting absolutely everything with the
ending *.gif ?
Thanks,
Sascha


-
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]>




Howto select EVERY Image ending with *.gif ?

2002-07-09 Thread Sascha Kulawik
Title: Howto select EVERY Image ending with *.gif ?






Hello,


Currently I havent resolved my problem to create a map for selecting every image with *.gif.

The Problem occures on subdirectorys (without sitemap), that arent known by name.

Example: If I select **.gif or */*.gif only one Directory is selected.

If I have some sitestructures with 2 or 4 Tree depth, I have to select the images for all possible dephts.

*/*/*/*/*.gif and so on.


Is there a better Wildcard for selecting absolutely everything with the ending *.gif ?


Thanks,


Sascha





Re: dynamic src for

2002-07-09 Thread Christian Haul

Two solutions (depending on your version):

a) RequestParamAction (2.0.x + 2.1)

 

  
  
  
  


 

b) InputModules (2.1)

 



 

You might want to use ResourceExistsAction to check whether the
provided page exists.

Chris.

Please follow up summarizing your problem and which suggested solution
/ information worked for you when you consider your problem
solved. Add "SUMMARY: " to the subject line. This will make FAQ
generation and searching the list easier. In addition, it makes
helping you more fun. Thank you.

-- 
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


-
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: Getting a parser

2002-07-09 Thread Ugo Cei

Vadim Gritsenko wrote:
>>From: Ugo Cei [mailto:[EMAIL PROTECTED]]
>>I came up with:
>>
>>  import org.apache.cocoon.components.parser.Parser;
> 
> 
> Use org.apache.avalon.excalibur.xml.Parser.
> 
> Vadim

Don't you just love it when interfaces change in an incompatible way and 
  there are no relevant docs on the Avalon site? ;-)

By the way, I was using these instructions:

 parser.setConsumer(new IncludeXMLConsumer(xmlConsumer));
 parser.parse(is);

Turns out there are no such methods in 
org.apache.avalon.excalibur.xml.Parser. What is a poor developer to do? 
Just use javap! A little ingenuity and here is the solution:

 parser.parse(is, new IncludeXMLConsumer(xmlConsumer));

and it's even shorter :-).

Such is life on the bleeding edge ;-).

--
Ugo Cei - http://beblogging.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]>




dynamic src for

2002-07-09 Thread Thomas Balthazar

hello everybody,

i'm a newbie with cocoon, and i would like to quickly test some feature
to eventually use it on a real project.

here is the situation : 

1. the end user click on an hyperlink
(href="http://localhost:8080/cocoon/tba/preview.html";)

2. in the sitemap.xmap, the '' "catches the
click".

3. then the "" file
is processed by ""
then serialized with ""

ok, this is "easy", the page is displayed and it works fine for me.


now, what i would like to do is to select the ""
dynamicly, depending on the link the user clicked on.


what i want to have is :

i generate links for the end user that looks like this :
href="http://localhost:8080/cocoon/tba/preview.html?page=/content/_MY_XM
L_PAGE_1.xml"
href="http://localhost:8080/cocoon/tba/preview.html?page=/content/_MY_XM
L_PAGE_2.xml"
...

if the user clicks on the first link, i would like to have something
like that 






if the user clicks on the second link, i would like to have something
like that 






and so on ...


what i have done is :

1. i generate a link for the end user that looks like this :
href="http://localhost:8080/cocoon/tba/preview.html?page=/content/_MY_XM
L_PAGE_1.xml"

2. in the sitemap.xmap, the '' "catches the
click".

3. with ""
i can get the "page" parameter with the " tag.

4. i can display this parameter for debug with ""
and ""

so what can/must i do with this parameter?
do i have to do something like a "redirect" in the pipeline?
do i have to do it with an "action"?

i hope i was clear ;o)
can you please help me?
thanks in advance.

--
Thomas Balthazar
[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]>




[HELP] How Can I do ?

2002-07-09 Thread illo

Hello All,
I hava a question for sitemap
how can i write a sitmap:
if i request http://site/test.xml
it will transform by default.xsl
if i request http://site/test.xml?sytle=test.xsl
it will transform by test.xsl

Thanks 


-
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]>




[HELP] How Can I do ?

2002-07-09 Thread illo

Hello All,
I hava a question for sitemap
how can i write a sitmap:
if i request http://site/test.xml
it will transform by default.xsl
if i request http://site/test.xml?sytle=test.xsl
it will transform by test.xsl

Thanks 


-
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]>




[HELP] How Can I do ?

2002-07-09 Thread illo

Hello All,
I hava a question for sitemap
how can i write a sitmap:
if i request http://site/test.xml
it will transform by default.xsl
if i request http://site/test.xml?sytle=test.xsl
it will transform by test.xsl

Thanks 


-
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]>




[HELP] How Can I do ?

2002-07-09 Thread illo

Hello All,
I hava a question for sitemap
how can i write a sitmap:
if i request http://site/test.xml
it will transform by default.xsl
if i request http://site/test.xml?sytle=test.xsl
it will transform by test.xsl

Thanks 


-
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]>




[HELP] How Can I do ?

2002-07-09 Thread illo

Hello All,
I hava a question for sitemap
how can i write a sitmap:
if i request http://site/test.xml
it will transform by default.xsl
if i request http://site/test.xml?sytle=test.xsl
it will transform by test.xsl

Thanks 


-
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 status page ??

2002-07-09 Thread Artur Bialecki


 
 [ C-2.0.2, JDK1.3.1, Tomkat 4.0.4.b2 ]
 
 I deploy the cocoon servlet as part of a j2ee application
 which uses other servlets as well. So, I don't have the /
 mapped to cocoon (just *.xsp and *.xml). How can I access
 Cocoons status page normally accessed with /cocoon/status
 
 Thanks,
 
 Artur...


-
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: extra-classpath in cocoon/WEB-INF/web.xml has no effect on CLASSPATH

2002-07-09 Thread Andrei Svirida

Hi cocooners,

i have moved some of the jars needed for my cocoon application
out from /cocoon/WEB-INF/lib directory to /opt/lib

E.g., file /cocoon/WEB-INF/lib/test.jar is at
/opt/lib/test.jar now.

After that, i inserted
 
   extra-classpath
   /opt/lib/test.jar

into cocoon/WEB-INF/web.xml.

Inspite of that cocoon servlet fails to find the classes from test.jar
and throws ClassNotFoundException.

My OS is SunOS, Cocoons version is 2.0.2
The same problem exists also on my Windows-PC with Cocoon 2.0.2.

Has anybody an idea how to fix it?


  

--
Andrei Svirida, Projekte & Entwicklung
MIDRAY GmbH - a debitel company
Phone:  +49.221.8884 435 
Fax:+49.221.8884 455

http://www.midray.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]>




CastorTransformer

2002-07-09 Thread Werner Guttmann

Hi,

I had a look at the CastorTransformer the other day to familiarize
myself with how things are implemented, etc. I still fail to understand
why this component is actually called Castor*Transformer* when clearly
it's role is that of a generator, i.e. a component responsible for
inserying XML (SAX events) into a pipeline.

Can anybody please enlighten me whether I am misunderstanding/missing
anything fundamental ...

Thanks
Wenrer


-
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]>




[broken link] while running org.apache.cocoon.Main

2002-07-09 Thread Sebastien SACARD

Hi,

I successfully installed cocoon under tomcat, and run it also in command 
line through an Ant task. But now I'm trying to run it through a simple 
shell script, I'm getting :

DEBUG   10262   [] (): Set the URI Prefix (OLD=, NEW=)
DEBUG   10262   [] (): Reset context to 
file:/opt/backoffice/tomcat/webapps/cocoon/
WARN10262   [] ():   [broken link]--> static/index800.html
INFO10262   [] ():   Memory used: 6485024
INFO10262   [] ():   Processed, Translated & Left: 0, 0, 0

What is exactly a broken link? When I look into  the Main.java source, I 
understand it's an URI cocoon can't figure out, but I don't understand 
if it's a context definition problem (which is obviously not because of 
the "Reset context" line in the trace), or another problem.
My cocoon installation is a full version (sample, doc, etc ...) , so I 
expected at least to access the documentation files, but I get the same 
error.
I think all the classpath and all the parameters are set properly, so 
I'm wondering what I missed... Any idea or direction to look at ?

Here is my script :
# define the working directory
CONTEXT=/opt/backoffice/tomcat/webapps/cocoon

# define the classpath
CLASSPATH=""
for i in /opt/backoffice/tomcat/webapps/cocoon/WEB-INF/lib/*.jar; do 
CLASSPATH=$CLASSPATH:$i;done;
CLASSPATH=$CLASSPATH:/opt/backoffice/tomcat/webapps/cocoon/WEB-INF/classes

CLASSPATH=$CLASSPATH:/opt/backoffice/javalib/xml/xalan.jar
CLASSPATH=$CLASSPATH:/opt/backoffice/javalib/xml/xerces.jar
CLASSPATH=$CLASSPATH:/opt/backoffice/javalib/xml/xml-apis.jar

CLASSPATH=$CLASSPATH:/opt/backoffice/tomcat/webapps/cocoon/static/resources

CLASSPATH=$CLASSPATH:/usr/java/jdk/lib/tools.jar
CLASSPATH=$CLASSPATH:/opt/backoffice/tomcat/lib/servlet.jar

/usr/java/jdk/bin/java -classpath $CLASSPATH org.apache.cocoon.Main 
-c$CONTEXT -uDEBUG
-C./WEB-INF/cocoon.xconf -d/opt/public/data/index/fr 
-w/opt/backoffice/tmp/work -l/opt/backoffice/tmp/log/cocoon.log $@


Thanks 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]>




SUMMARY: Re: Problems with Database Tutorial

2002-07-09 Thread Bobby Mitchell



Christian Haul wrote:

> On 02.Jul.2002 -- 11:36 AM, Bobby Mitchell wrote:
> 
While using Sybase I had to remove the  begin and end 
tags in order to actually edit the entry, otherwise I get an sql error 
stating that "SELECT name, department_id FROM employee WHERE id = ? " is 
an error. The id is being passed as a ? so it causes an error. When 
using Hsqldb I made no changes to the code.


>>This behaviour is the same as before. Here is the error message:
>>
>>
>>org.apache.cocoon.ProcessingException: Exception in 
>>ServerPagesGenerator.generate(): java.lang.RuntimeException: Error 
>>executing statement: SELECT name, department_id FROM employee WHERE id = 
>>? : com.sybase.jdbc2.jdbc.SybSQLException: Implicit conversion from 
>>datatype 'CHAR' to 'INT' is not allowed. Use the CONVERT function to run 
>>this query.
>>
> 
> Yep, error message says it all. The example is attempting to use a
> String to set an int column. It looks like HSQLDB is more forgiving in
> this. Change it to
> 
> 
>   SELECT name, department_id FROM employee
>   WHERE id = type="int">Integer.parseInt(default="0"/>)
> 
> 
> and convert the string explicitly to an integer. I've set a default of
> "0" in case the parameter is non-existent to prevent a NPE or
> NumberFormatException. 
> 
> It would be great if you could go through the tutorial and look for
> other, similar changes, that would be required to run it e.g. on
> sybase and file a bug in bugzilla with patches.
> 
>   Chris.


I applied the changes and everything works fine. I am including a patch 
file and I will also file a report on bugzilla. Thanks for the help.

patch file for the directory cocoon/tutorial/docs:
**
diff -Naur tutorial/docs/edit-dept.xsp tutorial/docs.sybase/edit-dept.xsp
--- tutorial/docs/edit-dept.xsp  Tue Jul  9 09:50:57 2002
+++ tutorial/docs.sybase/edit-dept.xsp Tue Jul  9 09:47:56 2002
@@ -24,7 +24,7 @@
  

  SELECT name FROM department
-WHERE id = 
+   WHERE id = Integer.parseInt()


  
diff -Naur tutorial/docs/edit-empl.xsp tutorial/docs.sybase/edit-empl.xsp
--- tutorial/docs/edit-empl.xsp  Tue Jul  9 09:50:57 2002
+++ tutorial/docs.sybase/edit-empl.xsp Tue Jul  9 09:54:39 2002
@@ -23,7 +23,7 @@

  
SELECT name, department_id FROM employee
-  WHERE id = 
+ WHERE id = Integer.parseInt()
  
  

***


> 
> Please follow up summarizing your problem and which suggested solution
> / information worked for you when you consider your problem
> solved. Add "SUMMARY: " to the subject line. This will make FAQ
> generation and searching the list easier. In addition, it makes
> helping you more fun. Thank you.
> 
> 


-- 
Robert J. (Bobby) Mitchell
Systems Administrator
NASA Institute for Advanced Concepts
555A 14th St Atlanta, Ga. 30318
Phone: (404)347-9633 Fax: (404)347-9638



-
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: FOP performance

2002-07-09 Thread Berin Loritsch

> From: Matthew Langham [mailto:[EMAIL PROTECTED]] 
> 
> Hi,
> 
> It takes 8.5 seconds to generate the PDF file - which is only 
> 1 page! Quite complex though with lots of tables etc - but no 
> graphics. The system is a 650 Mhz with 256 MB RAM. Our 
> customer thinks that this is too slow - and I am looking for 
> any ideas as to how we can improve the speed (or perhaps this 
> is normal?). The duration is split evently between the 
> transformation step and the FOP step.

Each version of FOP and Cocoon gets quicker and quicker.  It's
better stay current.

Regarding your questions on speeding up the implementation, I have
to ask how often the source changes.  If it does not change often,
I suggest pre-generating it on a specified interval. The user will
think you did some voodoo and think you are a "god", and you didn't
change the architecture.

At the very least, this will buy you some time so that you can
experiment.


-
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: Getting a parser

2002-07-09 Thread Vadim Gritsenko

> From: Ugo Cei [mailto:[EMAIL PROTECTED]]
> 
> Hi people,
> 
> I need to get an handle to a parser in a Generator I am currently
> writing. So, I've copied a couple of lines from the ESQL logicsheet
> (2.0.3dev) because I remembered it did something like that. This is
what
> I came up with:
> 
>   import org.apache.cocoon.components.parser.Parser;

Use org.apache.avalon.excalibur.xml.Parser.

Vadim


> 
>   ...
> 
>   parser = (Parser) manager.lookup(Parser.ROLE);
> 
> This works, but the compiler complains that Parser is deprecated, and
> indeed the javadocs says that I should use the Avalon XML Parser.
> 
> So, if I want to make the compiler happy and avoid having my code
break
> in the future, what am I supposed to do? Does anyone have a correct
code
> snippet for getting an XML Parser?
> 
>   Ugo
> 
> --
> Ugo Cei - http://beblogging.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: Réf. : Re: parameter request..

2002-07-09 Thread Christian Haul

On 09.Jul.2002 -- 01:49 PM, Othman Haddad wrote:
> hi,
> thanks for your preciuos answer
> 
> >See docs for example (user docs -> concepts -> modules)
> you mean the docs of the snapshot cvs 2.1 version?

yes. 2.0 has it as well, but the feature I'm refering to is available
and documented only in 2.1

> 
> thanks
> 
> 
> De : [EMAIL PROTECTED]
> Date : mardi 09 juillet 2002 12:20:43
> A : [EMAIL PROTECTED]; Othman Haddad
> Sujet : Re: parameter request..
> 
> On 09.Jul.2002 -- 11:55 AM, Othman Haddad wrote:
> > hello,
> > is it so difficuelt to get the value of a field in an xsp and select a
> > pipeline in function of it?
> 
> Impossible, actually. Generators (e.g. XSP) are run only when the
> pipeline is already assembled.
> 
> You need to use an action for that. RequestParamAction comes to
> mind. With 2.1-dev you could use the RequestParameterInputModule
> instead. See docs for example (user docs -> concepts -> modules)
> 
> > thanks for your preciuos help
> 

Please correct the settings of you MUA that it doesn't send HTML and
doesn't send line endings (^M)

Chris.

Please follow up summarizing your problem and which suggested solution
/ information worked for you when you consider your problem
solved. Add "SUMMARY: " to the subject line. This will make FAQ
generation and searching the list easier. In addition, it makes
helping you more fun. Thank you.

-- 
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


-
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]>




Getting a parser

2002-07-09 Thread Ugo Cei

Hi people,

I need to get an handle to a parser in a Generator I am currently 
writing. So, I've copied a couple of lines from the ESQL logicsheet 
(2.0.3dev) because I remembered it did something like that. This is what 
I came up with:

import org.apache.cocoon.components.parser.Parser;

...

parser = (Parser) manager.lookup(Parser.ROLE);

This works, but the compiler complains that Parser is deprecated, and 
indeed the javadocs says that I should use the Avalon XML Parser.

So, if I want to make the compiler happy and avoid having my code break 
in the future, what am I supposed to do? Does anyone have a correct code 
snippet for getting an XML Parser?

Ugo

-- 
Ugo Cei - http://beblogging.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: mod_webapp or mod_jk?

2002-07-09 Thread Luca Morandini


> I'm just use mod_rewrite, but after redirect operation i get the
> "cocoon" (instead the my-for-cocoon-prefix) word in the URL
> (with redirect to relative path like "../sample")
> How to solve this problem?


I'm afraid you can't.

Best regards,

-
   Luca Morandini
   GIS Consultant
  [EMAIL PROTECTED]
http://utenti.tripod.it/lmorandini/index.html
-


> -Original Message-
> From: yuryx [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, July 09, 2002 2:05 PM
> To: [EMAIL PROTECTED]
> Subject: Re: mod_webapp or mod_jk?
>
>
> Hi Luca!
>
> Thanx for your reply, but one more qustion :)
>
> I'm just use mod_rewrite, but after redirect operation i get the
> "cocoon" (instead the my-for-cocoon-prefix) word in the URL
> (with redirect to relative path like "../sample")
> How to solve this problem?
>
> Thanx.
> Yury.
>
>
> Luca Morandini wrote:
>
> >Yurix,
> >
> >here's for my 0.2c:
> >
> >I've found a nasty problem with mod_webapp (Apache 1.3.24, Tomcat 4.0.4b3): 
>sometimes (say, 5% of requests) the communications
> >between the two servers (the web-server was on a Solaris box, the 
>application-server on another Solaris box) went down.
> >This problems disappeared when we used mod_jk.
> >
> >About the second question, you have some options, which are reported in the 2.0.3 
>FAQ:
> >1) Use mod-rewrite for an all-apache solution
> >2) Set cocoon as the root context of Tomcat (and redicte every root request to 
>Tomcat, of course)
> >
> >After a long soul-searching... I chose the latter :)
> >
> >Best regards,
> >
> >-
> >   Luca Morandini
> >   GIS Consultant
> >  [EMAIL PROTECTED]
> >http://utenti.tripod.it/lmorandini/index.html
> >-
> >
> >
> > 
> >
> >>-Original Message-
> >>From: yuryx [mailto:[EMAIL PROTECTED]]
> >>Sent: Tuesday, July 09, 2002 1:04 PM
> >>To: [EMAIL PROTECTED]
> >>Subject: mod_webapp or mod_jk?
> >>
> >>
> >>Hi all!
> >>
> >>Which one would you recommend for a mid-size website with cocoon?
> >>Which one is more stable? Can I mount cocoon's context to website's '/'
> >>from within apache (using mod_jk)?
> >>
> >>Thanx for any reply.
> >>
> >>Yury.
> >>
> >>
> >>
> >>-
> >>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]>
> 

-
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: mod_webapp or mod_jk?

2002-07-09 Thread yuryx

Hi Luca!

Thanx for your reply, but one more qustion :)

I'm just use mod_rewrite, but after redirect operation i get the 
"cocoon" (instead the my-for-cocoon-prefix) word in the URL
(with redirect to relative path like "../sample")
How to solve this problem?

Thanx.
Yury.


Luca Morandini wrote:

>Yurix,
>
>here's for my 0.2c:
>
>I've found a nasty problem with mod_webapp (Apache 1.3.24, Tomcat 4.0.4b3): sometimes 
>(say, 5% of requests) the communications
>between the two servers (the web-server was on a Solaris box, the application-server 
>on another Solaris box) went down.
>This problems disappeared when we used mod_jk.
>
>About the second question, you have some options, which are reported in the 2.0.3 FAQ:
>1) Use mod-rewrite for an all-apache solution
>2) Set cocoon as the root context of Tomcat (and redicte every root request to 
>Tomcat, of course)
>
>After a long soul-searching... I chose the latter :)
>
>Best regards,
>
>-
>   Luca Morandini
>   GIS Consultant
>  [EMAIL PROTECTED]
>http://utenti.tripod.it/lmorandini/index.html
>-
>
>
>  
>
>>-Original Message-
>>From: yuryx [mailto:[EMAIL PROTECTED]]
>>Sent: Tuesday, July 09, 2002 1:04 PM
>>To: [EMAIL PROTECTED]
>>Subject: mod_webapp or mod_jk?
>>
>>
>>Hi all!
>>
>>Which one would you recommend for a mid-size website with cocoon?
>>Which one is more stable? Can I mount cocoon's context to website's '/'
>>from within apache (using mod_jk)?
>>
>>Thanx for any reply.
>>
>>Yury.
>>
>>
>>
>>-
>>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]>




Réf. : Re: parameter request..

2002-07-09 Thread Othman Haddad








  hi,
  thanks for your preciuos answer
   
  >See docs for example (user docs -> concepts -> 
  modules)you mean the docs of the snapshot cvs 2.1 version?
   
  thanks
   
  ---Message original---
   
  
  De : [EMAIL PROTECTED]
  Date : mardi 09 juillet 
  2002 12:20:43
  A : [EMAIL PROTECTED]; 
  Othman Haddad
  Sujet : Re: parameter 
  request..
   On 09.Jul.2002 -- 11:55 AM, Othman Haddad wrote:> 
  hello,> is it so difficuelt to get the value of a field in an xsp 
  and select a> pipeline in function of it?Impossible, 
  actually. Generators (e.g. XSP) are run only when thepipeline is 
  already assembled.You need to use an action for that. 
  RequestParamAction comes tomind. With 2.1-dev you could use the 
  RequestParameterInputModuleinstead. See docs for example (user docs 
  -> concepts -> modules)> thanks for your preciuos 
  helpPlease correct the settings of you MUA that it doesn't send 
  HTML anddoesn't send line endings (^M)Chris.Please 
  follow up summarizing your problem and which suggested solution/ 
  information worked for you when you consider your problemsolved. Add 
  "SUMMARY: " to the subject line. This will make FAQgeneration and 
  searching the list easier. In addition, it makeshelping you more fun. 
  Thank you.-- 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-Please 
  check that your question has not already been answered in theFAQ 
  before posting. To 
  unsubscribe, e-mail: <[EMAIL PROTECTED]>For 
  additional commands, e-mail: <[EMAIL PROTECTED]>.





	
	
	
	
	
	
	




  IncrediMail - La messagerie électronique a enfin 
évolué - Cliquer 
ici



Re: FOP performance

2002-07-09 Thread Eric Dalquist

I haven't used FOP with cocoon yet but I have with Oracle's XSQL server
pages. FOP is a very useful package but it is slow ESPECIALLY with tables. I
haven't looked to heavily into the status of the project for about a year
now but performance was a big issue with the dev team but changes weren't
happening too fast. I would read through their users list and see if you can
get some people to help you optimize your layout a little bit. There are
certain things that can be done other ways to save time.

-Eric Dalquist

- Original Message -
From: "Matthew Langham" <[EMAIL PROTECTED]>
To: "Cocoon-Dev@Xml. Apache. Org" <[EMAIL PROTECTED]>;
"Cocoon-Users@Xml. Apache. Org" <[EMAIL PROTECTED]>
Sent: Tuesday, July 09, 2002 7:48 AM
Subject: FOP performance


> Hi,
>
> we have a project where we are using Cocoon 2.0. We have a simple pipeline
> that generates a PDF document:
>
>   
> 
> 
> 
> 
>   
>
> The XML data arrives as a request paramter (130 KB in size!) and the
> stylesheet is 636 KB in size. We are using our own specific generator and
> transformer in the pipeline (but they don't do anything special).
>
> It takes 8.5 seconds to generate the PDF file - which is only 1 page!
Quite
> complex though with lots of tables etc - but no graphics. The system is a
> 650 Mhz with 256 MB RAM. Our customer thinks that this is too slow - and I
> am looking for any ideas as to how we can improve the speed (or perhaps
this
> is normal?). The duration is split evently between the transformation step
> and the FOP step.
>
> Would switching to 2.1-dev help? Why?
> The stylesheet is very large - any idea here (translets?)
> Perhaps it's quicker to use several stylesheets instead of 1 large one?
> Is there a different PDF rendering engine we can use with Cocoon?
> etc.
>
> Thanks.
>
> Matthew
>
> --
> Open Source Group   Cocoon { Consulting, Training, Projects }
> =
> Matthew Langham, S&N AG, Klingenderstrasse 5, D-33100 Paderborn
> Tel:+49-5251-1581-30 [EMAIL PROTECTED] - http://www.s-und-n.de
> -
> Cocoon book:
>   http://www.amazon.com/exec/obidos/ASIN/0735712352/needacake-20
> =
>
>
>
> -
> 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]>




Authentication Framework

2002-07-09 Thread michael_hampel

Hello Carsten,

  thanks again for your patch for the Authentication Framework.
  I tried it out and now can access my error messages with the
  temp session context.
  On the other side - with the new LoginAction.java I was not able to login
  anymore - the authentication always failed.
  So, I did some debugging and noticed, that the values of the parameters
  I give with "request:nickname" and "request:password" were not
  substituted

  MyLoginAction: * param: request:password **
MyLoginAction: * param: request:nickname
**

So I looked at the code and changed the new part back to the old and then
everything worked again.
The part I changed is:

  if (enum != null) {
for(int i = 0; i < enum.length; i++) {
final String key = enum[i];
if ( key.startsWith("parameter_") ) {
  authenticationParameters.setParameter( key.substring
("parameter_".length()),

par.getParameter(key));

back to:

  if (enum != null) {
for(int i = 0; i < enum.length; i++) {
final String key = enum[i];
if ( key.startsWith("parameter_") ) {
String value = par.getParameter(key);
if ( value.startsWith("request:") ) {
value = request.getParameter( value.substring(
"request:".length()) );
this.getLogger().debug("* param: " + value
+ " **");
if (value == null) value = "";
}
authenticationParameters.setParameter( key.substring(
"parameter_".length()),
   value);
}
}

}

I think you don´t get the values of the request parameters in the new
version.

If I am wrong, please tell me

Thanks,

miHam


-
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]>




FOP performance

2002-07-09 Thread Matthew Langham

Hi,

we have a project where we are using Cocoon 2.0. We have a simple pipeline
that generates a PDF document:

  




  

The XML data arrives as a request paramter (130 KB in size!) and the
stylesheet is 636 KB in size. We are using our own specific generator and
transformer in the pipeline (but they don't do anything special).

It takes 8.5 seconds to generate the PDF file - which is only 1 page! Quite
complex though with lots of tables etc - but no graphics. The system is a
650 Mhz with 256 MB RAM. Our customer thinks that this is too slow - and I
am looking for any ideas as to how we can improve the speed (or perhaps this
is normal?). The duration is split evently between the transformation step
and the FOP step.

Would switching to 2.1-dev help? Why?
The stylesheet is very large - any idea here (translets?)
Perhaps it's quicker to use several stylesheets instead of 1 large one?
Is there a different PDF rendering engine we can use with Cocoon?
etc.

Thanks.

Matthew

--
Open Source Group   Cocoon { Consulting, Training, Projects }
=
Matthew Langham, S&N AG, Klingenderstrasse 5, D-33100 Paderborn
Tel:+49-5251-1581-30  [EMAIL PROTECTED] - http://www.s-und-n.de
-
Cocoon book:
  http://www.amazon.com/exec/obidos/ASIN/0735712352/needacake-20
=



-
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 and CLASSPATH

2002-07-09 Thread Sylvain.Thevoz

Hello,

How to check my classpath in my Cocoon project?


Thank you
Sylvain

-
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: mod_webapp or mod_jk?

2002-07-09 Thread Luca Morandini

Yurix,

here's for my 0.2c:

I've found a nasty problem with mod_webapp (Apache 1.3.24, Tomcat 4.0.4b3): sometimes 
(say, 5% of requests) the communications
between the two servers (the web-server was on a Solaris box, the application-server 
on another Solaris box) went down.
This problems disappeared when we used mod_jk.

About the second question, you have some options, which are reported in the 2.0.3 FAQ:
1) Use mod-rewrite for an all-apache solution
2) Set cocoon as the root context of Tomcat (and redicte every root request to Tomcat, 
of course)

After a long soul-searching... I chose the latter :)

Best regards,

-
   Luca Morandini
   GIS Consultant
  [EMAIL PROTECTED]
http://utenti.tripod.it/lmorandini/index.html
-


> -Original Message-
> From: yuryx [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, July 09, 2002 1:04 PM
> To: [EMAIL PROTECTED]
> Subject: mod_webapp or mod_jk?
>
>
> Hi all!
>
> Which one would you recommend for a mid-size website with cocoon?
> Which one is more stable? Can I mount cocoon's context to website's '/'
> from within apache (using mod_jk)?
>
> Thanx for any reply.
>
> Yury.
>
>
>
> -
> 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]>




mod_webapp or mod_jk?

2002-07-09 Thread yuryx

Hi all!

Which one would you recommend for a mid-size website with cocoon?
Which one is more stable? Can I mount cocoon's context to website's '/' 
from within apache (using mod_jk)?

Thanx for any reply.

Yury.



-
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: parameter request..

2002-07-09 Thread Christian Haul

On 09.Jul.2002 -- 11:55 AM, Othman Haddad wrote:
> hello,
> is it so difficuelt to get the value of a field in an xsp and select a
> pipeline in function of it?

Impossible, actually. Generators (e.g. XSP) are run only when the
pipeline is already assembled.

You need to use an action for that. RequestParamAction comes to
mind. With 2.1-dev you could use the RequestParameterInputModule
instead. See docs for example (user docs -> concepts -> modules)

> thanks for your preciuos help

Please correct the settings of you MUA that it doesn't send HTML and
doesn't send line endings (^M)

Chris.

Please follow up summarizing your problem and which suggested solution
/ information worked for you when you consider your problem
solved. Add "SUMMARY: " to the subject line. This will make FAQ
generation and searching the list easier. In addition, it makes
helping you more fun. Thank you.

-- 
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


-
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: Debian, httpd and cocoon2 problems

2002-07-09 Thread MJ Ray

Albert Cervera Areny wrote:
> As said in the subject I use Debian with testing packages...

Are you trying to use the debian-distributed package of cocoon2?  That needs
quite a lot of work and is up for adoption at http://bugs.debian.org/146462

I'm interested in doing the work to make it work again, but time defeats me
for now, so I've not taken any real action yet.  Also, it's not in Debian
proper, but only in contrib.  Is it even possible to run C2 using Kaffe or
gcj?  I don't remember seeing anyone answer that for some time.

ObDebQn: Why is ORP in contrib?  Hrrrm.
-- 
MJR ,
| Q. Do you need a net-based application developing, 
|or advice and training about web technology?
| A. I suggest you try http://www.luminas.co.uk/

-
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]>




parameter request..

2002-07-09 Thread Othman Haddad








  hello,
  is it so difficuelt to get the value of a field in an xsp and select 
  a pipeline in function of it?
  ie: 
  i've an xsp which contains a file input: "x", the value of  "x" 
  represent xslt file which i want to apply on a "z.xml" file.
   
   please, i don't find any way to get a value of a field as a 
  parameter to apply it in my pipelines!!
   
  thanks for your preciuos help





	
	
	
	
	
	
	




  IncrediMail - La messagerie électronique a enfin 
évolué - Cliquer 
ici



Slash-edit and ISO-8859-1

2002-07-09 Thread ROSSEL Olivier

I can't manage to type non US-ASCII characters in slash-edit.
It is always displayed as ugly Unicode-like characters.

Anyone ever had that problem?
The problem seems not to appear with Mozilla, but
with IE and other browsers, it is very real...

-
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]>




Tr : Réf. : Re: xsp and pipelines..

2002-07-09 Thread Othman Haddad





  
  

   
   
  ---Message original---
   
  
  De : Othman Haddad
  Date : lundi 08 juillet 
  2002 16:46:38
  A : [EMAIL PROTECTED]
  Sujet : Réf. : Re: xsp 
  and pipelines..
   
  in fact,
  what i want to do is uploading a stylesheet,click on a submit button 
  and then validating it,and then apply it on an another xml file ,and 
  display the result.
  the name of the input field is :addxslt.
  the name of the button is submit.
  and i use the forma-validation action like in the cocoon 
  samples.
  here is the portion of the sitemap:(that i know it's wrong):
   
  
          
      
  
          
    
   
       
   
     
   
  -
  1) so how can i get the value of the field addxslt and use wildcard 
  with it,directly inside the action tags?
   
  thanks
   
  

  


  
  
    IncrediMail - La messagerie électronique a enfin 
évolué - Cliquer 
ici