Re: Can't instantiate multiple nodesets on same stylesheet?

2003-09-11 Thread Tony Culshaw
You might be 'out of context' on the second nodeset, ie. it might be correct
in the result being null..

Can you post your stylesheet (or an example) to this list?

- Original Message - 
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, September 10, 2003 5:20 PM
Subject: Can't instantiate multiple nodesets on same stylesheet?


> Hi all,
>
> Not sure whether this is as-designed or not (the archives had nothing),
but
> I'm seeing some strange behavior when using more than one
> xalan:nodeset($myvariable) statement in the same page.  My stylesheet
> declares two RTF's as variables, and I convert each one to nodesets for
> display.  The problem is that only the first nodeset gets rendered
> properly.  The second one is always null.  I can switch them around and
the
> first one always is fine, and the second is always null (using count()
also
> shows zero nodes).  Strange... Any tips would be appreciated. Is there
some
> special trick to using multiple nodesets?
>
> My details:
> Tomcat 4.1.24 LE
> Cocoon 2.1m2
> JDK 1.4.1
> Rendering with default XSLT transformer/Xalan (tried several versions)
>
> Thanks,
> David Benoff
>
> 
> mail2web - Check your email from the web at
> http://mail2web.com/ .
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>



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



wsproxy and request parameters

2003-09-11 Thread Jeff Ramsdale
I'm playing with the Amazon.com web service toolkit and Cocoon.

Here's my sitemap snippete:

  
http://xml.amazon.com/onca/xml3?t=webservices-20&dev-t=[my dev
code]&ActorSearch={request-param:actor}&mode=dvd&type=lite&p
age=1&f=xml" />


  

When I request my page with
http://localhost:/Amazon/doSearch.html?actor=johnny+depp I don't get any
results back from Amazon. When I replace "{request-param:actor}" in my
sitemap with "johnny%20depp" I get a bunch of results back.

Any hints on why my parameters aren't being passed along? I'm on a pretty
recent CVS checkout of Cocoon.

Thanks,

Jeff



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



Complex Cocoon setup: partial problem solved

2003-09-11 Thread Deepak Mehta
Hi,

See my older email for reference on the setup: MacOSX 10.2.6, JDK 
1.4.1, JOnAS 3.2.2, Tomcat 4.1.27 and Cocoon 2.1.1...

Solved a classloader problem by using the Paranoid option in web.xml 
(read the fucking manuals or textfiles!)... Peoples this might solve 
some problems for other people too... try it!

The nice thing is you don't even need to move the x*.jar files...

Now the nagging question is: 'What are the downsides of this approach?'

Now that I have the Cocoon 2.1.1 working my other question is:

For the old app I used 2.0.4 and these two actions:



But they do not work anymore in 2.1.1... what is the easiest way to 
upgrade to the 2.1.1 authentication framework... is there a suggested 
migration path? Maybe write an XSLT which tranforms old parameter files 
to new parameter formats... hint hint!

Regards
Dp
--
Deepak 'Dp' Mehta Zonnebloem Europa bvba 

E-mail: [EMAIL PROTECTED]
Tel: +32-475-612620

PGP Fingerprint: 837E B8E6 6AF4 6675 2730  0848 7731 09F5 3445 00A5

Money isn't everything, but no money is nothing at all! (S. Rushdie)

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


RE: i18n trouble with nested elements in catalog messages

2003-09-11 Thread Bruno Dumon
On Wed, 2003-09-10 at 20:28, Olivier Lange wrote:
> > Is that normal SAX behavior - and we should replace the null value with an
> 
> Oh! I should have read the doc. From the Javadocs for the org.w3c.dom.Node
> interface:
> http://java.sun.com/j2se/1.4.1/docs/api/org/w3c/dom/Node.html#getNamespaceUR
> I()
> 
> "
> public String getNamespaceURI()
> The namespace URI of this node, or null if it is unspecified.
> "
> 
> Now, should 'MirrorRecord.nodeToEvents()' handle the 'node.getNamespaceURI()
> == null' case? Is it correct to replace null with an empty string?

yes that's correct. DOM and SAX have different conventions to represent
empty namespaces, so it's necessary to translate between them.

This should be done both for elements and attributes.

While the changes you've done up to know are certainly improvements over
the previous situation, there are still some problems. For example, if
the namespace prefix you use in the translation doesn't exist in the
document in which it's embedded, or the prefix is bound to another
namespace, and then you serialize the document to XML, you will get
incorrect XML because of missing or incorrect namespace declarations.
There's a DOMStreamer class in Cocoon which takes care of all these and
other issues, but integrating that into the I18nTransformer would be
more then a one line change.

In the meantime, if you could make a patch out of all the changes you've
done and submit that to bugzilla, it'll be in the next version of
Cocoon.

-- 
Bruno Dumon http://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
[EMAIL PROTECTED]  [EMAIL PROTECTED]


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



directory listing

2003-09-11 Thread Mustafa Yalniz
Hi,

We have a cocoon application and the URL is 
http://localhost:8080/cocoon/application and with this url we can see our 
application. But whenever we try to browse 
http://localhost:8080/cocoon/application/  we see the directory listing 
application. The last slash "/" at the end shows us the directory listing. 
Is there a way to avoid this directory listing with slash at the end.

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


RE: wsproxy and request parameters

2003-09-11 Thread Jeff Ramsdale
I discovered that changing my search from "johnny depp" to "depp" returns a
list of results. The problem, then, would seem to be the encoding of spaces
in my request parameters. When I submit my search form it converts the space
to a "+" in my browser. Examining the logs I see that they show " ", not "+"
on my failed searches. As mentioned before, in my sitemap if I change
"{request-param:actor}" to "johnny%20depp" I also get a list of results. So,
how do I ensure that my web service request is being sent with "%20" instead
of " " or "+"?

Thanks,

Jeff

> -Original Message-
> From: Jeff Ramsdale [mailto:[EMAIL PROTECTED]
> Sent: Thursday, September 11, 2003 12:45 AM
> To: [EMAIL PROTECTED]
> Subject: wsproxy and request parameters
>
>
> I'm playing with the Amazon.com web service toolkit and Cocoon.
>
> Here's my sitemap snippete:
>
>   
>  src="http://xml.amazon.com/onca/xml3?t=webservices-20&dev-t=[my dev
> code]&ActorSearch={request-param:actor}&mode=dvd&type=
> lite&p
> age=1&f=xml" />
> 
> 
>   
>
> When I request my page with
> http://localhost:/Amazon/doSearch.html?actor=johnny+depp I
> don't get any
> results back from Amazon. When I replace "{request-param:actor}" in my
> sitemap with "johnny%20depp" I get a bunch of results back.
>
> Any hints on why my parameters aren't being passed along? I'm on a pretty
> recent CVS checkout of Cocoon.
>
> Thanks,
>
> Jeff
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



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



Re: directory listing

2003-09-11 Thread Joerg Heinicke
I wonder if this is pure Cocoon behaviour. Don't you have an Apache in front 
of the servlet container? What's your servlet container?

Joerg

Mustafa Yalniz wrote:
Hi,

We have a cocoon application and the URL is 
http://localhost:8080/cocoon/application and with this url we can see 
our application. But whenever we try to browse 
http://localhost:8080/cocoon/application/  we see the directory listing 
application. The last slash "/" at the end shows us the directory 
listing. Is there a way to avoid this directory listing with slash at 
the end.

Thanks,
Mustafa
--
System Development
VIRBUS AG
Fon  +49(0)341-979-7419
Fax  +49(0)341-979-7409
[EMAIL PROTECTED]
www.virbus.de
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: directory listing

2003-09-11 Thread Mustafa Yalniz
It is the usual configuration. Apache Tomcat and Cocoon.
Mustafa
At 12:57 11.09.2003 +0200, you wrote:
I wonder if this is pure Cocoon behaviour. Don't you have an Apache in 
front of the servlet container? What's your servlet container?

Joerg

Mustafa Yalniz wrote:
Hi,
We have a cocoon application and the URL is 
http://localhost:8080/cocoon/application and with this url we can see our 
application. But whenever we try to browse 
http://localhost:8080/cocoon/application/  we see the directory listing 
application. The last slash "/" at the end shows us the directory 
listing. Is there a way to avoid this directory listing with slash at the end.
Thanks,
Mustafa
--
System Development
VIRBUS AG
Fon  +49(0)341-979-7419
Fax  +49(0)341-979-7409
[EMAIL PROTECTED]
www.virbus.de
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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


[Fwd: form validation]

2003-09-11 Thread Peter Choe


i want to validate a form using form validation.  i can the validation 
to work if it checks to see if each field enter matches the criteria, 
but i would like a validation that checks a conditional.

for example:

if a person doesn't check one check box, i want to check if a text box 
has a certain number of characters

else if the check box is selected, the number of characters in the text 
box doesn't matter.

is there a way to do this through cocoon form validation?

i am using cocoon 2.0 for now.

Peter





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


form validation

2003-09-11 Thread Peter Choe
i want to validate a form using form validation.  i can the validation 
to work if it checks to see if each field enter matches the criteria, 
but i would like a validation that checks a conditional.

for example:

if a person doesn't check one check box, i want to check if a text box 
has a certain number of characters

else if the check box is selected, the number of characters in the text 
box doesn't matter.

is there a way to do this through cocoon form validation?

i am using cocoon 2.0 for now.

Peter



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


Re: [Fwd: form validation]

2003-09-11 Thread Nuno Miguel Borges Leong
Hey Peter,

We had a similar problem with form-validation. Our form had two textboxes, and 
we wanted to submit only if at least one textbox was filled. There is no native 
form validator action to perform this validation so we decided to implement it 
ourselves.

Basically, you'll need to browse through the form-validator logicsheet and the 
action classes associated:

(these path's are based of the cocoon source)
src/java/org/apache/cocoon/acting/ValidatorActionResult.java
src/java/org/apache/cocoon/acting/ValidatorActionHelper.java
src/java/org/apache/cocoon/acting/AbstractValidatorAction.java
src/java/org/apache/cocoon/acting/FormValidatorAction.java (not sure if changes 
are necessary on this one)

src/java/org/apache/cocoon/components/language/markup/xsp/XSPFormValidatorHelper.
java

src/java/org/apache/cocoon/components/language/markup/xsp/java/form-validator.
xsl

We just upgraded to cocoon2.1, and i'm going to re-implement the changes.
If you want more details contact me, and i'll send you the sources.

Regards
-- 
Nuno Leong
Práxia SI


Quoting Peter Choe <[EMAIL PROTECTED]>:

> 
> 
> i want to validate a form using form validation.  i can the validation 
> to work if it checks to see if each field enter matches the criteria, 
> but i would like a validation that checks a conditional.
> 
> for example:
> 
> if a person doesn't check one check box, i want to check if a text box 
> has a certain number of characters
> 
> else if the check box is selected, the number of characters in the text 
> box doesn't matter.
> 
> is there a way to do this through cocoon form validation?
> 
> i am using cocoon 2.0 for now.
> 
> Peter
> 
> 
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

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



Re: directory listing

2003-09-11 Thread Mustafa Yalniz
Hi,

I tried to use mod_rewrite and my httpd.conf configuration is as below.


   RewriteEngine on
   RewriteLogLevel 9
   RewriteLog C:\temp\MOD_REWRITE.LOG


   RewriteRule ^/starportal/$ /starportal

But seems something is wrong and it does not work properly. Still lists 
directory when there is a slash at the end.

http://localhost:8080/cocoon/starportal/ should not display directory 
listing and one possible solution is to redirect it to 
http://localhost:8080/cocoon/starportal

Any help would be greatly appreciated.

Thank you and regards,
Mustafa
At 13:18 11.09.2003 +0200, you wrote:
It is the usual configuration. Apache Tomcat and Cocoon.
Mustafa
At 12:57 11.09.2003 +0200, you wrote:
I wonder if this is pure Cocoon behaviour. Don't you have an Apache in 
front of the servlet container? What's your servlet container?

Joerg

Mustafa Yalniz wrote:
Hi,
We have a cocoon application and the URL is 
http://localhost:8080/cocoon/application and with this url we can see 
our application. But whenever we try to browse 
http://localhost:8080/cocoon/application/  we see the directory listing 
application. The last slash "/" at the end shows us the directory 
listing. Is there a way to avoid this directory listing with slash at the end.
Thanks,
Mustafa
--
System Development
VIRBUS AG
Fon  +49(0)341-979-7419
Fax  +49(0)341-979-7409
[EMAIL PROTECTED]
www.virbus.de
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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


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


Re: directory listing

2003-09-11 Thread Mustafa Yalniz
Hi,

I tried to use mod_rewrite and my httpd.conf configuration is as below.


   RewriteEngine on
   RewriteLogLevel 9
   RewriteLog C:\temp\MOD_REWRITE.LOG


   RewriteRule ^/starportal/$ /starportal

But seems something is wrong and it does not work properly. Still lists 
directory when there is a slash at the end.

http://localhost:8080/cocoon/starportal/ should not display directory 
listing and one possible solution is to redirect it to 
http://localhost:8080/cocoon/starportal

Any help would be greatly appreciated.

Thank you and regards,
Mustafa
At 12:57 11.09.2003 +0200, you wrote:
I wonder if this is pure Cocoon behaviour. Don't you have an Apache in 
front of the servlet container? What's your servlet container?
It is Tomcat.

Joerg

Mustafa Yalniz wrote:
Hi,
We have a cocoon application and the URL is 
http://localhost:8080/cocoon/application and with this url we can see our 
application. But whenever we try to browse 
http://localhost:8080/cocoon/application/  we see the directory listing 
application. The last slash "/" at the end shows us the directory 
listing. Is there a way to avoid this directory listing with slash at the end.
Thanks,
Mustafa
--
System Development
VIRBUS AG
Fon  +49(0)341-979-7419
Fax  +49(0)341-979-7409
[EMAIL PROTECTED]
www.virbus.de
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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


RE: directory listing

2003-09-11 Thread Reinhard Poetz
Do you have the problem if you call Tomcat directly too?

Reinhard

> -Original Message-
> From: Mustafa Yalniz [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, September 11, 2003 4:44 PM
> To: [EMAIL PROTECTED]
> Subject: Re: directory listing
> 
> 
> 
> Hi,
> 
> I tried to use mod_rewrite and my httpd.conf configuration is 
> as below.
> 
> 
> RewriteEngine on
> RewriteLogLevel 9
> RewriteLog C:\temp\MOD_REWRITE.LOG
> 
> 
> 
> RewriteRule ^/starportal/$ /starportal
> 
> 
> But seems something is wrong and it does not work properly. 
> Still lists 
> directory when there is a slash at the end.
> 
> http://localhost:8080/cocoon/starportal/ should not display directory 
> listing and one possible solution is to redirect it to 
> http://localhost:8080/cocoon/starportal
> 
> Any help would be greatly appreciated.
> 
> Thank you and regards,
> Mustafa
> 
> 
> At 12:57 11.09.2003 +0200, you wrote:
> >I wonder if this is pure Cocoon behaviour. Don't you have an 
> Apache in
> >front of the servlet container? What's your servlet container?
> 
> It is Tomcat.
> 
> >Joerg
> >
> >Mustafa Yalniz wrote:
> >>Hi,
> >>We have a cocoon application and the URL is
> >>http://localhost:8080/cocoon/application and with this url 
> we can see our 
> >>application. But whenever we try to browse 
> >>http://localhost:8080/cocoon/application/  we see the 
> directory listing 
> >>application. The last slash "/" at the end shows us the directory 
> >>listing. Is there a way to avoid this directory listing 
> with slash at the end.
> >>Thanks,
> >>Mustafa
> >
> >--
> >System Development
> >VIRBUS AG
> >Fon  +49(0)341-979-7419
> >Fax  +49(0)341-979-7409
> >[EMAIL PROTECTED]
> >www.virbus.de
> >
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


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



RE: directory listing

2003-09-11 Thread Mustafa Yalniz
If I call Tomcat directly I see Tomcat welcome page.
Best regards,
Mustafa
At 17:03 11.09.2003 +0200, you wrote:
Do you have the problem if you call Tomcat directly too?

Reinhard

> -Original Message-
> From: Mustafa Yalniz [mailto:[EMAIL PROTECTED]
> Sent: Thursday, September 11, 2003 4:44 PM
> To: [EMAIL PROTECTED]
> Subject: Re: directory listing
>
>
>
> Hi,
>
> I tried to use mod_rewrite and my httpd.conf configuration is
> as below.
>
> 
> RewriteEngine on
> RewriteLogLevel 9
> RewriteLog C:\temp\MOD_REWRITE.LOG
> 
>
> 
> RewriteRule ^/starportal/$ /starportal
> 
>
> But seems something is wrong and it does not work properly.
> Still lists
> directory when there is a slash at the end.
>
> http://localhost:8080/cocoon/starportal/ should not display directory
> listing and one possible solution is to redirect it to
> http://localhost:8080/cocoon/starportal
>
> Any help would be greatly appreciated.
>
> Thank you and regards,
> Mustafa
>
>
> At 12:57 11.09.2003 +0200, you wrote:
> >I wonder if this is pure Cocoon behaviour. Don't you have an
> Apache in
> >front of the servlet container? What's your servlet container?
>
> It is Tomcat.
>
> >Joerg
> >
> >Mustafa Yalniz wrote:
> >>Hi,
> >>We have a cocoon application and the URL is
> >>http://localhost:8080/cocoon/application and with this url
> we can see our
> >>application. But whenever we try to browse
> >>http://localhost:8080/cocoon/application/  we see the
> directory listing
> >>application. The last slash "/" at the end shows us the directory
> >>listing. Is there a way to avoid this directory listing
> with slash at the end.
> >>Thanks,
> >>Mustafa
> >
> >--
> >System Development
> >VIRBUS AG
> >Fon  +49(0)341-979-7419
> >Fax  +49(0)341-979-7409
> >[EMAIL PROTECTED]
> >www.virbus.de
> >
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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


[Fwd: form validation]

2003-09-11 Thread Peter Choe


i want to validate a form using form validation.  i can the validation 
to work if it checks to see if each field enter matches the criteria, 
but i would like a validation that checks a conditional.

for example:

if a person doesn't check one check box, i want to check if a text box 
has a certain number of characters

else if the check box is selected, the number of characters in the text 
box doesn't matter.

is there a way to do this through cocoon form validation?

i am using cocoon 2.0 for now.

Peter





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


Problems building apache cocoon

2003-09-11 Thread Hans Andersen
Hi,

I can't build my apache cocoon. When I try to run build.bat I get this 
message:
Using java from c:\j2sdk1.4.2
Syntax error
OFF

I have set the JAVA_HOME environment variable. I have created the 
%JAVA_HOME%\jre\lib\endorsed directory and the %TOMCAT_HOME\common\endorsed. 
I have copied the xercesXXX.jar, xalan-XXX.jar, and the xml-apis.jar from 
.\lib\endorsed\ into these directories.
I then try to run the build.bat file and I get the message above.
I am using Windows 98 and cocoon 2.1.1.

Please help.

Thanks and Regards
Hans Fladsrud
_
It's fast, it's easy and it's free. Get MSN Messenger today! 
http://www.msn.co.uk/messenger

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


[Help] Downloading file into local Disk

2003-09-11 Thread Lionel Crine
Hi,

I'd like my browser web not to display the xml document but to open a 
download popup.

I hae created a serializer with a mime-type set to binary/octet-stream, but 
when I try :

  
  


the browser display the document.

Else if I try to write  instead, the download 
popup comes up!!!

Any idea ?

Thanks
Lionel


Lionel CRINE
Société : 4DConcept
22 rue Etienne de Jouy 78353 JOUY EN JOSAS
Tel : 01.34.58.70.70 Fax : 01.39.58.70.70
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: [Help] Downloading file into local Disk

2003-09-11 Thread Nicolas Toper
you need to change the Mime type to application/x-download or for NS
application/octet-stream (you need to check about the exact Mime type).

I don't know how to change the header with Cocoon but I guess someone can
help :=)

> -Message d'origine-
> De : Lionel Crine [mailto:[EMAIL PROTECTED]
> Envoyé : jeudi 11 septembre 2003 18:05
> À : [EMAIL PROTECTED]
> Objet : [Help] Downloading file into local Disk
>
>
> Hi,
>
> I'd like my browser web not to display the xml document but to open a
> download popup.
>
> I hae created a serializer with a mime-type set to
> binary/octet-stream, but
> when I try :
> 
>
>
> 
>
>
> the browser display the document.
>
> Else if I try to write  instead, the download
> popup comes up!!!
>
> Any idea ?
>
> Thanks
> Lionel
>
>
>
> Lionel CRINE
> Société : 4DConcept
> 22 rue Etienne de Jouy 78353 JOUY EN JOSAS
> Tel : 01.34.58.70.70 Fax : 01.39.58.70.70
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


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



Re: [Help] Downloading file into local Disk

2003-09-11 Thread Stephan Niedermeier
Hello Lionel,

it seems to me that your browser looks at first for the suffix of the
recived document and then for the mime-type. Do you use IE? In my opinion,
the only way to solve this problem is to zip the xml file before sending or
to change the config of your browser, if possible.

Regards
Stephan

- Original Message - 
From: "Lionel Crine" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, September 11, 2003 6:05 PM
Subject: [Help] Downloading file into local Disk


Hi,

I'd like my browser web not to display the xml document but to open a
download popup.

I hae created a serializer with a mime-type set to binary/octet-stream, but
when I try :

   
   



the browser display the document.

Else if I try to write  instead, the download
popup comes up!!!

Any idea ?

Thanks
Lionel



Lionel CRINE
Société : 4DConcept
22 rue Etienne de Jouy 78353 JOUY EN JOSAS
Tel : 01.34.58.70.70 Fax : 01.39.58.70.70


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


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



Form validation multiple rows

2003-09-11 Thread John Williams
Is it possible to validate a number of input fields having the same name and
get back the error linked to the field causing the problem?

I am using 2.0.4 and find that FormValidatorAction will act on a multivalued
field but it only returns a single value for the field.

For example I have a form used to submit a cyclist together with dates and
times of previous races. Say a cyclist has entered in three races previously
and I want to test the date and time values. The following is in the request
as submitted if  he has left the first date and second time out:
cyclist -> joe bloggs
date -> ,22/03/03,22/06/03 (note value starts with comma)
time -> 1h15,,1h25 (note pair of commas)

I want to be able to indicate that the first date and second time have not
been entered - instead of a just showing a problem with date and time as a
whole.

Is there existing functionality to deal with this?

John Williams



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



Re: wsproxy and request parameters

2003-09-11 Thread Tony Collen
Jeff Ramsdale wrote:
I discovered that changing my search from "johnny depp" to "depp" returns a
list of results. The problem, then, would seem to be the encoding of spaces
in my request parameters. When I submit my search form it converts the space
to a "+" in my browser. Examining the logs I see that they show " ", not "+"
on my failed searches. As mentioned before, in my sitemap if I change
"{request-param:actor}" to "johnny%20depp" I also get a list of results. So,
how do I ensure that my web service request is being sent with "%20" instead
of " " or "+"?
Jeff,

I've noticed this too, a while ago it is a little frustrating not being able to have it change 
the + to a %20... perhaps this type of encoding behavior needs to be added to the wsproxy.

Anybody else have thoughts?  What should the proper encoding of this be?

Tony

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


Re: wsproxy and request parameters

2003-09-11 Thread Tony Collen
Jeff Ramsdale wrote:
I discovered that changing my search from "johnny depp" to "depp" returns a
list of results. The problem, then, would seem to be the encoding of spaces
in my request parameters. When I submit my search form it converts the space
to a "+" in my browser. Examining the logs I see that they show " ", not "+"
on my failed searches. As mentioned before, in my sitemap if I change
"{request-param:actor}" to "johnny%20depp" I also get a list of results. So,
how do I ensure that my web service request is being sent with "%20" instead
of " " or "+"?
Jeff,

I've noticed this too, a while ago it is a little frustrating not being able to have it change 
the + to a %20... perhaps this type of encoding behavior needs to be added to the wsproxy.

Anybody else have thoughts?  What should the proper encoding of this be?

Tony

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


Update a pair of tables having a one-to-many cardinality in a transaction - modular database actions

2003-09-11 Thread John Williams



Say I have a pair of tables - ORDER_HEADER (who 
placed it, delivery date, etc) and ORDER_LINE per item (quantity, price, 
etc) - and I want to update the both based on changes submitted by a user. These 
changes could include:
 
update to ORDER_HEADER, eg new date
deletion of some ORDER_LINE rows - items not 
available
addition of some ORDER_LINE rows - items newly 
required
update to some existing ORDER_LINE rows 
- new prices
 
Looking at the functionality available in Modular 
Database Actions I notice that the add, update and delete must be called 
separately and thus cannot be done as a single transaction (the commit is 
embedded within each action type).
 
Has anyone got around this?
 
John Williams


RE: wsproxy and request parameters

2003-09-11 Thread Jeff Ramsdale
> > So,
> > how do I ensure that my web service request is being sent with "%20"
instead
> > of " " or "+"?
> >
> > Jeff,
>
> I've noticed this too, a while ago it is a little frustrating
> not being able to have it change
> the + to a %20... perhaps this type of encoding behavior needs to
> be added to the wsproxy.

It hadn't occured to me that this was a problem with wsproxy. I just thought
I needed to do something to convert the format. But then I realized that I
had to manually change my all my "&"s to "&"s. Which format should the
user be expected to use for the src attribute of the generator? It seems to
me the more human-readable form makes the most sense, with encoding
happening in the wsproxy.

> Anybody else have thoughts?  What should the proper encoding of this be?
>
> Tony

Jeff



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



Re: Problems building apache cocoon

2003-09-11 Thread Antonio Gallardo
Hans Andersen dijo:
> Hi,
>
> I can't build my apache cocoon. When I try to run build.bat I get this
> message:
> Using java from c:\j2sdk1.4.2
> Syntax error
> OFF
>
> I have set the JAVA_HOME environment variable. I have created the
> %JAVA_HOME%\jre\lib\endorsed directory and the
> %TOMCAT_HOME\common\endorsed.  I have copied the xercesXXX.jar,
> xalan-XXX.jar, and the xml-apis.jar from  .\lib\endorsed\ into these
> directories.
> I then try to run the build.bat file and I get the message above.
> I am using Windows 98 and cocoon 2.1.1.

Hi and Welcome to Cocoon!

please check this:
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22707

at the end of the additional comments you will find info about how other
users solved this. Maybe it helps you.

Best Regards,

Antonio Gallardo.




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



File upload with flow (Wiki examples)

2003-09-11 Thread Stephen Ramsay

I've spent the last couple of weeks beating my head against the wall
trying to get file uploading to work in Cocoon 2.1.  I've read the
"File Uploads with Flow" howto on the Wiki (as well as the other
upload howtos, the docs, the update guide, and the list archives),
but I'm still confused about a few points.  Any help would be greatly
appreciated.

1.  The javascript example sets the following variable

var role = Packages.org.mystuff.UploadManager.ROLE;

and then passes it in like so:

var uploader = cocoon.componentManager.getComponent(role);

What is the ROLE attribute and how (or where) do I call it?  I
gather that I need to call some class that implements some kind of
component interface, but I can't figure out which one.

2.  It also says you can "Alternatively . . . write the following
Java code in your sitemap components."  What does it mean to write
Java code "in the sitemap components."  Does that mean use it as an
Action?  I tried to do that and couldn't get it to work, but the
language here makes me think I'm supposed to do something different.
I'd actually rather do this without javascript, but at this point,
I'll settle for anything that works.

3.  The Wiki howto shows you to how call a flow script from the
sitemap (and the Cocoon docs show you how to set up the scripting
environment for flows, and so forth), but I'm not sure what I'm
supposed to do in the sitemap if I want to do a file upload with an
action.  Most of the explanations out there seem deprecated.

I'm sorry if these questions seem really dense.   

Thanks,

Steve

-- 
Stephen Ramsay
Assistant Professor
Department of English
University of Georgia
email: [EMAIL PROTECTED]
web: http://cantor.english.uga.edu/
PGP Public Key ID: 0xA38D7B11

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



RE: [Help] Downloading file into local Disk

2003-09-11 Thread Tim Olson
changing the mime type of the download helps, but w3c says that it's up to
the user-agent whether to display the document or save it.  in other words,
you can't control this behavior 100%.

for example, if you send an unknown mime type to IE, then a save dialog will
appear the first time.  however, if the user hits the URL again, the file is
in IE's cache, and IE recognizes the extension on the file, then IE will
display it and not give a save dialog.


> -Original Message-
> From: Nicolas Toper [mailto:[EMAIL PROTECTED]
> Sent: Thursday, September 11, 2003 12:26 PM
> To: [EMAIL PROTECTED]
> Subject: RE: [Help] Downloading file into local Disk
> 
> 
> you need to change the Mime type to application/x-download or for NS
> application/octet-stream (you need to check about the exact 
> Mime type).
> 
> I don't know how to change the header with Cocoon but I guess 
> someone can
> help :=)
> 
> > -Message d'origine-
> > De : Lionel Crine [mailto:[EMAIL PROTECTED]
> > Envoyé : jeudi 11 septembre 2003 18:05
> > À : [EMAIL PROTECTED]
> > Objet : [Help] Downloading file into local Disk
> >
> >
> > Hi,
> >
> > I'd like my browser web not to display the xml document but 
> to open a
> > download popup.
> >
> > I hae created a serializer with a mime-type set to
> > binary/octet-stream, but
> > when I try :
> > 
> >
> >
> > 
> >
> >
> > the browser display the document.
> >
> > Else if I try to write  
> instead, the download
> > popup comes up!!!
> >
> > Any idea ?
> >
> > Thanks
> > Lionel
> >
> >
> >
> > Lionel CRINE
> > Société : 4DConcept
> > 22 rue Etienne de Jouy 78353 JOUY EN JOSAS
> > Tel : 01.34.58.70.70 Fax : 01.39.58.70.70
> >
> >
> > 
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

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



RE: Can't instantiate multiple nodesets on same stylesheet?

2003-09-11 Thread David Benoff
Hi all (and thanks for the reply, Tony), 
To restate the problem from my original post, I'm having trouble when I
invoke xalan:nodeset($myfragment) more than once on a stylesheet.
Whichever variable gets invoked first renders fine, but all other
nodesets are null.  One of the problem xsl's is below.  The variables
$resultlist and $teamuser are declared at the bottom.  I've tried
combining different variables and the behavior is always the same.  The
topmost nodeset gets rendered fine, the others are empty.  Note that
this behavior is only within Cocoon.  When I save Cocoon's XML output to
a file (which I've pasted below) and I invoke Xalan directly to render
the page, I don't have this problem.  I'm not getting any exceptions or
log warnings.  

Any hints anyone could offer would be most appreciated.  I've been stuck
on this for two days now and I'm stumped! 

Thanks, 
David Benoff 

 
http://www.w3.org/1999/XSL/Transform"; 
version="1.0" 
xmlns:exslt="http://exslt.org/common"; 
xmlns:xalan="http://xml.apache.org/xalan"; 
xmlns:i18n="http://apache.org/cocoon/i18n/2.1"; 
exclude-result-prefixes="xalan"> 
 
 
 

window.name="main"; 

function getUser() 
 { 
 
window.open('setupTeamUser.do?method=getTeamUserList&teamid=','','directories=0,menubar=0,too
lbar=0,width=300,height=300'); 
 } 

function getCategory() 
 { 
 
window.open('setupTeamCategory.do?method=getTeamCategoryList&teamid=
','','directories=0,menubar=0,too
lbar=0,width=300,height=300'); 
 } 
 
 
User list 
 
 
 
 
 
Manage Team 
 
 
 
 
 
Team name: 
 
 
 
 
 
 
  
 
 
 
 
 
 
 
 
 
 
 
Description: 
 
 
 
 
 
 
 
 
 
Minimum age: 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Maximum age: 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
  
 


 
 
 
 
  
 
 
User name 
 
 
 
Age 
 
 
 
Category 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

 
 
   
 
 
   
  

Re: File upload with flow (Wiki examples)

2003-09-11 Thread Geoff Howard
Stephen Ramsay wrote:
I've spent the last couple of weeks beating my head against the wall
trying to get file uploading to work in Cocoon 2.1.  I've read the
"File Uploads with Flow" howto on the Wiki (as well as the other
upload howtos, the docs, the update guide, and the list archives),
but I'm still confused about a few points.  Any help would be greatly
appreciated.
Yikes.  Hopefully most of this time is getting used to Cocoon internals,
not just uploads.  They're quite easy really.  Unfortunately, the
docs are as you've found still pretty poor.
1.  The javascript example sets the following variable

var role = Packages.org.mystuff.UploadManager.ROLE;

and then passes it in like so:

var uploader = cocoon.componentManager.getComponent(role);

What is the ROLE attribute and how (or where) do I call it?  I
gather that I need to call some class that implements some kind of
component interface, but I can't figure out which one.
The reality is that to just get this working, you wouldn't even need
to mess with a component lookup.  If you have an upload handler you've 
written you should just be able to get an instance of your class, call 
your methods passing in whatever you need from the flow to save your 
file elsewhere, or do whatever you want.  If you try this and get stuck, 
write back with what went wrong.  Actually, to just get this working 
quickly, you could reference java.io classes directly from flow and
probably implement this in a few lines of flowscript.

But,

Brief interlude on avalon components because you asked and it's great
knowledge for working with Cocoon beyond the surface level and can help 
make up for missing docs in places.


The ROLE is a standard Avalon construct.  If you haven't already,
you should read up on the wiki, in the cocoon docs, and possibly
at the avalon.apache.org site (see especially the "Developing with 
Avalon" paper).  At least glance over those things if not really read 
deeply.

The short answer to your question:
The base Component is very simple -- you implement 
org.apache.avalon.framework.Component (maybe not exact) where you define
some ROLE -- a string which by convention would be the fully qualified 
class name of whatever class or interface defines this component.  In 
the simplest case, you would have something like:

package org.mystuff

public class UploadManager implements 
org.apache.avalon.framework.Component {

  String ROLE = Generator.class.getName();

  // Whatever other classes you implement are up to you.

}

In order for ComponentManager to find this role, you'd need to define it
in cocoon.xconf with a  tag (you used to have to define the 
role in cocoon.roles first, but that's no longer necessary).  There 
should be some other components defined this way you can see for examples.


2.  It also says you can "Alternatively . . . write the following
Java code in your sitemap components."  What does it mean to write
Java code "in the sitemap components."  Does that mean use it as an
Action?  
Yes, but not limited to Actions.  You can use that section to modify the 
portions of the upload action wiki page and be up and running sooner.

> I tried to do that and couldn't get it to work, but the
language here makes me think I'm supposed to do something different.
I'd actually rather do this without javascript, but at this point,
I'll settle for anything that works.
Let us know exactly what you tried, and what went wrong.

3.  The Wiki howto shows you to how call a flow script from the
sitemap (and the Cocoon docs show you how to set up the scripting
environment for flows, and so forth), but I'm not sure what I'm
supposed to do in the sitemap if I want to do a file upload with an
action.  Most of the explanations out there seem deprecated.
The only things that have changed since the action related items were
written are:
- The FilePart, FilePartFile, and FilePartArray classes have moved 
packages and changed names to Part, PartOnDisk, and PartInMemory as
mentioned on the wiki.
- An alternative to actions exists now that flow is released.

Nothing else has changed.  Actions still work the same way and in this 
case may be easier to get up and running with since you're struggling 
under the learning curve right now.

I'm sorry if these questions seem really dense.   
The material is dense, not the questions.  Besides, UGA did my home team 
a favor with Champ Bailey, so I owe you one!

Geoff

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