Re: form encoding UTF-8 / ISO-8859-1

2003-01-16 Thread Murad Jura
Artur Bialecki wrote:

I looked at the javadoc for java.lang package (jdk1.3.1)
and java.nio.charset.Charset (jdk1.4.1) and it
looks like the UTF-8 is the correct name.

I have a feeling setting the container encoding to ISO-8859-1
is what fixed your problem.

Another word of caution is the java.net.URLEncoder class that
doesn't play nice with UTF-8 in pre 1.4 jdk version.

Artur...




-Original Message-
From: Murad Jura [mailto:[EMAIL PROTECTED]] 
Sent: January 16, 2003 6:55 AM
To: [EMAIL PROTECTED]
Subject: Re: form encoding UTF-8 / ISO-8859-1


Martin Koeppe wrote:

Hello,

I'm using a recent developer version of cocoon 2.1 (Jan 9 2003),
tomcat 4.1.12 on SuSE Linux 8.0 Kernel 2.4.20,
and I found a problem with parsing the request parameters from a GET
request:

The browser (both Mozilla and IE) sends them as UTF-8, but cocoon
interprets them as ISO-8859-1. The problem can be seen e.g. 

with form


validator: if you enter a non-ASCII7 character, and there 

is something not


correct for the form validator within ANOTHER field, you 

get the first


field back changed.

I have enabled "container-encoding" and "form-encoding" in 

web.xml, and


set both to "utf-8", but with no success (no change in behaviour).

1) Can someone help?


I looked at the source, too:
org.apache.cocoon.environment.http.HttpRequest

There are getCharacterEncoding() and setCharacterEncoding().
Whereas get...() is mapped to the servlet engine function,
set...() seems to be implemented within cocoon.

In my experiments a call to set...("UTF-8") directly before 

reading the


parameters within a flow script didn't work, either. (no change)
get...() always returned null.

2) Can someone explain the idea of the set...() function, 

in combination


with decode(), i.e. why that should work? Or: what should 

be done to get


it work?

3) Why doesn't get...() return the value that was set before with
set...(), i.e. why is the servlet value returned, whereas the cocoon
internal value seems to be used?


Thanks in advance

Martin Koeppe




-


Please check that your question  has not already been 

answered in the


FAQ before posting. 

 dex.html>


To 

unsubscribe, e-mail: 
<[EMAIL PROTECTED]>

For additional commands, e-mail:   

<[EMAIL PROTECTED]>

Hello Martin,

I want to inform you that I solved such problem by setting 
the web.xml's 
"container-encoding" parameter to ISO-8859-1 and the "form-encoding" 
parameter to "UTF8" (not "UTF-8" because "UTF8" is the 
internal Java's 
name of this encoding type, see Java Documentation).


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



Thank you Artur!

I have tested both UTF-8 and UTF8 and in all cases I have obtained 
successfull results. But I have to set "form-encoding" parameter to 
"UTF-8/UTF8" to get my russian data in the correct form.

Murad Jura.


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



French character in JSP (UTF-8 / ISO-8859-1)

2003-01-16 Thread CARLETTA ANGELO
--- Reçu de   INFETUDE.G145193 02/250.96.71  17-01-03 07.59

Bonjour,

I am a problem with charater encoding in Cocoon with character French
(éà..)
I have Tomcat 4.1.12, JDK 1.3 and Cocoon 2.0.3
My JSP is generate via VaGen of VisualAge

Without Cocoon, the application run correctely. I have in my JSP

The form and data entry are correct without cocoon

With cocoon, the form is correct but the data entry have not correct
Entry a data "René" and the résult of the send form is "René"

I have add in the Sitemap.xmap, but the result is same


  UTF-8



  UTF-8
  true
  1024




  

  

With ISO-8859-1 in JSP, the form and data entry are not correct.

Thank for your help
Angelo

 17-01-03 07.59  Envoyé à  
  -> [EMAIL PROTECTED]


**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.


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




sitemap matcher woes

2003-01-16 Thread Saqib . N . Ali
Hi All,

Currently my sitemap is setup like the following:


http://www.w3.org/2000/08/w3c-synd/home.rss"/>




So when I type the following line in my browser:
http://my.server.com:8080/cocoon/mount/test/w3c.rss

It gets me the content of the W3C RSS feed


However, I wanna to configure my sitemap such that, when I request:
http://my.server.com:8080/cocoon/mount/test/
http://www.w3.org/2000/08/w3c-synd/home.rss

It should work as well. So I tried to write the following:







But it doesn't work. Any ideas?

Theoratically it should work... right???

In Peace,
Saqib Ali



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




Flow questions

2003-01-16 Thread Miles Elam
With the hope of using WebDAV or XML POST to update XML items on the 
server, I've been looking at Flow.  If you just want to see my flow 
questions, feel free to skip the preamble.



The back end data store is a PostgreSQL database whose relevant table 
looks something like this.  It has been abbreviated for clarity.

CREATE TABLE "shows" (
 "id" serial NOT NULL,
 "category" character varying(96), -- Useful for searches by topic
 "topic" character varying(64) NOT NULL,
 "abstract" character varying(1024),
 "promo" character varying(1024),
 "content" text,
 "liveDate" timestamp(0) with time zone,
 Constraint "shows_pkey" Primary Key ("id")
);

The incoming XML is based upon simplified docbook and looks something 
like this:

http://geekspeak.org/2.0";>
 
   2003-01-20T18:30:00-08:00
   Small Web Dev Survival
   
 
 
 
   
   On the next Geek Speak: Jasper Larence, CEO of Words and 
Images of
 Santa Cruz, joins the Geeks for a discussion about the status of
 web development as a business.  [The quick growth of the Internet 
lead to
 an acute need for web development companies.  The crash saw the 
death of
 many of these new ventures.]  The survival of the web creation 
industry
 on GeekSpeak, Monday [tomorrow/tonight] at 6:30pm on Central Coast 
Public
 Radio, KUSP.
   
 Jasper Larence, CEO of
   http://www.wordsandimages.com";>Words &
   Images of Santa Cruz, joins the Geeks for a
   discussion about the status of web development as a business.  The
   quick growth of the Internet lead to a large need for web 
development
   companies.  The crash saw the death of many of these new 
ventures, but
   some companies like Words & Images are still around.  Learn
   why.
   
 
 
   What is web development?
   Blah blah blah blah blah...
 


At first, I thought to convert the XML into XSP/ESQL.  That turned out 
to be a mess to the third power: a completely unmaintainable mess of 
markup and Java code.  I wouldn't expect anyone to happily fix any of my 
bugs in that rats nest nor would I expect to happily fix them myself six 
months down the road.

The next thought was Actions, but that was just keeping the code 
relatively out of sight.  It seemed fairly clumsy for any non-trivial 
amount (more than 100 lines) of logic and made the sitemap kinda crufty 
as well.





Next came Flow.  Although I didn't have multiple pages to work with as 
is the case with a wizard, it seemed to make a lot of sense in a 
predominantly procedural logic approach.  However, I ran into a few 
snags -- mostly related to lack of documentation (yes, I realize it's 
alpha and the API may be pulled out from under me...I'm prepared to deal 
with the search/replace/debug repercussions).  I'll keep my code snippet 
as short as possible.

function saveShow () {
 var showData;
 try {
   var factory  = 
javax.xml.parsers.DocumentBuilderFactory.newInstance();
   var builder  = factory.newDocumentBuilder();
   var showDocument = builder.parse( /* Somehow get the XML POST data 
in here */ );

   var showData = getShowData(showDocument);
 } catch ( e ) {
   sendPageAndContinue("showerror");
 }

 try {
   var dbConn = /* Somehow get the datasource by name */.getConnection();
   var dbStatement = dbConn.createStatement();
   // ...snip a whole bunch of extraneous JDBC logic...
 } catch (sqle) {
   sendPageAndContinue("showerror");
 }
}

1) How do I get XML POST data into the function (eg. equivalent to 
StreamGenerator)?
2) How do I look up a Cocoon datasource by name in JavaScript/Flow?
3) BSF question: Do I always have to call "foo.getBar()" or will 
"foo.bar" work?
4) Am I doing something that will drive me into a brick wall, but I 
can't see it yet?  (Is this the correct approach to the problem?)

Thanks,

- Miles



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



Xscript!!!!!!

2003-01-16 Thread Hong Gia Dinh
Title: Xscript!!





Hi all


where can i find the document relating XScript??? and how to use it?


Thanks a lot
GD





xinclude performance issues,

2003-01-16 Thread icewind
Let me describe what I am doing:

I have a directory that contains .xml files. In my
sitemap, I have a pipeline that starts with a
DirectoryGenerator on this directory. I then have a
transformation that takes the directorygenerator's
output and puts some xi:include tags with xpointers to
some tags in the xml files I am interested in. I then
run the xinclude transformation and serialize to html.
This is exactly what is described in this email to the
list (i was involved in that original email):
http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=102617106411067&w=2

There is a link to this email in the Cocoon XSLT FAQ
question titled: "What's "wrong" with use of the
document() function in Cocoon?"

So, I'm using that method, and it works. The result is
that I get an html page with the tags I pulled out
with xinclude for each xml file. It works, but the
performance is pretty terrible. I have approximately
30 xml files in the said directory, and the size that
most of the files is around 30K. (there are a couple
that are around 200K) I am pulling out 4 tags with
xinclude. I have Cocoon version 2.0.3 and its running
with tomcat on a dual 1ghz processor server with 1gb
ram and raid disks. 

The time for the pipeline to execute is just under 14
seconds, which is too long. (i measured using a
stopwatch from the time I requested the page until the
time i could see it).

So, I have the usual questions:

1) If anyone else is using a similar setup, do you
have similar issues?

2) What can I do to improve performance?

Thanks for any suggestions.




 

__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.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]>




Automated spellchecking of XML files

2003-01-16 Thread Litrik De Roy
Does anybody know of a tool that allow XML files to be spellchecked
automatically?

If yes, does it integrate with Cocoon? With Ant?

Litrik De Roy
www.litrik.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: Problem with xsl parsing xhtml

2003-01-16 Thread Joerg Heinicke
Wrong answer, but correct solution. After I sent it, the default 
namespace problem came back to my mind. And of course [name()='div'] is 
correct. Because of this behaviour my comment of the 
no-real-namespace-awareness (the default namespace can set to everything 
in the input).

Then I was confused and had must test your expression, because I didn't 
see anything wrong. But both MSXML and Xalan complain about html:node(), 
which I changed "intuitively" to html:*, because you are only testing 
for elements. Now my question: did this html:node() really work on your 
system without any complaints? It's an error, not only a not-matching. 
So another correct, but long-winded solution would be to replace 
"html:node()" by "node()".

Regards,

Joerg

Joerg Heinicke wrote:
Hello Anna,

Anna Afonchenko wrote:


Thank you very much Joerg, this worked!!!
But now I have a more complex pattern, and it doesn't work again.
I want to have a match that will say this:
for each node, that has a child div node with class name test, copy to 
the
output only the content of the div.
So, for


Text inside div
   


the output should be
Text inside div

This is the template that I wrote:

match="html:node()[child::node()[name()='div'][@class='test']]">
   
 


name() returns the namespace-prefix plus the element's name, e.g. 
"html:div". In the above code [name()='div'] won't be true, so the 
template does not match. One solution is to change it to 
[name()="html:div"], a second one to [local-name()="div"], but both are 
not really namespace aware. In my eyes the best solution is to use 
[self::html:div].

But the match can simplified:


  


And if you want to remove  in general, I think a 
template


  


is the best solution.

Regards,

Joerg

This works (without html: namespace) if the input doesn't have xhtml 
doctype
and xmlns.
But when I put those, the output is not affected, i.e. the nodeset 
above is
printed out as is.
What am I doing wrong with namespaces this time?

Thank you very very much for help.
Anna.


- Original Message -
From: "Joerg Heinicke" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, January 16, 2003 7:18 PM
Subject: Re: Problem with xsl parsing xhtml


Hello Anna,

all your elements in the XML are in the default namespace, so their
complete name consists of the namespace-uri and the elment's name. If
you want to match such an element, you must declare the namespace in the
XSL. There is only one problem with default namespace: You can not
simply declare it in the XSL, the matching won't work. You *must* bind
it to a prefix. So changing your stylesheet to the following should
solve your problem:


xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
xmlns:html="http://www.w3.org/1999/xhtml";>


   
 
   






Regards,

Joerg

Anna Afonchenko wrote:

Hi all.
This is not really a Cocoon problem, but maybe you can help me with 
this.
I have the following XHTML page:

"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
http://www.w3.org/1999/xhtml";>

Page



   Some content



and I want to parse it and take out the link to external stylesheet.
So I wrote the following xsl:


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











Here is my pipeline:






This stylesheet should output the original page without link tag that
links to external stylesheet.
The problem is, it doesn't match, e.g. the output is exactly the
original input with the link tag left.

If I take out the xhtml declaration from the input file, e.g. delete the
doctype declaration and xmlns attribute from the html tag, everything
works fine.

Is there any prorblem in Cocoon/xsl while matching files with xhtml
declaration?

Can somebody explain this to me.

Sorry if this is a bit unrelated and thanks very much for help.

Anna



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




custom errorpage on static site

2003-01-16 Thread Robert Sösemann
Hello,

my question is, if there is a way to design and embedd a custom errorpage
into a cocoon site, EVEN if I later make the site static with the command
line interface.

Right now I use the sitemap tag "handle-errors" to achieve that.

Any ideas?

Rob


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

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




Re: Problem with xsl parsing xhtml

2003-01-16 Thread Joerg Heinicke
Hello Anna,

Anna Afonchenko wrote:

Thank you very much Joerg, this worked!!!
But now I have a more complex pattern, and it doesn't work again.
I want to have a match that will say this:
for each node, that has a child div node with class name test, copy to the
output only the content of the div.
So, for


Text inside div
   


the output should be
Text inside div

This is the template that I wrote:

   
 


name() returns the namespace-prefix plus the element's name, e.g. 
"html:div". In the above code [name()='div'] won't be true, so the 
template does not match. One solution is to change it to 
[name()="html:div"], a second one to [local-name()="div"], but both are 
not really namespace aware. In my eyes the best solution is to use 
[self::html:div].

But the match can simplified:


  


And if you want to remove  in general, I think a template


  


is the best solution.

Regards,

Joerg

This works (without html: namespace) if the input doesn't have xhtml doctype
and xmlns.
But when I put those, the output is not affected, i.e. the nodeset above is
printed out as is.
What am I doing wrong with namespaces this time?

Thank you very very much for help.
Anna.


- Original Message -
From: "Joerg Heinicke" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, January 16, 2003 7:18 PM
Subject: Re: Problem with xsl parsing xhtml


Hello Anna,

all your elements in the XML are in the default namespace, so their
complete name consists of the namespace-uri and the elment's name. If
you want to match such an element, you must declare the namespace in the
XSL. There is only one problem with default namespace: You can not
simply declare it in the XSL, the matching won't work. You *must* bind
it to a prefix. So changing your stylesheet to the following should
solve your problem:

http://www.w3.org/1999/XSL/Transform";
xmlns:html="http://www.w3.org/1999/xhtml";>


   
 
   






Regards,

Joerg

Anna Afonchenko wrote:


Hi all.
This is not really a Cocoon problem, but maybe you can help me with this.
I have the following XHTML page:
http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
http://www.w3.org/1999/xhtml";>

Page



   Some content



and I want to parse it and take out the link to external stylesheet.
So I wrote the following xsl:

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











Here is my pipeline:






This stylesheet should output the original page without link tag that
links to external stylesheet.
The problem is, it doesn't match, e.g. the output is exactly the
original input with the link tag left.

If I take out the xhtml declaration from the input file, e.g. delete the
doctype declaration and xmlns attribute from the html tag, everything
works fine.

Is there any prorblem in Cocoon/xsl while matching files with xhtml
declaration?

Can somebody explain this to me.

Sorry if this is a bit unrelated and thanks very much for help.

Anna



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

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




Re: Problem with xsl parsing xhtml

2003-01-16 Thread Anna Afonchenko
Thank you very much Joerg, this worked!!!
But now I have a more complex pattern, and it doesn't work again.
I want to have a match that will say this:
for each node, that has a child div node with class name test, copy to the
output only the content of the div.
So, for


Text inside div
   


the output should be
Text inside div

This is the template that I wrote:

   
 

This works (without html: namespace) if the input doesn't have xhtml doctype
and xmlns.
But when I put those, the output is not affected, i.e. the nodeset above is
printed out as is.
What am I doing wrong with namespaces this time?

Thank you very very much for help.
Anna.


- Original Message -
From: "Joerg Heinicke" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, January 16, 2003 7:18 PM
Subject: Re: Problem with xsl parsing xhtml


Hello Anna,

all your elements in the XML are in the default namespace, so their
complete name consists of the namespace-uri and the elment's name. If
you want to match such an element, you must declare the namespace in the
XSL. There is only one problem with default namespace: You can not
simply declare it in the XSL, the matching won't work. You *must* bind
it to a prefix. So changing your stylesheet to the following should
solve your problem:

http://www.w3.org/1999/XSL/Transform";
xmlns:html="http://www.w3.org/1999/xhtml";>


   
 
   






Regards,

Joerg

Anna Afonchenko wrote:
> Hi all.
> This is not really a Cocoon problem, but maybe you can help me with this.
> I have the following XHTML page:
>  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
> http://www.w3.org/1999/xhtml";>
> 
> Page
> 
> 
> 
> Some content
> 
> 
>
> and I want to parse it and take out the link to external stylesheet.
> So I wrote the following xsl:
> 
>  xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>
>
> 
> 
> 
> 
> 
>
> 
> 
> 
>
> Here is my pipeline:
> 
> 
> 
> 
> 
>
> This stylesheet should output the original page without link tag that
> links to external stylesheet.
> The problem is, it doesn't match, e.g. the output is exactly the
> original input with the link tag left.
>
> If I take out the xhtml declaration from the input file, e.g. delete the
> doctype declaration and xmlns attribute from the html tag, everything
> works fine.
>
> Is there any prorblem in Cocoon/xsl while matching files with xhtml
> declaration?
>
> Can somebody explain this to me.
>
> Sorry if this is a bit unrelated and thanks very much for help.
>
> Anna


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

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


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

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




Re: Problem with xsl parsing xhtml

2003-01-16 Thread Joerg Heinicke
Hello Anna,

all your elements in the XML are in the default namespace, so their 
complete name consists of the namespace-uri and the elment's name. If 
you want to match such an element, you must declare the namespace in the 
XSL. There is only one problem with default namespace: You can not 
simply declare it in the XSL, the matching won't work. You *must* bind 
it to a prefix. So changing your stylesheet to the following should 
solve your problem:

http://www.w3.org/1999/XSL/Transform"; 
xmlns:html="http://www.w3.org/1999/xhtml";>


  

  






Regards,

Joerg

Anna Afonchenko wrote:
Hi all.
This is not really a Cocoon problem, but maybe you can help me with this.
I have the following XHTML page:

"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
http://www.w3.org/1999/xhtml";>

Page



Some content


 
and I want to parse it and take out the link to external stylesheet.
So I wrote the following xsl:

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





 



 
Here is my pipeline:





 
This stylesheet should output the original page without link tag that 
links to external stylesheet.
The problem is, it doesn't match, e.g. the output is exactly the 
original input with the link tag left.
 
If I take out the xhtml declaration from the input file, e.g. delete the 
doctype declaration and xmlns attribute from the html tag, everything 
works fine.
 
Is there any prorblem in Cocoon/xsl while matching files with xhtml 
declaration?
 
Can somebody explain this to me.
 
Sorry if this is a bit unrelated and thanks very much for help.
 
Anna


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

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




Problem with xsl parsing xhtml

2003-01-16 Thread Anna Afonchenko



Hi all.
This is not really a Cocoon problem, but maybe 
you can help me with this.
I have the following XHTML 
page:

"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

>
Page>
/>
>
>
    Some 
content


 
and I want to parse it and take out the link to external 
stylesheet.
So I wrote the following 
xsl:


 

>
/>
>
>
 

>
xsl:stylesheet>
 
Here is my pipeline:




>
 
This stylesheet should output the original page without 
link tag that links to external stylesheet.
The problem is, it doesn't match, e.g. the output is 
exactly the original input with the link tag 
left.
 
If I take out the xhtml declaration from the input file, 
e.g. delete the doctype declaration and xmlns attribute from the html tag, 
everything works fine.
 
Is there any prorblem in Cocoon/xsl while matching files 
with xhtml declaration?
 
Can somebody explain this to 
me.
 
Sorry if this is a bit unrelated and thanks very much for 
help.
 
Anna


XMLDBGeberator

2003-01-16 Thread conrad
Hello

I'd like to ask you something ladies and gentelmen
I'm using Cocoon 2.0.3 on linux box 2.4.19 with Sun jdk 1.4

I'm developing small portal with Cocoon and I'v encountered a strage, for me at least, problem

this is my map:generators secion in sitemap


 
 
  org.apache.xindice.client.xmldb.DatabaseImpl
  xmldb:xnidice:///db/
 
 
	 	label="content">
  org.apache.xindice.client.xmldb.DatabaseImpl
  xmldb:xnidice:///db/
 


and here is part of map:pipelines section


 
  
  
 

 
  
  
  
 


CInclude file looks like this:
.
http://apache.org/cocoon/include/1.0"; >
 
 
 
 

.


Everything is working but there always is some BUT :-)

1) Sometimes Cocoon retreives only one or two dokuments from Xindice not all four and in such 
situations Xindice is produceing this :

DEBUG>
java.lang.NullPointerException
at org.apache.xindice.core.DocumentCache$CacheKey.equals(DocumentCache.java:171)
at java.util.WeakHashMap.eq(WeakHashMap.java:256)
at java.util.WeakHashMap.get(WeakHashMap.java:348)
at org.apache.xindice.core.DocumentCache.getDocument(DocumentCache.java:79)
at org.apache.xindice.core.Collection.getDocument(Collection.java:711)
at 
org.apache.xindice.core.query.XPathQueryResolver$ResultSet.prepareNextNode(XPathQueryResolver.java:1003)
at 
org.apache.xindice.core.query.XPathQueryResolver$ResultSet.getNextNode(XPathQueryResolver.java:1042)
at org.apache.xindice.client.corba.CollectionServant.queryWrapper(CollectionServant.java:385)
at 
org.apache.xindice.client.corba.CollectionServant.queryCollection(CollectionServant.java:425)
at org.apache.xindice.client.corba.db.CollectionPOA._invoke(CollectionPOA.java:332)
at org.openorb.adapter.poa.POA.dispatch(POA.java:975)
at org.openorb.net.AbstractServerRequest.dispatch(AbstractServerRequest.java:750)
at org.openorb.net.ServerManagerImpl.serve_request(ServerManagerImpl.java:1467)
at org.openorb.net.ServerManagerImpl.thread_pool_main(ServerManagerImpl.java:1410)
at org.openorb.net.ServerManagerImpl.access$200(ServerManagerImpl.java:77)
at org.openorb.net.ServerManagerImpl$PoolThread.run(ServerManagerImpl.java:1557)



2 ) Which generator am I using XMLDBGenerator or default FileGenerator ?
I've tried to add type attribute (type="xmldb" ) to the generator

  ->	

and Cocoon has produced errors

What am I doing wrong or where can I find some info?


Sorry for such a long post :-)

--
Best Regards
Conrad

[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: Redirect and unwanted SessionId

2003-01-16 Thread SAXESS - Hussayn Dabbous
hy;
just a stupid suggestions:

If the servletengine adds the sessionid "magically" to the
redirect URL, maybe there is also a configuration param, that
controls this behaviour of the servlet engine?

By the way, which servlet engine are you using?

regards, Hussayn


Carsten Ziegeler wrote:

Volker Schneider wrote:


Hi Carsten,

but if I set the "session" attribute to "false" in map:redirect-to, then I
would think that I can force cocoon to avoid adding the session
id this way.


No, setting this attribute to "true" means, that a new session is created
if not already available. Setting to "false" is the default and does not
touch the session, which means if a session is existent it's still there,
if not then no new session is created.



In my opinion this must be a bug.


As a pointed out, I *guess* (it's only a guess because I saw this several
times) it's a bug in the servlet engine.

However, as a workaround, it might be possible to first terminate the
existing session via an action and then do the redirect (if the flow
of the web application allows this).

Carsten

Carsten Ziegeler
Open Source Group, S&N AG


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



--
Dr. Hussayn Dabbous
SAXESS Software Design GmbH
Neuenhöfer Allee 125
50935 Köln
Telefon: +49-221-56011-0
Fax: +49-221-56011-20
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: form encoding UTF-8 / ISO-8859-1

2003-01-16 Thread Artur Bialecki
I looked at the javadoc for java.lang package (jdk1.3.1)
and java.nio.charset.Charset (jdk1.4.1) and it
looks like the UTF-8 is the correct name.

I have a feeling setting the container encoding to ISO-8859-1
is what fixed your problem.

Another word of caution is the java.net.URLEncoder class that
doesn't play nice with UTF-8 in pre 1.4 jdk version.

Artur...


> -Original Message-
> From: Murad Jura [mailto:[EMAIL PROTECTED]] 
> Sent: January 16, 2003 6:55 AM
> To: [EMAIL PROTECTED]
> Subject: Re: form encoding UTF-8 / ISO-8859-1
> 
> 
> Martin Koeppe wrote:
> > Hello,
> > 
> > I'm using a recent developer version of cocoon 2.1 (Jan 9 2003),
> > tomcat 4.1.12 on SuSE Linux 8.0 Kernel 2.4.20,
> > and I found a problem with parsing the request parameters from a GET
> > request:
> > 
> > The browser (both Mozilla and IE) sends them as UTF-8, but cocoon
> > interprets them as ISO-8859-1. The problem can be seen e.g. 
> with form
> > validator: if you enter a non-ASCII7 character, and there 
> is something not
> > correct for the form validator within ANOTHER field, you 
> get the first
> > field back changed.
> > 
> > I have enabled "container-encoding" and "form-encoding" in 
> web.xml, and
> > set both to "utf-8", but with no success (no change in behaviour).
> > 
> > 1) Can someone help?
> > 
> > 
> > I looked at the source, too:
> > org.apache.cocoon.environment.http.HttpRequest
> > 
> > There are getCharacterEncoding() and setCharacterEncoding().
> > Whereas get...() is mapped to the servlet engine function,
> > set...() seems to be implemented within cocoon.
> > 
> > In my experiments a call to set...("UTF-8") directly before 
> reading the
> > parameters within a flow script didn't work, either. (no change)
> > get...() always returned null.
> > 
> > 2) Can someone explain the idea of the set...() function, 
> in combination
> > with decode(), i.e. why that should work? Or: what should 
> be done to get
> > it work?
> > 
> > 3) Why doesn't get...() return the value that was set before with
> > set...(), i.e. why is the servlet value returned, whereas the cocoon
> > internal value seems to be used?
> > 
> > 
> > Thanks in advance
> > 
> > Martin Koeppe
> > 
> > 
> -
> > Please check that your question  has not already been 
> answered in the
> > FAQ before posting. 
>  dex.html>
> > 
> > To 
> unsubscribe, e-mail: 
> <[EMAIL PROTECTED]>
> > For additional commands, e-mail:   
> <[EMAIL PROTECTED]>
> > 
> 
> Hello Martin,
> 
> I want to inform you that I solved such problem by setting 
> the web.xml's 
> "container-encoding" parameter to ISO-8859-1 and the "form-encoding" 
> parameter to "UTF8" (not "UTF-8" because "UTF8" is the 
> internal Java's 
> name of this encoding type, see Java Documentation).
> 
> 
> -
> 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: [XMLForm] terminology question

2003-01-16 Thread Sylvain.Thevoz
OK, thank you very much.

I think it could be very useful to have something like your description in the XMLForm 
documentation for the newbie users like me. It just to start with a minimal knowledge.

>Hope this helps. Of course, the best way to learn how the things happen is
>to look at the source and try to implement something simple and so on.

You're right. This is what I'm trying to do.

Regards
Sylvain


-Message d'origine-
De: Konstantin Piroumian [mailto:[EMAIL PROTECTED]]
Date: jeudi, 16. janvier 2003 15:09
À: [EMAIL PROTECTED]
Objet: Re: [XMLForm] terminology question


Ok, I'll try to answer again.

>what do you fill with values?

The Form object which is a wrapper for the underlying data model object. It
can be either a JavaBean or a DOM object. And that Form is filled by values
using XPath expressions which are processed by JXPath
(http://jakarta.apache.org/commons/jxpath). The Form object is filled by
values when a request is received and processed by the XMLForms action
(don't remember the exact name, sorry).

>Where do you come from these values?

So, the values come from the request (Http servlet request) parameters,
which should have XPath name, e.g.: '/customer/firstname=John', etc.

As the XMLForm framework was inspired by Struts then you'll find more
detailed description of concepts at Struts' page:
http://jakarta.apache.org/struts

Hope this helps. Of course, the best way to learn how the things happen is
to look at the source and try to implement something simple and so on.

Konstantin


- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, January 16, 2003 16:07
Subject: RE: [XMLForm] terminology question


Hi,

Thank you but my question was about the meaning of the word in the context
of XMLForm rather than the definition of the word itself.

To say in another way:
what do you fill with values?
Where do you come from these values?


Regards
Sylvain

-Message d'origine-
De: Sylvain Wallez [mailto:[EMAIL PROTECTED]]
Date: jeudi, 16. janvier 2003 13:55
À: [EMAIL PROTECTED]
Objet: Re: [XMLForm] terminology question


[EMAIL PROTECTED] wrote:

>Hello,
>
>I'm looking through the XMLForm source code and API and there are many
comments that speak about "population".
>
>What does it mean exactly?
>

It comes from the verb "populate", which, in this context, means
something as "fill with values".

Check also http://dictionary.reference.com/search?q=populate

Sylvain (another one)

--
Sylvain Wallez  Anyware Technologies
http://www.apache.org/~sylvain   http://www.anyware-tech.com
{ XML, Java, Cocoon, OpenSource }*{ Training, Consulting, Projects }



-
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: Cocoon Portal - User Roles

2003-01-16 Thread Carsten Ziegeler
Hi,

try using the log transformer between your transformation step
with the login.xsl and the sql transformer and you will see,
if the correct xml is outputted by your stylesheet.
If this is correct, put the log transformer behind the sql
transformer and you will see what the sql transformer does.

Maybe this gives a clue.

Carsten

Carsten Ziegeler
Open Source Group, S&N AG


> -Original Message-
> From: Wolle [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 16, 2003 2:09 PM
> To: [EMAIL PROTECTED]
> Subject: RE: Cocoon Portal - User Roles
>
>
> Hi Guys,
>
> I tried all this. Maybe somebody can give some completing hints.
> I described all in the file email.txt
>
> Thank You
>
> Wolfgang
>
>
>
> *>>
> *Since the the "new role" function in the portal sample is mapped to
> * uri, it is using
> this sitemap
> *snippet right?
> *
> *
> *
> *
> *
> *
> *
> *
> *
> *
> *and the documentations says that
> *
> *The new-role resource creates a new role in the system. It gets the
> *parameters "type" with the value "role" and "role" with the new rolename.
> *
> *Where is the "type" and "role" parameter?
> *and why does it have to serialized in an xml type in the end?
> *<<
> *
> *You need to take a look at the file sunrise-newrole.xml. That
> file contains
> *most of the dirty work. The transformers session, cinclude and
> writesource
> *act on the information contained in there. Because
> sunrise-newrole.xml also
> *flows through the pipeline it is then formatted by the stylesheet and
> *returned to the browser. It is serialized to xml because it is being used
> *inside the portal (in this case).
> *
> *If you wanted to write this to a database you would need to change the
> *sunrise-newrole.xml and use the sqltransformer instead of cinclude and
> *write-source. In all this should take you around 5 minutes or
> less to adapt.
> *:-)
> *
> *So it really is quite simple really.
> *
> *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
> *Weblog:
> *  http://radio.weblogs.com/0103021/
> *=
> *
> *  -Original Message-
> *  From: Richard Reyes [mailto:[EMAIL PROTECTED]]
> *  Sent: Tuesday, November 12, 2002 12:53 PM
> *  To: cocoon-users
> *  Subject: RE: Cocoon Portal - User Roles
> *
> *
> *
> *
> *  Hi Matthew / Guys,
> *
> *  Just want to confirm some things
> *
> *  Since the the "new role" function in the portal sample is mapped to
> * uri, it is using
> this sitemap
> *snippet right?
> *
> *  
> *  
> *  
> *  
> *  
> *  
> *  
> *  
> *
> *  and the documentations says that
> *
> *  The new-role resource creates a new role in the system. It gets the
> *parameters "type" with the value "role" and "role" with the new rolename.
> *
> *  Where is the "type" and "role" parameter?
> *  and why does it have to serialized in an xml type in the end?
> *
> *  Also, for the sunrise-newrole resource, the only thing this
> pipeline does
> *is save a new role in the xml file ( sunrise-roles.xml )? whose
> responsible
> *for displaying the next page after saving the new role?
> *
> *  And since this sitemap snippet is called inside a map:pipeline internal
> *only clause I think it is being called by the portal generator or action.
> *
> *  If in case I'd used custom actions over this pipeline, How would I know
> *the parameters that
> *  have been passed and are being expected by the caller of this pipeline?
> *
> *  Thanks a lot
> *  Richard
> *- Original Message -
> *From: Richard Reyes
> *To: cocoon-users
> *Cc: Alex
> *Sent: Tuesday, November 12, 2002 7:18 PM
> *Subject: Re: Cocoon Portal - User Roles
> *
> *
> *Hi Matthew,
> *
> *Thanks for the reminder!
> *
> *
> *Hi,
> *
> *each function of the portal is mapped to a pipeline. So in order to
> *change the storage - all you have to do is to modify the
> pipeline to use say
> *the SQLGenerator etc.
> *
> *Read the documentation.
> *http://xml.apache.org/cocoon/developing/webapps/authentication.html
> *
> *It explains this in detail (see under User Administration).
> Then look at
> *the pipelines that are currently used to get a feel for how it
> works at the
> *moment.
> *
> *Matthew
> *
> *--
> *Open Source Group   Cocoon { Consulting, Training, Projects }
> *=

RE: Redirect and unwanted SessionId

2003-01-16 Thread Carsten Ziegeler

Volker Schneider wrote:
>
> Hi Carsten,
>
> but if I set the "session" attribute to "false" in map:redirect-to, then I
> would think that I can force cocoon to avoid adding the session
> id this way.
No, setting this attribute to "true" means, that a new session is created
if not already available. Setting to "false" is the default and does not
touch the session, which means if a session is existent it's still there,
if not then no new session is created.

> In my opinion this must be a bug.
As a pointed out, I *guess* (it's only a guess because I saw this several
times) it's a bug in the servlet engine.

However, as a workaround, it might be possible to first terminate the
existing session via an action and then do the redirect (if the flow
of the web application allows this).

Carsten

Carsten Ziegeler
Open Source Group, S&N AG


-
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

2003-01-16 Thread Geoff Howard
This would be much easier if you include what happens when it doesn't work.
Is there an error message?  If so, what does it say the problem is?  Does it
run but produce unexpected content? etc.

More below:

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 16, 2003 7:46 AM
> To: [EMAIL PROTECTED]
> Subject: RE:  - question
>
> OK. Still not running.
>
> web.xml:
> 
>   extra-classpath
>   WEB-INF/classes/fraud_management
>  

You don't need the extra-classpath in web.xml in this case, but I can't
imagine that being your problem.

>
> java-Class in ".../cocoon/Web-Inf/classes/fraud_managment":

OK, but make sure that's WEB-INF.  Shouldn't matter on windows though.

> package fraud_management;
> class execute_report {
>
>   public String get_fraud()
>   {
> String hello = "Servus";
> return hello;
>   }
> }
>
> xsp:
> 
>xmlns:xsp="http://apache.org/xsp";>
>
>   
>   fraud_management.execute_report
> 
>
>   
> 
>  execute_report er = new execute_report();
>  String hello = er.get_fraud();
>  

Get rid of this xsp:logic
> 

>="bla">hello

And this closing tag (obviously):
> 

>   
>
>   
> 
>

xsp:logic denotes a section of pure java logic (although some xsp tags are
appropriate
inside).

> I have a feeling that I don't get the entries in the web.xml
> >>
> WEB-INF/extra-classes1:/[YOU-ABSOLUTE-PATH-TO]/own.ja
> r
> Do I have to insert additionally the class name? e.g. for Windows systems
> WEB-INF/classes/fraud_managment;C:/Apache.../fraud_ma
> nagment/execute_report.class

No, any classes you place under WEB-INF/classes or jars in WEB-INF/lib are
available
to cocoon - after you restart cocoon.  If you've not restarted since adding
your classes
make sure to do so.

>
> Thanks
> Jonny
>
>
> --
> --
>
> This electronic message contains information from the mmo2 plc Group which
> may be
> privileged or confidential. The information is intended to be for the use
> of the
> individual(s) or entity named above. If you are not the intended recipient
> be aware
> that any disclosure, copying, distribution or use of the contents of this
> information
> is prohibited. If you have received this electronic message in error,
> please notify
> us by telephone or email (to the numbers or address above) immediately.
>
>
>
> |-+>
> | |   "Geoff Howard"   |
> | || |   eb.com>  |
> | ||
> | |   01/15/03 07:37 PM|
> | |   Please respond to|
> | |   cocoon-users |
> | ||
> |-+>
>
> >-
> -|
>   |
>|
>   |   To:   <[EMAIL PROTECTED]>
>|
>   |   cc:
>|
>   |   Subject:  RE:  - question
>|
>
> >-
> -|
>
>
>
>
> > -Original Message-
> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, January 15, 2003 11:45 AM
> > To: [EMAIL PROTECTED]
> > Subject:  - question
> >
> >
> > Hi,
> >
> > I want to include my own Java-Class in my XSP-Page
>
> 
>
> > 
> >  >   xmlns:xsp="http://apache.org/xsp";>
> >
> >   
> >
> > 
>
> correct.
>
> >
> >   
> >  
> > String hello = null;
> > hello = get_g();
> > 
> >
> >hello
> change the last line to:
>="bla">hello
>
> You don't state what "doesn't work" but if you mean the page returned only
> a
> literal attribute bla="hello" then this should be your only problem from
> what I can see.
>
>
> >
> >
> >
> >   
> > 
> >
> >
> > Where do I have to place my Java-Class. Under .../cocoon/Web-Inf/classes
> > (where I hava placed it right now!)?
>
> yes, that works - make sure that if your class is declared part of a
> package
> that you replicate the directory structure under WEB-INF/classes (many
> people seem to make that mistake)
>
> > How do I call methods, like my method get_g()?
>
> The same way you would from any java class (your usage above should work
> fine) since XSP generates and compiles a java file the first time
> your page
> is executed.  I would highly recommend going to take a look at it.  It's
> under your servlet container's work directo

Re: - question

2003-01-16 Thread Konstantin Piroumian
From: <[EMAIL PROTECTED]>

>
> OK. Still not running.
>
> web.xml:
> 
>   extra-classpath
>   WEB-INF/classes/fraud_management
>  

This is not required usually.

>
> java-Class in ".../cocoon/Web-Inf/classes/fraud_managment":

correct.

> package fraud_management;
> class execute_report {

Is your class 'public'?

>
>   public String get_fraud()
>   {
> String hello = "Servus";
> return hello;
>   }
> }
>
> xsp:
> 
>xmlns:xsp="http://apache.org/xsp";>
>
>   
>   fraud_management.execute_report
> 
>
>   
> 
>  execute_report er = new execute_report();
>  String hello = er.get_fraud();
>  
> 
>="bla">hello
> 
>   
>
>   
> 
>
> I have a feeling that I don't get the entries in the web.xml
> >>
>
WEB-INF/extra-classes1:/[YOU-ABSOLUTE-PATH-TO]/own.jar
> Do I have to insert additionally the class name? e.g. for Windows systems
>
WEB-INF/classes/fraud_managment;C:/Apache.../fraud_managment/ex
ecute_report.class

No, you should be able to access your classes if they are placed in
WEB-INF/classes as .class files or if they are placed in WEB-INF/lib as a
.jar archive.

Konstantin

>
> Thanks
> Jonny
>
>
> --
--
>
> This electronic message contains information from the mmo2 plc Group which
> may be
> privileged or confidential. The information is intended to be for the use
> of the
> individual(s) or entity named above. If you are not the intended recipient
> be aware
> that any disclosure, copying, distribution or use of the contents of this
> information
> is prohibited. If you have received this electronic message in error,
> please notify
> us by telephone or email (to the numbers or address above) immediately.
>
>
>
> |-+>
> | |   "Geoff Howard"   |
> | || |   eb.com>  |
> | ||
> | |   01/15/03 07:37 PM|
> | |   Please respond to|
> | |   cocoon-users |
> | ||
> |-+>
>
>---
---|
>   |
|
>   |   To:   <[EMAIL PROTECTED]>
|
>   |   cc:
|
>   |   Subject:  RE:  - question
|
>
>---
---|
>
>
>
>
> > -Original Message-
> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, January 15, 2003 11:45 AM
> > To: [EMAIL PROTECTED]
> > Subject:  - question
> >
> >
> > Hi,
> >
> > I want to include my own Java-Class in my XSP-Page
>
> 
>
> > 
> >  >   xmlns:xsp="http://apache.org/xsp";>
> >
> >   
> >
> > 
>
> correct.
>
> >
> >   
> >  
> > String hello = null;
> > hello = get_g();
> > 
> >
> >hello
> change the last line to:
>="bla">hello
>
> You don't state what "doesn't work" but if you mean the page returned only
> a
> literal attribute bla="hello" then this should be your only problem from
> what I can see.
>
>
> >
> >
> >
> >   
> > 
> >
> >
> > Where do I have to place my Java-Class. Under .../cocoon/Web-Inf/classes
> > (where I hava placed it right now!)?
>
> yes, that works - make sure that if your class is declared part of a
> package
> that you replicate the directory structure under WEB-INF/classes (many
> people seem to make that mistake)
>
> > How do I call methods, like my method get_g()?
>
> The same way you would from any java class (your usage above should work
> fine) since XSP generates and compiles a java file the first time your
page
> is executed.  I would highly recommend going to take a look at it.  It's
> under your servlet container's work directory - most likely
>
$TOMCAT_HOME/work/Standalone/localhost/cocoon/cocoon-files/org/apache/cocoon
>
> /www/jonny/filename_xsp.java - you may have to browse around for it if
I've
> made incorrect guesses.
>
>
> HTH,
> Geoff Howard
>
>
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. 
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
>
>
>
>
>
>
> -
> 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: Redirect and unwanted SessionId

2003-01-16 Thread Volker Schneider
Hi Carsten,

but if I set the "session" attribute to "false" in map:redirect-to, then I
would think that I can force cocoon to avoid adding the session id this way.
In my opinion this must be a bug.

Regards
- Volker -




-Original Message-
From: Carsten Ziegeler [mailto:[EMAIL PROTECTED]]
Sent: Donnerstag, 16. Januar 2003 14:16
To: [EMAIL PROTECTED]
Subject: RE: Redirect and unwanted SessionId




> -Original Message-
> From: Dr. Hans M. Rupp [mailto:[EMAIL PROTECTED]]
>
> Carsten Ziegeler wrote:If I understand you correct, you say that the
> sessionId is added
>
> > to MyBlaServiceRelativeURL and this is value provided by your action
> > "RedirectToMyBlaAction". So, I would guess that the problem is inside
> > your action. No?
>
> No, I log MyBlaServiceRelativeURL immediately before it is passed as a Map
> parameter. At this moment it is still without
> the sessionId.
>
Ok, when the redirect is execute, the encodeRedirectURI() method of the
HttpResponse is called. This method should only append the session id, if
it is a local redirect. However, there are servlet implementations that
always append the session id. Perhaps this is your case?

If you set the log level to debug, you should find something like
"Redirecting to YOUR_URI" and "Sending redirect to YOUR_URI".
The first message is your argument to the redirect and the second is the
version the servlet response created.

HTH
Carsten


-
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: [XMLForm] terminology question

2003-01-16 Thread Konstantin Piroumian
Ok, I'll try to answer again.

>what do you fill with values?

The Form object which is a wrapper for the underlying data model object. It
can be either a JavaBean or a DOM object. And that Form is filled by values
using XPath expressions which are processed by JXPath
(http://jakarta.apache.org/commons/jxpath). The Form object is filled by
values when a request is received and processed by the XMLForms action
(don't remember the exact name, sorry).

>Where do you come from these values?

So, the values come from the request (Http servlet request) parameters,
which should have XPath name, e.g.: '/customer/firstname=John', etc.

As the XMLForm framework was inspired by Struts then you'll find more
detailed description of concepts at Struts' page:
http://jakarta.apache.org/struts

Hope this helps. Of course, the best way to learn how the things happen is
to look at the source and try to implement something simple and so on.

Konstantin


- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, January 16, 2003 16:07
Subject: RE: [XMLForm] terminology question


Hi,

Thank you but my question was about the meaning of the word in the context
of XMLForm rather than the definition of the word itself.

To say in another way:
what do you fill with values?
Where do you come from these values?


Regards
Sylvain

-Message d'origine-
De: Sylvain Wallez [mailto:[EMAIL PROTECTED]]
Date: jeudi, 16. janvier 2003 13:55
À: [EMAIL PROTECTED]
Objet: Re: [XMLForm] terminology question


[EMAIL PROTECTED] wrote:

>Hello,
>
>I'm looking through the XMLForm source code and API and there are many
comments that speak about "population".
>
>What does it mean exactly?
>

It comes from the verb "populate", which, in this context, means
something as "fill with values".

Check also http://dictionary.reference.com/search?q=populate

Sylvain (another one)

--
Sylvain Wallez  Anyware Technologies
http://www.apache.org/~sylvain   http://www.anyware-tech.com
{ XML, Java, Cocoon, OpenSource }*{ Training, Consulting, Projects }



-
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: [XMLForm] terminology question

2003-01-16 Thread Sylvain.Thevoz
Thank you!

Sorry for my ignorance but does it mean that in XMLForm a population is proceeded each 
time you invoke the action?

Thank you
Sylvain


-Message d'origine-
De: Konstantin Piroumian [mailto:[EMAIL PROTECTED]]
Date: jeudi, 16. janvier 2003 14:11
À: [EMAIL PROTECTED]
Objet: Re: [XMLForm] terminology question


The "population" term comes from JavaBeans, Struts, etc. and basicaly it
means filling (populating) java bean properties with values from some other
sources, e.g. XML, map, another bean properties, servlet request, etc.

Konstantin

- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, January 16, 2003 15:51
Subject: [XMLForm] terminology question


Hello,

I'm looking through the XMLForm source code and API and there are many
comments that speak about "population".

What does it mean exactly?

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



-
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: Fragment Extractor Generator - I want to use a XSL !

2003-01-16 Thread Samuel Goldszmidt
Hi,

My particular problem is that when I don't put any stylesheet I'm able to
have a good serialization but when I put an xsl ( for example the "identity
xsl" which transform the xml into the same xml), there is no answer : cocoon
is not able to deliver a message, he keeps looking for the document
indefinitly.

( my identity xsl works good when I use a pipeline like :




but doesn't works when i try


 )

I don't know why

sam

- Original Message -
From: "Sylvain Wallez" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, January 16, 2003 2:05 PM
Subject: Re: Fragment Extractor Generator - I want to use a XSL !


> Samuel Goldszmidt wrote:
>
> >Hi,
> >
> >I would like to know if someone has ever been able to make a
transformation
> >with a xsl after the Fragment Extractor Generator
> >A transformation like this ( with a "A_STYLE_SHEET.xsl")
> >
> >
>
> What is your particular problem ?
>
> Sylvain
>
> --
> Sylvain Wallez  Anyware Technologies
> http://www.apache.org/~sylvain   http://www.anyware-tech.com
> { XML, Java, Cocoon, OpenSource }*{ Training, Consulting, Projects }
>
>
>
> -
> 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: Redirect and unwanted SessionId

2003-01-16 Thread Carsten Ziegeler


> -Original Message-
> From: Dr. Hans M. Rupp [mailto:[EMAIL PROTECTED]]
>
> Carsten Ziegeler wrote:If I understand you correct, you say that the
> sessionId is added
>
> > to MyBlaServiceRelativeURL and this is value provided by your action
> > "RedirectToMyBlaAction". So, I would guess that the problem is inside
> > your action. No?
>
> No, I log MyBlaServiceRelativeURL immediately before it is passed as a Map
> parameter. At this moment it is still without
> the sessionId.
>
Ok, when the redirect is execute, the encodeRedirectURI() method of the
HttpResponse is called. This method should only append the session id, if
it is a local redirect. However, there are servlet implementations that
always append the session id. Perhaps this is your case?

If you set the log level to debug, you should find something like
"Redirecting to YOUR_URI" and "Sending redirect to YOUR_URI".
The first message is your argument to the redirect and the second is the
version the servlet response created.

HTH
Carsten


-
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: [XMLForm] terminology question

2003-01-16 Thread Konstantin Piroumian
The "population" term comes from JavaBeans, Struts, etc. and basicaly it
means filling (populating) java bean properties with values from some other
sources, e.g. XML, map, another bean properties, servlet request, etc.

Konstantin

- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, January 16, 2003 15:51
Subject: [XMLForm] terminology question


Hello,

I'm looking through the XMLForm source code and API and there are many
comments that speak about "population".

What does it mean exactly?

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



-
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 Portal - User Roles

2003-01-16 Thread Wolle
Hi Guys,

I tried all this. Maybe somebody can give some completing hints.
I described all in the file email.txt

Thank You

Wolfgang



*>>
*Since the the "new role" function in the portal sample is mapped to
* uri, it is using this sitemap
*snippet right?
*
*
*
*
*
*
*
*
*
*
*and the documentations says that
*
*The new-role resource creates a new role in the system. It gets the
*parameters "type" with the value "role" and "role" with the new rolename.
*
*Where is the "type" and "role" parameter?
*and why does it have to serialized in an xml type in the end?
*<<
*
*You need to take a look at the file sunrise-newrole.xml. That file contains
*most of the dirty work. The transformers session, cinclude and writesource
*act on the information contained in there. Because sunrise-newrole.xml also
*flows through the pipeline it is then formatted by the stylesheet and
*returned to the browser. It is serialized to xml because it is being used
*inside the portal (in this case).
*
*If you wanted to write this to a database you would need to change the
*sunrise-newrole.xml and use the sqltransformer instead of cinclude and
*write-source. In all this should take you around 5 minutes or less to adapt.
*:-)
*
*So it really is quite simple really.
*
*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
*Weblog:
*  http://radio.weblogs.com/0103021/
*=
*
*  -Original Message-
*  From: Richard Reyes [mailto:[EMAIL PROTECTED]]
*  Sent: Tuesday, November 12, 2002 12:53 PM
*  To: cocoon-users
*  Subject: RE: Cocoon Portal - User Roles
*
*
*
*
*  Hi Matthew / Guys,
*
*  Just want to confirm some things
*
*  Since the the "new role" function in the portal sample is mapped to
* uri, it is using this sitemap
*snippet right?
*
*  
*  
*  
*  
*  
*  
*  
*  
*
*  and the documentations says that
*
*  The new-role resource creates a new role in the system. It gets the
*parameters "type" with the value "role" and "role" with the new rolename.
*
*  Where is the "type" and "role" parameter?
*  and why does it have to serialized in an xml type in the end?
*
*  Also, for the sunrise-newrole resource, the only thing this pipeline does
*is save a new role in the xml file ( sunrise-roles.xml )? whose responsible
*for displaying the next page after saving the new role?
*
*  And since this sitemap snippet is called inside a map:pipeline internal
*only clause I think it is being called by the portal generator or action.
*
*  If in case I'd used custom actions over this pipeline, How would I know
*the parameters that
*  have been passed and are being expected by the caller of this pipeline?
*
*  Thanks a lot
*  Richard
*- Original Message -
*From: Richard Reyes
*To: cocoon-users
*Cc: Alex
*Sent: Tuesday, November 12, 2002 7:18 PM
*Subject: Re: Cocoon Portal - User Roles
*
*
*Hi Matthew,
*
*Thanks for the reminder!
*
*
*Hi,
*
*each function of the portal is mapped to a pipeline. So in order to
*change the storage - all you have to do is to modify the pipeline to use say
*the SQLGenerator etc.
*
*Read the documentation.
*http://xml.apache.org/cocoon/developing/webapps/authentication.html
*
*It explains this in detail (see under User Administration). Then look at
*the pipelines that are currently used to get a feel for how it works at the
*moment.
*
*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
*Weblog:
*  http://radio.weblogs.com/0103021/
*=
*
*  -Original Message-
*  From: Richard Reyes [mailto:[EMAIL PROTECTED]]
*  Sent: Tuesday, November 12, 2002 10:06 AM
*  To: [EMAIL PROTECTED]
*  Subject: Re: Cocoon Portal - User Roles
*
*
*  Hi again guys,
*
*  I have checked the source codes of the portal sample...
*
*  I found out that if I am to add new user or to add new roles, both
*task
*  will end up 

RE: [XMLForm] terminology question

2003-01-16 Thread Sylvain.Thevoz
Hi,

Thank you but my question was about the meaning of the word in the context of XMLForm 
rather than the definition of the word itself.

To say in another way: 
what do you fill with values?
Where do you come from these values?


Regards
Sylvain

-Message d'origine-
De: Sylvain Wallez [mailto:[EMAIL PROTECTED]]
Date: jeudi, 16. janvier 2003 13:55
À: [EMAIL PROTECTED]
Objet: Re: [XMLForm] terminology question


[EMAIL PROTECTED] wrote:

>Hello,
>
>I'm looking through the XMLForm source code and API and there are many comments that 
>speak about "population".
>
>What does it mean exactly?
>

It comes from the verb "populate", which, in this context, means 
something as "fill with values".

Check also http://dictionary.reference.com/search?q=populate

Sylvain (another one)

-- 
Sylvain Wallez  Anyware Technologies
http://www.apache.org/~sylvain   http://www.anyware-tech.com
{ XML, Java, Cocoon, OpenSource }*{ Training, Consulting, Projects }



-
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: Redirect and unwanted SessionId

2003-01-16 Thread Dr. Hans M. Rupp


Carsten Ziegeler wrote:If I understand you correct, you say that the
sessionId is added

> to MyBlaServiceRelativeURL and this is value provided by your action
> "RedirectToMyBlaAction". So, I would guess that the problem is inside
> your action. No?

No, I log MyBlaServiceRelativeURL immediately before it is passed as a Map
parameter. At this moment it is still without
the sessionId.

Greetings,

Hans


Dr. Hans M. Rupp
danet Internet Solutions GmbH
Waldburgstr. 17-19
70563 Stuttgart
Germany

Fon +49 711 133 53 50
Fax +49 711 133 53 53

--



-
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: Fragment Extractor Generator - I want to use a XSL !

2003-01-16 Thread Sylvain Wallez
Samuel Goldszmidt wrote:


Hi,

I would like to know if someone has ever been able to make a transformation
with a xsl after the Fragment Extractor Generator
A transformation like this ( with a "A_STYLE_SHEET.xsl")
 


What is your particular problem ?

Sylvain

--
Sylvain Wallez  Anyware Technologies
http://www.apache.org/~sylvain   http://www.anyware-tech.com
{ XML, Java, Cocoon, OpenSource }*{ Training, Consulting, Projects }



-
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: SQL Transformer substitute-value woes with 2.0.4

2003-01-16 Thread Carsten Ziegeler


> -Original Message-
> From: Andrew Savory [mailto:[EMAIL PROTECTED]]On Behalf Of Andrew
> Savory
> Sent: Thursday, January 16, 2003 1:51 PM
> To: [EMAIL PROTECTED]
> Subject: RE: SQL Transformer substitute-value woes with 2.0.4
>
>
> On Thu, 16 Jan 2003, Carsten Ziegeler wrote:
>
> > I'm not sure, but I guess you have to use the sql namespace
> > for the substitute-value element as well:
> > 
>
> Oh man, it's ALWAYS a simple solution. Thanks! Patch for docs sent to
> bugzilla and cocoon-dev, and I've added "create an SQL transformer sample"
> to my to-do for the weekend ;-)
>
>
And applied - thanks! (I'm looking forward to the sample :) )

Carsten


-
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: [XMLForm] terminology question

2003-01-16 Thread Sylvain Wallez
[EMAIL PROTECTED] wrote:


Hello,

I'm looking through the XMLForm source code and API and there are many comments that speak about "population".

What does it mean exactly?



It comes from the verb "populate", which, in this context, means 
something as "fill with values".

Check also http://dictionary.reference.com/search?q=populate

Sylvain (another one)

--
Sylvain Wallez  Anyware Technologies
http://www.apache.org/~sylvain   http://www.anyware-tech.com
{ XML, Java, Cocoon, OpenSource }*{ Training, Consulting, Projects }



-
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: SQL Transformer substitute-value woes with 2.0.4

2003-01-16 Thread Andrew Savory
On Thu, 16 Jan 2003, Carsten Ziegeler wrote:

> I'm not sure, but I guess you have to use the sql namespace
> for the substitute-value element as well:
> 

Oh man, it's ALWAYS a simple solution. Thanks! Patch for docs sent to
bugzilla and cocoon-dev, and I've added "create an SQL transformer sample"
to my to-do for the weekend ;-)


Andrew.

-- 
Andrew SavoryEmail: [EMAIL PROTECTED]
Managing Director  Tel:  +44 (0)870 741 6658
Luminas Internet Applications  Fax:  +44 (0)700 598 1135
This is not an official statement or order.Web: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]>




[XMLForm] terminology question

2003-01-16 Thread Sylvain.Thevoz
Hello,

I'm looking through the XMLForm source code and API and there are many comments that 
speak about "population".

What does it mean exactly?

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: Redirect and unwanted SessionId

2003-01-16 Thread Carsten Ziegeler


> -Original Message-
> From: Dr. Hans M. Rupp [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 16, 2003 11:21 AM
> To: Coocon-user Liste
> Subject: Redirect and unwanted SessionId
> 
> 
> Hallo!
> 
> Coocon 2.03 running on Websphere 4.04
> 
> I need to redirect to an external URL. The URL and some parameters are
> derived from an action.
> Sitemamp snippet:
> 
> 
> 
>   value="MYBLA_HOMEPAGE_RELATIVE_URL"/>
>   uri="{MyBlaBaseURL}/{MyBlaServiceRelativeURL}?country={Country}&am
> p;language={Language}&country={Country}&authTk={AuthTk}ses
> sion="false">
> 
> 
>
> 
> The target URL is on an MS IIS (my best guess).
> The problem is that the sessionId is added to MyBlaServiceRelativeURL.

If I understand you correct, you say that the sessionId is added
to MyBlaServiceRelativeURL and this is value provided by your action
"RedirectToMyBlaAction". So, I would guess that the problem is inside
your action. No?

Carsten

> Of course the target server does not understand
> the sessionId and returns an 404.
> I have checked the action. The action writes the relativeURL to the map
> parameters without the sessionId. It must be added later on.
> 
> Do you have any idea how to supress this behavior?
> 
> 
> Many thanks,
> 
> Hans
> 
> 
> Dr. Hans M. Rupp
> danet Internet Solutions GmbH
> Waldburgstr. 17-19
> 70563 Stuttgart
> Germany
> 
> Fon +49 711 133 53 50
> Fax +49 711 133 53 53
> 
> --
> 
> 
> 
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. 
> 
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
> 

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

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




RE: - question

2003-01-16 Thread Johannes . Becker

OK. Still not running.

web.xml:

  extra-classpath
  WEB-INF/classes/fraud_management
 

java-Class in ".../cocoon/Web-Inf/classes/fraud_managment":
package fraud_management;
class execute_report {

  public String get_fraud()
  {
String hello = "Servus";
return hello;
  }
}

xsp:

http://apache.org/xsp";>

  
  fraud_management.execute_report


  

 execute_report er = new execute_report();
 String hello = er.get_fraud();
 

  hello

  
   
  


I have a feeling that I don't get the entries in the web.xml
>>
WEB-INF/extra-classes1:/[YOU-ABSOLUTE-PATH-TO]/own.jar
Do I have to insert additionally the class name? e.g. for Windows systems
WEB-INF/classes/fraud_managment;C:/Apache.../fraud_managment/execute_report.class

Thanks
Jonny




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



|-+>
| |   "Geoff Howard"   |
| | |
| ||
| |   01/15/03 07:37 PM|
| |   Please respond to|
| |   cocoon-users |
| ||
|-+>
  
>--|
  |
  |
  |   To:   <[EMAIL PROTECTED]>  
  |
  |   cc:  
  |
  |   Subject:  RE:  - question 
  |
  
>--|




> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, January 15, 2003 11:45 AM
> To: [EMAIL PROTECTED]
> Subject:  - question
>
>
> Hi,
>
> I want to include my own Java-Class in my XSP-Page



> 
>xmlns:xsp="http://apache.org/xsp";>
>
>   
>
> 

correct.

>
>   
>  
> String hello = null;
> hello = get_g();
> 
>
>hello
change the last line to:
  hello

You don't state what "doesn't work" but if you mean the page returned only
a
literal attribute bla="hello" then this should be your only problem from
what I can see.


>
>
>
>   
> 
>
>
> Where do I have to place my Java-Class. Under .../cocoon/Web-Inf/classes
> (where I hava placed it right now!)?

yes, that works - make sure that if your class is declared part of a
package
that you replicate the directory structure under WEB-INF/classes (many
people seem to make that mistake)

> How do I call methods, like my method get_g()?

The same way you would from any java class (your usage above should work
fine) since XSP generates and compiles a java file the first time your page
is executed.  I would highly recommend going to take a look at it.  It's
under your servlet container's work directory - most likely
$TOMCAT_HOME/work/Standalone/localhost/cocoon/cocoon-files/org/apache/cocoon

/www/jonny/filename_xsp.java - you may have to browse around for it if I've
made incorrect guesses.


HTH,
Geoff Howard


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

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






-
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: SQL Transformer substitute-value woes with 2.0.4

2003-01-16 Thread Carsten Ziegeler
Hi Andrew,

I'm not sure, but I guess you have to use the sql namespace
for the substitute-value element as well:


HTH
Carsten

> -Original Message-
> From: Andrew Savory [mailto:[EMAIL PROTECTED]]On Behalf Of Andrew
> Savory
> Sent: Thursday, January 16, 2003 1:22 PM
> To: [EMAIL PROTECTED]
> Subject: SQL Transformer substitute-value woes with 2.0.4
>
>
>
> Hi,
>
> As far as I can tell, using substitute-value with SQL Transformer does not
> work in 2.0.4 (and there aren't any examples of it in the samples,
> something I'll rectify if I ever get the darn thing working!).
>
> Here's what I've got:
>
> test.xml:
>
> 
>
> http://apache.org/cocoon/SQL/2.0";>
>
>   http://apache.org/cocoon/SQL/2.0";>
> 
>   SELECT DISTINCT contributor_id, name FROM foo WHERE
> contributor_id=''
> 
>   
> 
>
> sitemap.xmap:
>
> 
>   
>   
> 
> 
>   
>   
>   
> 
>
> ... but in my sitemap.log, I get:
>
> DEBUG   (2003-01-16) 12:11.46:611   [sitemap.transformer.sql]
> (/contributor/1/list) Thread-33/AbstractSAXTransformer: END
> endRecording fragment=
>
> SELECT DISTINCT id, contributor_id, name
> FROM contributor WHERE contributor_id=' sql:name="contributor_id"/>'
> DEBUG   (2003-01-16) 12:11.46:617   [sitemap.transformer.sql]
> (/contributor/1/list) Thread-33/AbstractSAXTransformer: END
> endSerializedXMLRecording xml=
> SELECT DISTINCT id, contributor_id, name
> FROM contributor WHERE contributor_id=''
>
> DEBUG   (2003-01-16) 12:11.46:618   [sitemap.transformer.sql]
> (/contributor/1/list) Thread-33/SQLTransformer: QUERY IS "
> SELECT DISTINCT id, contributor_id, name
> FROM contributor WHERE contributor_id=''
> "
>
> ... as far as I can tell, the substitute value just doesn't work. I've
> tried swapping {1} for 1 in the sitemap, and that doesn't help.
>
> Any ideas?
>
>
> Andrew.
>
> --
> Andrew SavoryEmail: [EMAIL PROTECTED]
> Managing Director  Tel:  +44 (0)870 741 6658
> Luminas Internet Applications  Fax:  +44 (0)700 598 1135
> This is not an official statement or order.Web: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]>
>


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




SQL Transformer substitute-value woes with 2.0.4

2003-01-16 Thread Andrew Savory

Hi,

As far as I can tell, using substitute-value with SQL Transformer does not
work in 2.0.4 (and there aren't any examples of it in the samples,
something I'll rectify if I ever get the darn thing working!).

Here's what I've got:

test.xml:



http://apache.org/cocoon/SQL/2.0";>

  http://apache.org/cocoon/SQL/2.0";>

  SELECT DISTINCT contributor_id, name FROM foo WHERE 
contributor_id=''

  


sitemap.xmap:


  
  


  
  
  


... but in my sitemap.log, I get:

DEBUG   (2003-01-16) 12:11.46:611   [sitemap.transformer.sql]
(/contributor/1/list) Thread-33/AbstractSAXTransformer: END endRecording 
fragment=

SELECT DISTINCT id, contributor_id, name FROM contributor 
WHERE contributor_id=''
DEBUG   (2003-01-16) 12:11.46:617   [sitemap.transformer.sql] (/contributor/1/list) 
Thread-33/AbstractSAXTransformer: END endSerializedXMLRecording xml=
SELECT DISTINCT id, contributor_id, name FROM contributor 
WHERE contributor_id=''

DEBUG   (2003-01-16) 12:11.46:618   [sitemap.transformer.sql] (/contributor/1/list) 
Thread-33/SQLTransformer: QUERY IS "
SELECT DISTINCT id, contributor_id, name FROM contributor 
WHERE contributor_id=''
"

... as far as I can tell, the substitute value just doesn't work. I've
tried swapping {1} for 1 in the sitemap, and that doesn't help.

Any ideas?


Andrew.

-- 
Andrew SavoryEmail: [EMAIL PROTECTED]
Managing Director  Tel:  +44 (0)870 741 6658
Luminas Internet Applications  Fax:  +44 (0)700 598 1135
This is not an official statement or order.Web: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]>




Fragment Extractor Generator - I want to use a XSL !

2003-01-16 Thread Samuel Goldszmidt
Hi,

I would like to know if someone has ever been able to make a transformation
with a xsl after the Fragment Extractor Generator
A transformation like this ( with a "A_STYLE_SHEET.xsl")













<-- here is the
transformation I want





Thanks

Sam ( always too young for cocoon ...)




-
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: form encoding UTF-8 / ISO-8859-1

2003-01-16 Thread Murad Jura
Martin Koeppe wrote:

Hello,

I'm using a recent developer version of cocoon 2.1 (Jan 9 2003),
tomcat 4.1.12 on SuSE Linux 8.0 Kernel 2.4.20,
and I found a problem with parsing the request parameters from a GET
request:

The browser (both Mozilla and IE) sends them as UTF-8, but cocoon
interprets them as ISO-8859-1. The problem can be seen e.g. with form
validator: if you enter a non-ASCII7 character, and there is something not
correct for the form validator within ANOTHER field, you get the first
field back changed.

I have enabled "container-encoding" and "form-encoding" in web.xml, and
set both to "utf-8", but with no success (no change in behaviour).

1) Can someone help?


I looked at the source, too:
org.apache.cocoon.environment.http.HttpRequest

There are getCharacterEncoding() and setCharacterEncoding().
Whereas get...() is mapped to the servlet engine function,
set...() seems to be implemented within cocoon.

In my experiments a call to set...("UTF-8") directly before reading the
parameters within a flow script didn't work, either. (no change)
get...() always returned null.

2) Can someone explain the idea of the set...() function, in combination
with decode(), i.e. why that should work? Or: what should be done to get
it work?

3) Why doesn't get...() return the value that was set before with
set...(), i.e. why is the servlet value returned, whereas the cocoon
internal value seems to be used?


Thanks in advance

Martin Koeppe

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



Hello Martin,

I want to inform you that I solved such problem by setting the web.xml's 
"container-encoding" parameter to ISO-8859-1 and the "form-encoding" 
parameter to "UTF8" (not "UTF-8" because "UTF8" is the internal Java's 
name of this encoding type, see Java Documentation).


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

2003-01-16 Thread SAXESS - Hussayn Dabbous
concerning session support the webproxygenerator
won't help you. for another (upcoming) solution
see

http://www.mail-archive.com/cocoon-users@xml.apache.org/msg22672.html

Although a prototype is working on my site, it is
still not mature enough to give it to the comunity.
Lajos and me are still fighting against some unexpected
uggly session consistency problems, hence we have some
delay in our work on this new pseudo protocol. we will
publish asap. please keep patient for a few days.

regards,hussayn


Kavitha Ramesh wrote:

Hi,

I have a login page which runs under cocoon 2.0.3 and
Tomcat 4.1.12.The login page works with Servlets which
generates xml as output in turn comined with XSLT in
cocoon.Now I would like to send the parameters by POST
and also would like to do some work with sessions.I
read that WebserviceProxyGenerator would do this.But I
am not able to understand the concept clearly and Iam
confused how to start with and how to use it and
implement in my case.I have installed the cocoon 2.1
developers version and it has one webserviceproxy.

If someone could help me I would be very thankful,,,

Regards
Kavitha Ramesh.

__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.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]>



--
Dr. Hussayn Dabbous
SAXESS Software Design GmbH
Neuenhöfer Allee 125
50935 Köln
Telefon: +49-221-56011-0
Fax: +49-221-56011-20
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]>




WebServiceProxygenerator

2003-01-16 Thread Kavitha Ramesh
Hi,

I have a login page which runs under cocoon 2.0.3 and
Tomcat 4.1.12.The login page works with Servlets which
generates xml as output in turn comined with XSLT in
cocoon.Now I would like to send the parameters by POST
and also would like to do some work with sessions.I
read that WebserviceProxyGenerator would do this.But I
am not able to understand the concept clearly and Iam
confused how to start with and how to use it and
implement in my case.I have installed the cocoon 2.1
developers version and it has one webserviceproxy.

If someone could help me I would be very thankful,,,

Regards
Kavitha Ramesh.

__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.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]>




Redirect and unwanted SessionId

2003-01-16 Thread Dr. Hans M. Rupp
Hallo!

Coocon 2.03 running on Websphere 4.04

I need to redirect to an external URL. The URL and some parameters are
derived from an action.
Sitemamp snippet:



 
 


   

The target URL is on an MS IIS (my best guess).
The problem is that the sessionId is added to MyBlaServiceRelativeURL.
Of course the target server does not understand
the sessionId and returns an 404.
I have checked the action. The action writes the relativeURL to the map
parameters without the sessionId. It must be added later on.

Do you have any idea how to supress this behavior?


Many thanks,

Hans


Dr. Hans M. Rupp
danet Internet Solutions GmbH
Waldburgstr. 17-19
70563 Stuttgart
Germany

Fon +49 711 133 53 50
Fax +49 711 133 53 53

--



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

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




RE: i18n again

2003-01-16 Thread Hong Gia Dinh
Title: i18n again



Thanks 
a lot
GD

  -Original Message-From: Konstantin Piroumian 
  [mailto:[EMAIL PROTECTED]]Sent: 16 January 2003 
  16:05To: [EMAIL PROTECTED]Subject: Re: i18n 
  again
  Currently there is no way to do it.
  It was in my todo list for a long time and probably 
  someday or someone will implement multiple dictionary support (or dictionary 
  include/import) capabilities. I'll take a look at it if I have 
  time.
   
  Another possibility is to use aggregation of dictionaries 
  and use 'cocoon:/' protocol to specify the catalogue location.
   
  Konstantin
  
- Original Message - 
From: 
Hong Gia Dinh 

To: [EMAIL PROTECTED] 

Sent: Thursday, January 16, 2003 
04:38
Subject: RE: i18n again

Thanks. I had a look there and also applied it! 
I 
have a question, can i have a common.xml and common_xx.xml including common 
vocabularies that will be used in many files!! (the example uses aggregate 
to get it) but in case i dont use aggregate, so how can i use??? (i dont 
want to copy and paste common vocabularies in for example search_xx.xml, 
edit_xx.xml .  . .)
 
Thanks a lot in advance
GD

  -Original Message-From: Konstantin Piroumian 
  [mailto:[EMAIL PROTECTED]]Sent: 14 January 2003 
  15:35To: [EMAIL PROTECTED]Subject: Re: 
  i18n again
  Again, please take a look at i18n samples (either in 
  2.0.3 or 2.1 versions) and you'll see that it's possible to specify the 
  message catalogue name on pipeline level, so you can have different 
  pipelines using different message catalogues. In i18n samples there are 
  two message catalogues: messages_xx.xml and menu_xx.xml and they are used 
  in different pipelines.
   
  Konstantin
  
- Original Message - 
From: 
Hong Gia 
Dinh 
To: [EMAIL PROTECTED] 

Sent: Tuesday, January 14, 2003 
06:32
Subject: i18n again

Hi all, 
I have rather large messages files! Can i have any 
way to define many messages for each language??? My messages_en.xml contains too many data! and i dont want a too 
large message, because it is very hard to managed and supervised! now i 
want to separate into number of messages such as messages_en_1.xml 
messages_en_1_1.xml . . . . can i do something like that or can i 
separate into small files to manage clearer?
Thanks a lot in advance GD 



Re: i18n again

2003-01-16 Thread Konstantin Piroumian
Title: i18n again



Currently there is no way to do it.
It was in my todo list for a long time and probably 
someday or someone will implement multiple dictionary support (or dictionary 
include/import) capabilities. I'll take a look at it if I have 
time.
 
Another possibility is to use aggregation of dictionaries and 
use 'cocoon:/' protocol to specify the catalogue location.
 
Konstantin

  - Original Message - 
  From: 
  Hong Gia Dinh 
  
  To: [EMAIL PROTECTED] 
  
  Sent: Thursday, January 16, 2003 
  04:38
  Subject: RE: i18n again
  
  Thanks. I had a look there and also applied it! 
  I 
  have a question, can i have a common.xml and common_xx.xml including common 
  vocabularies that will be used in many files!! (the example uses aggregate to 
  get it) but in case i dont use aggregate, so how can i use??? (i dont want to 
  copy and paste common vocabularies in for example search_xx.xml, edit_xx.xml 
  .  . .)
   
  Thanks a lot in advance
  GD
  
-Original Message-From: Konstantin Piroumian 
[mailto:[EMAIL PROTECTED]]Sent: 14 January 2003 
15:35To: [EMAIL PROTECTED]Subject: Re: i18n 
again
Again, please take a look at i18n samples (either in 2.0.3 
or 2.1 versions) and you'll see that it's possible to specify the message 
catalogue name on pipeline level, so you can have different pipelines using 
different message catalogues. In i18n samples there are two message 
catalogues: messages_xx.xml and menu_xx.xml and they are used in different 
pipelines.
 
Konstantin

  - Original Message - 
  From: 
  Hong Gia 
  Dinh 
  To: [EMAIL PROTECTED] 
  
  Sent: Tuesday, January 14, 2003 
  06:32
  Subject: i18n again
  
  Hi all, 
  I have rather large messages files! Can i have any way 
  to define many messages for each language??? My 
  messages_en.xml contains too many data! and i dont want a too large 
  message, because it is very hard to managed and supervised! now i want to 
  separate into number of messages such as messages_en_1.xml 
  messages_en_1_1.xml . . . . can i do something like that or can i separate 
  into small files to manage clearer?
  Thanks a lot in advance GD