Re: how to access without cocoon

2002-09-30 Thread yuryx

Tuomo Lesonen wrote:

On Sat, 28 Sep 2002, funing wrote:

  

Hi!
I can run my webapp by http://host:8080/cocoon/xxx correctly.
How to access it without cocoon by http://host:8080/xxx ?

I change the map:pattern but it doesn't work :(




Or rename webapps/ROOT to webapps/tomcat, and rename your webapps/xxx
to webapps/ROOT.

-Tuomo

  

-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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. http://xml.apache.org/cocoon/faq/index.html

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

  

See in
http://xml.apache.org/cocoon/faq/faq-configure-environment.html#faq-1

-- 
Best regards,
Yury Mikhienko.
IT engineer, ZAO Mobicom-Kavkaz




-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




global form-encoding setting

2002-09-26 Thread yuryx

Hi folks!

Is there a way to change default setting for form-encoding parameter? 
Now I have to use param1=xsp-request:parameter name=test 
form-encoding=KOI8-R/ for each parameter. Is there a way to set it 
somewhere in sitemap.xmap or in another place?

-- 

Best regards,
Yury.
--
Yury Mikhienko.
IT engineer, ZAO Mobicom-Kavkaz



-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




Re: clearing all caches

2002-08-19 Thread yuryx

Try using  TreeProcessor instead synchron method .
In the cocoon.xconf:
sitemap 
class=org.apache.cocoon.components.treeprocessor.TreeProcessor 
logger=sitemap/

I'm using this configuration...
And so ok for me :)

Yury.

Antonio Gallardo Rivera wrote:

Hi Vaskin:

To resolve your problem you must tell Cocoon to check for change in a synchron 
form. To do this:

In the file cocoon.xconf

search for:

sitemap file=sitemap.xmap reload-method=asynchron check-reload=yes 
logger=sitemap/

then change the attribute reload-method to synchron:

sitemap file=sitemap.xmap reload-method=synchron check-reload=yes 
logger=sitemap/

Antonio Gallardo

El Lunes, 19 de Agosto de 2002 13:19, Vaskin Kissoyan escribió:
  

I'm sometime seeing changes and sometimes not, how do I make sure
everything is be reflected properly? Is there a way to clear Cocoon's
cache directly, as I'm pretty sure its not in my browser cache or
anywhere else that I can tell, and restargint Tomcat doesn't seem to do
it either.

Tomcat 4.04
Cocoon 2.0.3
Mozilla very recent Nightly

Working on bonebreaker.zip from cocooncenter.de 's Creating a
navigation Menu

When I try to add new sections I have issues where I cannot see the new
sections, I have edited and created new home.xml pages and everything.

any help would be appreciated.


-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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. http://xml.apache.org/cocoon/faq/index.html

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

  



-- 

Best regards,
Yury.
--
Yury Mikhienko.
IT engineer, ZAO Mobicom-Kavkaz




-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




mount cocoon context on root URL-path

2002-08-15 Thread yuryx

Hi all!

I'm using tomcat-mod_jk-apache integration and I have the following 
question:

How can I mount a cocoon context on a root URL?
In tomcat-mod_webapp-apache integration I used to set the following
in httpd.conf :

IfModule mod_webapp.c

WebAppConnection Conn   warp  localhost:8008
WebAppDeploy cocoon Conn  /
WebAppInfo /webapp-info

/IfModule




-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




Re: XSP beginner's question: Can't get examples to work

2002-08-12 Thread yuryx

Hahn Kurt (CHA) wrote:

Hi,
I have a fully functional Cocoon 2.02 installation, and I'm testing some
features that I didn't use so far. Right now, I'm working my way through the
XSP samples, but they don't work so far. For instance, this XSP (everything
is directly copied from the samples) 

?xml version=1.0?

xsp:page xmlns:xsp=http://apache.org/xsp;
  

try insert page here

  xsp:logic
// this could be arbitrarily complex Java code, JDBC queries, etc.
String msg = Hello, world!;
  /xsp:logic

  greeting
xsp:exprmsg/xsp:expr
  /greeting
  

and /page here

/xsp:page

, processed with this XSL:


?xml version=1.0?
xsl:stylesheet xmlns:xsl=http://www.w3.org/1999/XSL/Transform;
version=1.0

xsl:template match=/
  html
body
  h1
xsl:value-of select=greeting/

or xsl:value-of select=./ (if not inserting page tags)  instead of 
xsl:value-of select=greeting/

Regards.
Yury.

  /h1
/body
  /html
/xsl:template

/xsl:stylesheet


should result in an HTML-page showing Hello, World, but I only get a blank
page. Does anybofy know how?

Thanks

-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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. http://xml.apache.org/cocoon/faq/index.html

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




Re: Encoding on ESQL query

2002-08-09 Thread yuryx

Hiloliddin Karimov wrote:

 Hi All,

  

 I try retrieve column that have cyrillic letters by ESQL:

  

 ?xml version=1.0 encoding=windows-1251?

 xsp:page ...

 ...

   esql:query

 SELECT username FROM users

 WHERE fname LIKE esql:parameter%xsp-request:get-parameter 
name=fname/%/esql:parameter

   /esql:query

 ...

try
xsp-request:get-parameter name=text1 form-encoding=windows-1251/
or
String param=new 
String(request.getParameter(text1).getBytes(ISO-8859-1),windows-1251);

Regards.
Yury.

  

 and fname has cyrillic letter, so, when I try retrieve some record, no 
 results.

 How I know it should to encode.

  

 Any ideas, tips, or help would be greatly appreciated.

 Thanks very much!

 Hill

  

 MS SQL; Tomcat 4.0; Cocoon 2.1 dev; Java SDK 1.4;





-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




support non-english characters in HTML serializer

2002-07-31 Thread yuryx

Hi all!

Can anyone help me with following problem:
I place russian text into attributes in my tags (for example: a 
href=ÔÅÓÔ/).
And I see unicode encoding text in the attribute in output HTML :(
Any way for solve this problem?

Thanx.
Yury.



-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




use taglib (logicsheets) in XSL

2002-07-29 Thread yuryx

Hi all!

Can I do use taglibs in my XSL?
For example:
?xml version=1.0 encoding=KOI8-R?

xsl:stylesheet version=1.0 
xmlns:xsp-request=http://apache.org/xsp/request/2.0;
  
xmlns:xsl=http://www.w3.org/1999/XSL/Transform;

 xsl:template match=/
   testxsp-request:get-sitemap-uri//test
  /xsl:template
/xsl:stylesheet

Thanx.
Yury.



-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




Re: use taglib (logicsheets) in XSL

2002-07-29 Thread yuryx

yuryx wrote:

 Hi all!

 Can I do use taglibs in my XSL?
 For example:
 ?xml version=1.0 encoding=KOI8-R?

 xsl:stylesheet version=1.0 
 xmlns:xsp-request=http://apache.org/xsp/request/2.0;
  
 xmlns:xsl=http://www.w3.org/1999/XSL/Transform;

 xsl:template match=/
   testxsp-request:get-sitemap-uri//test
  /xsl:template
 /xsl:stylesheet

 Thanx.
 Yury.

How-to esql.xsl work, If this not possible?

Yury.



-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




Re: use taglib (logicsheets) in XSL

2002-07-29 Thread yuryx

Vadim Gritsenko wrote:

From: yuryx [mailto:[EMAIL PROTECTED]]

yuryx wrote:



Hi all!

Can I do use taglibs in my XSL?
  


You can use logicsheets in XSP pages only. XSP page will then generate
XML (invoking any logicsheets you are using). This resulting XML can be
anything, including XSL. See sub sitemap samples.

  


  

For example:
?xml version=1.0 encoding=KOI8-R?

xsl:stylesheet version=1.0
xmlns:xsp-request=http://apache.org/xsp/request/2.0;

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

xsl:template match=/
  testxsp-request:get-sitemap-uri//test
 /xsl:template
/xsl:stylesheet

Thanx.
Yury.

  

How-to esql.xsl work, If this not possible?



esql.xsl is not *stylesheet*, but *logicsheet*.

Vadim

  

Thanx. I'm understand this differents... But, I have using logicsheets 
in stylesheets with transformation step (xsl+xsp=xslp :) )...
Maybe this idea is good?

Yury.




-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




Re: Esql and rollback

2002-07-24 Thread yuryx

Leszek Gawron wrote:

I'm quite new to JDBC and ESQL. My question is: I have more that one database
inserts. Every one in different esql:execute tag. How can I rollback the
transaction if say the 3rd goes wrong? There is no such esql tag and I do not
know how to obtain the appropriate jdbc session variable? or maybe I'm totally
wrong?
   ouzo
  

Open the new  connection like:
esql:connection
 esql:drivermydriver/esql:driver
 esql:dburldburl/esql:dburl
 esql:username... /esql:username
 esql:password.../esql:password

And set esql:autocommitfalse/esql:autocommit in your connection.

Now you can use following syntax to commit or rollback changes:

esql:execute-query
 ... put your query here
/esql:execute-query
esql:execute-queryesql:querycommit (or rollback) 
/esql:query/esql:execute-query
/esql:connecton

May be that example solve your problem :)
 (Because I doesn't try this method in my work)

Regards.
Yury.



-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




cleaning xmlns attribute with XSL transformation

2002-07-16 Thread yuryx

How can I set up the xsp processor that way that it will not unclude 
'xmlns' attributes to HTML output?

For example. I'm generate XML from my XSP.In XSP page  i define the 
following namespace: [xmlns:xsp=http://apache.org/xsp;].
my XSP:
content
 test type=testtest/test
/content
1)When I tried to execute this logicsheet
...
xsl:template match=content
 xsl:apply-templates/
/xsl:template
...
  xsl:template match=@* priority=-3
   xsl:choose
xsl:when test=not(contains(name(.),'xmlns'))
 xsl:copyxsl:value-of select=.//xsl:copy
/xsl:when
   /xsl:choose
  /xsl:template

  xsl:template match=node() priority=-2
 xsl:copyxsl:apply-templates select=@*|node()//xsl:copy
  /xsl:template


  xsl:template match=text() priority=-1xsl:value-of 
select=.//xsl:template

root tags (test) contain [xmlns:xsp=http://apache.org/xsp] attribute 
(and 'test' attribute also)

2)When I tried to execute this logicsheet
...
xsl:template match=content
 xsl:apply-templates/
/xsl:template
...
  xsl:template match=@* priority=-3
   xsl:choose
!-- *** --
xsl:when test=not(contains(name(.),'test'))
!-- *** --
 xsl:copyxsl:value-of select=.//xsl:copy
/xsl:when
   /xsl:choose
  /xsl:template

  xsl:template match=node() priority=-2
 xsl:copyxsl:apply-templates select=@*|node()//xsl:copy
  /xsl:template


  xsl:template match=text() priority=-1xsl:value-of 
select=.//xsl:template

Root tags (test) contain [xmlns:xsp=http://apache.org/xsp] attribute 
without test attribute
Of course I cleaned this attribute, but why xmlns:xsp attribute is not 
cleaned in first XSL example?

Or I'm in a wrong way here?


Thanx.
Yury.





-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




Re: cleaning xmlns attribute with XSL transformation

2002-07-16 Thread yuryx

It work!
Thanx Vadim.

Yury.

Vadim Gritsenko wrote:

From: yuryx [mailto:[EMAIL PROTECTED]]

How can I set up the xsp processor that way that it will not unclude
'xmlns' attributes to HTML output?



This might be of help:
http://marc.theaimsgroup.com/?l=xml-cocoon-usersm=102553660504679w=2


Vadim

 
...


-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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. http://xml.apache.org/cocoon/faq/index.html

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




Insert full date and time into Oracle databse using esql:parameter

2002-07-15 Thread yuryx

Hi all!

Is there any way to insert full datetime value into oracle database 
using the following syntax:

xsp:logic
 java.util.Date today=new java.util.Date();
/xsp:logic
...
 esql:queryinsert into query_stack 
(t_stamp,username,q_body,q_type) values (
esql:parameter type=Date 
 xsp:exprjava.sql.Date(today.getTime())/xsp:expr/esql:parameter,
esql:parameterxsp:expruname/xsp:expr/esql:parameter,
esql:parameterxsp:exprparam/xsp:expr/esql:parameter,

esql:parameterxsp:exprInteger.parseInt(sql_type)/xsp:expr/esql:parameter
  )

  /esql:query

I always get the result value with 'zero' time :( , and I need to be 
able to insert hh24:mi:ss values.

Thanx.
Yury.



-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




Re: Insert full date and time into Oracle databse using esql:parameter

2002-07-15 Thread yuryx

Christoph Gaffga wrote:

Why you don't try this:

esql:queryinsert into query_stack
(t_stamp,username,q_body,q_type) values (
NOW(),


This doesn't work (with sql exception )
It worked with 'sysdate' word instead of now() statement , but I have 
solve problem with use Data objects for any dates...
It worked with to_date('xsp:exprmytimestamp/xsp:expr','DD-MM- 
hh24:mi:ss') statement also.

Thanx for the your reply.

Yury.

esql:parameterxsp:expruname/xsp:expr/esql:parameter,
esql:parameterxsp:exprparam/xsp:expr/esql:parameter,

esql:parameterxsp:exprInteger.parseInt(sql_type)/xsp:expr/esql:parame
ter
  )
  /esql:query


yours
Christoph Gaffga
[EMAIL PROTECTED]



From: yuryx [EMAIL PROTECTED]
  

Is there any way to insert full datetime value into oracle database
using the following syntax:
xsp:logic
 java.util.Date today=new java.util.Date();
/xsp:logic
...
 esql:queryinsert into query_stack
(t_stamp,username,q_body,q_type) values (
esql:parameter type=Date
 xsp:exprjava.sql.Date(today.getTime())/xsp:expr/esql:parameter,
esql:parameterxsp:expruname/xsp:expr/esql:parameter,
esql:parameterxsp:exprparam/xsp:expr/esql:parameter,




esql:parameterxsp:exprInteger.parseInt(sql_type)/xsp:expr/esql:parame
ter
  

  )

  /esql:query
I always get the result value with 'zero' time :( , and I need to be
able to insert hh24:mi:ss values.





-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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. http://xml.apache.org/cocoon/faq/index.html

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




mod_webapp or mod_jk?

2002-07-09 Thread yuryx

Hi all!

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

Thanx for any reply.

Yury.



-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




Re: mod_webapp or mod_jk?

2002-07-09 Thread yuryx

Hi Luca!

Thanx for your reply, but one more qustion :)

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

Thanx.
Yury.


Luca Morandini wrote:

Yurix,

here's for my 0.2c:

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

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

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

Best regards,

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


  

-Original Message-
From: yuryx [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 09, 2002 1:04 PM
To: [EMAIL PROTECTED]
Subject: mod_webapp or mod_jk?


Hi all!

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

Thanx for any reply.

Yury.



-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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. http://xml.apache.org/cocoon/faq/index.html

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. http://xml.apache.org/cocoon/faq/index.html

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




Re: Hello...

2002-07-07 Thread yuryx

ÃÖÁßÈ£ wrote:

 I have a question when develop web-app using
 Cocoon.
 I think that It is heavy task using Cocoon When developing web-page.
 Because I think that it take much time to make .xsp file
 and view page by browser.. shutdown webserver and
 restart .. so , so.
 What do you think about this?
 thanks. ^^;

Cocoon recompile (after changes in xsp) your xsp without restarting
webserver (Tomcat)
You just set rewrite page every time to view the page in you browser.
Regards.
Yury.




-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




Re: Redirect Apache Requests to Tomcat

2002-07-04 Thread yuryx

Thomas Garger wrote:

Hi!

I have Cocoon 2.0.2 running under Tomcat on port 8080. My Homepage
is called with the following URL
(http://MyServer-IP:8080/cocoon/myhomepage).

I also have a domain-name (http://www.MyDomainName.at )where i put the
DNS to the IP of my Server. But every time someone want to call my
homepage,
he has to insert the following
(http://www.MyDomainName.at:8080/cocoon/myhomepage).
That is bad.

And thats my intension:
---
I want to run Apache Web-Server, which is listening on port 80.

So my question ist - can i configure Apache Web-Server and Tomcat in
this
way, that
every request, that comes to the Apache Web-Server is redirectedt to
Tomcat
(for example - someone calls http://www.MyDomainName.at he calls the
Apache Web-Server - this Server gets the sites from Tomcat and displays
the
content).

if someone needs further information, please tell me.

thanks
greetings, chris


-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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

  

Try to install mod_webapp module and configure the warp connection on 
Tomcat and Apache sides
See also http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/warp.html

Regards.
Yury.




-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




Re: Redirect Apache Requests to Tomcat

2002-07-04 Thread yuryx

Thomas Garger wrote:

Hi!

I have Cocoon 2.0.2 running under Tomcat on port 8080. My Homepage
is called with the following URL
(http://MyServer-IP:8080/cocoon/myhomepage).

I also have a domain-name (http://www.MyDomainName.at )where i put the
DNS to the IP of my Server. But every time someone want to call my
homepage,
he has to insert the following
(http://www.MyDomainName.at:8080/cocoon/myhomepage).
That is bad.

And thats my intension:
---
I want to run Apache Web-Server, which is listening on port 80.

So my question ist - can i configure Apache Web-Server and Tomcat in
this
way, that
every request, that comes to the Apache Web-Server is redirectedt to
Tomcat
(for example - someone calls http://www.MyDomainName.at he calls the
Apache Web-Server - this Server gets the sites from Tomcat and displays
the
content).

if someone needs further information, please tell me.

thanks
greetings, chris


-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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

  

Try to search more information about that in 
http://www.mail-archive.com/tomcat-user@jakarta.apache.org/index.html also

Regards.
Yury.





-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




Re: sent map parameters into another sitemap

2002-06-27 Thread yuryx

HI Konstantin!

Thanx for a lot, but I'm get the following error:

/Element 'global-parameters' is not allowed at 
file:/usr/local/jakarta/catalina-4.0.4/webapps/cocoon/mobicomk/protect/sitemap.xmap:34:27/
 


I'm try this:

   map:global-parameters
 map:parameter name=urls value=default is nothing!/
   /map:global-parameters

Thanx.
Yury.



Piroumian Konstantin wrote:




Yes!!!

...but only in 2.1-dev version.
Use this in your subsitemap:

map:pipelines
  map:global-parameters
   map:parameter name=use-connection value=some-default-value /
   ...

KP

  




-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




Re: sent map parameters into another sitemap

2002-06-27 Thread yuryx

Oops!

...but only in 2.1-dev version...
Sorry...

Yury.


yuryx wrote:

 HI Konstantin!

 Thanx for a lot, but I'm get the following error:

 /Element 'global-parameters' is not allowed at 
 
file:/usr/local/jakarta/catalina-4.0.4/webapps/cocoon/mobicomk/protect/sitemap.xmap:34:27/
 


 I'm try this:

   map:global-parameters
 map:parameter name=urls value=default is nothing!/
   /map:global-parameters

 Thanx.
 Yury.



 Piroumian Konstantin wrote:

   


 Yes!!!

 ...but only in 2.1-dev version.
 Use this in your subsitemap:

 map:pipelines
  map:global-parameters
 map:parameter name=use-connection value=some-default-value /
 ...

 KP

  




 -
 Please check that your question  has not already been answered in the
 FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

 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. http://xml.apache.org/cocoon/faq/index.html

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




startup the cocoon-2.1-dev error

2002-06-27 Thread yuryx

Hi all!

I'm just downloads from CVS the latest version of cocoon.
after the make (with jdk1.3.1_v2)   installing cocoon.war on 
tomcat-4.0.4 I'm try :
http://localhost:8088/cocoon/
and get the following error:
_The server encountered an internal error (Internal Server Error) that 
prevented it from fulfilling this request._

javax.servlet.ServletException: Servlet.init() for servlet Cocoon2 threw exception
at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:947)
at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:655)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214
...

in root cause:
java.lang.NoSuchMethodError
at 
org.apache.cocoon.components.source.impl.DelayedRefreshSourceWrapper.discardValidity(DelayedRefreshSourceWrapper.java:148)
at org.apache.cocoon.Cocoon.configure(Cocoon.java:330)
at org.apache.cocoon.Cocoon.initialize(Cocoon.java:271)
at 
org.apache.cocoon.servlet.CocoonServlet.createCocoon(CocoonServlet.java:1237)
at org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:435)
at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:918)
at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:655)
...

I'm sorry, but where I'm wrong?
(in server.xml
   !-- Define a non-SSL HTTP/1.1 Connector on port 8080 --
Connector className=org.apache.catalina.connector.http.HttpConnector
   port=8088 minProcessors=5 maxProcessors=75
   enableLookups=true redirectPort=8443
   acceptCount=10 debug=0 connectionTimeout=6/
!-- Note : To disable connection timeouts, set connectionTimeout value 
 to -1 --
:)
)

Thanx.
Yury.






-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




Re: startup the cocoon-2.1-dev error -solved

2002-06-27 Thread yuryx

Sorry by spam...

Regards.
Yury.



-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




Re: JspGenerator Problem

2002-06-24 Thread yuryx

Cenk Uysal wrote:

I tried it but I still get the same error. What about JSP file? is it
valid JSP that returns XML? I'm not sure. Interesting point is
Cocoon's own JSP Generator examples run correctly. Here is my JSP:
  

try %@ page language=java %

instead of

%@ page contentType=text/xml %
  

Regards.
Yury.



-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




Re: JspGenerator Problem

2002-06-23 Thread yuryx

Cenk Uysal wrote:

I try to use JspGenerator with following sitemap entry:

   map:pipeline

 
   map:match pattern=cenk/*.*
map:generate src=jspxml.jsp type=jsp/
map:transform src=jspxml.xsl/
map:serialize type=html/
   /map:match
   
/map:pipeline
  

try define in sitemap map:generate src=/jspxml.jsp type=jsp/
instead the map:generate src=jspxml.jsp type=jsp/

Regard.
Yury.



-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




Re: java.lang.OutOfMemoryError ------help pls

2002-06-11 Thread yuryx

Hi Niket.
I have the same symptoms while access to subsitemaps :(
(cocoon2.0.2 on tomcat4.0.4-b1)
Yury.

Niket Anand wrote:

Hi Vadim,
I have tried it on Tomcat 4.0.4b3. Even though it is showing same problem.
How can I deal with this error as it is demotivating factor in accepting
cocoon higher version.
Thanks for replying.
Niket
- Original Message -
From: Vadim Gritsenko [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, June 10, 2002 11:36 PM
Subject: RE: java.lang.OutOfMemoryError --help pls


Try tomcat 4.0.4.


Vadim




-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




Re: java.lang.OutOfMemoryError ------help pls

2002-06-11 Thread yuryx

Hi Roger.
Now 128M is the maximum memory for heap size I can use.
following settings in cocoon.xconf:

  store-janitor 
class=org.apache.cocoon.components.store.StoreJanitorImpl 
logger=core.store.janitor
 !-- How much free memory shall be available in the jvm 
--
 parameter name=freememory value=500/
 !-- Indicates the limit of the jvm memory consumption. The default 
max
 heapsize for Sun's JVM is 64Mb --
 parameter name=heapsize value=134217728/!-- heapsize now is 
128M --
 !-- How often shall the cleanup thread check memory --
 parameter name=cleanupthreadinterval value=10/
 !-- Indicates the thread priority of the cleanup thread --
 parameter name=threadpriority value=5/
 !-- How much percent of the elements of each registered Store shall
 be removed when low on memory. Default 10% --
 parameter name=percent_to_free value=10/
  /store-janitor

Yury.

Roger I Martin PhD wrote:

How much memory do you have?

Can you set the memory usage up on the tomcat command line?
-ms128M -mx256M
or higher.

-Roger
- Original Message -
From: yuryx [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, June 11, 2002 6:26 AM
Subject: Re: java.lang.OutOfMemoryError --help pls


Hi Niket.
I have the same symptoms while access to subsitemaps :(
(cocoon2.0.2 on tomcat4.0.4-b1)
Yury.




-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




Re: First access into subsitemap problem

2002-06-11 Thread yuryx

Thanx for your reply, Vadim.
But maybe first try  set reload-method to synchron in cocoon.xconf (in 
the sitemap area)?
Thanx.
Yury.

Vadim Gritsenko wrote:

Modify your map:mounts to look like this:

  map:mount uri-prefix=x src=x/sitemap.xmap check-reload=yes
reload-method=synchron/

Asynchron reloading method is broken and removed from next (2.0.3)
version of Cocoon.


Vadim


From: yuryx [mailto:[EMAIL PROTECTED]]

Hi all!
Can anyone help me with following problem:
I just installed cocoon2.0.2 on Tomcat 4.0.4-b1 (JDK1.3.1_02 Mandrake

linux)

I created subsitemap tree schema for my web, but before first access

to

next node (subsitemap) cocoon responses with
the following error:

(only for cocoon2.0.2 version :( )
ERROR   (2002-06-11) 09:22.23:887[access](/cocoon/info/crate)
Thread-14/CocoonServlet: Problem with servlet
java.lang.NullPointerException
at

org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:2709)

at org.apache.cocoon.sitemap.Handler.process(Handler.java:222)
at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:179)
at

org.apache.cocoon.sitemap.SitemapManager.process(SitemapManager.java:154
)

at org.apache.cocoon.Cocoon.process(Cocoon.java:575)
at

org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:998)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
...
(/info prefix -the mounted subsitemap)
After a little while pages reload without any error...
Can anyone give me a hint on how to resolve this problem?
Thanx.
Yury.



-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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. http://xml.apache.org/cocoon/faq/index.html

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




Re: First access into subsitemap problem

2002-06-11 Thread yuryx

Thanx, Vadim.
And next question :)
What is the line in cocoon.xconf:
!--sitemap 
class=org.apache.cocoon.components.treeprocessor.TreeProcessor 
logger=sitemap/--
maybe uncomment this? (also comment sitemap check-reload=yes 
file=sitemap.xmap logger=sitemap reload-method=synchron/ first )

Would this manipulation solve my problem?
Yury.

Vadim Gritsenko wrote:

From: yuryx [mailto:[EMAIL PROTECTED]]

Thanx for your reply, Vadim.
But maybe first try  set reload-method to synchron in cocoon.xconf

(in

the sitemap area)?


Yes, change there too. But setting in cocoon.xconf affects only root
sitemap, you have to change everywhere.

Vadim




-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




Re: First access into subsitemap problem

2002-06-11 Thread yuryx

Piroumian Konstantin wrote:

From: yuryx [mailto:[EMAIL PROTECTED]] 

Thanx, Vadim.
And next question :)
What is the line in cocoon.xconf:
!--sitemap 
class=org.apache.cocoon.components.treeprocessor.TreeProcessor 
logger=sitemap/--
maybe uncomment this? (also comment sitemap check-reload=yes 
file=sitemap.xmap logger=sitemap 
reload-method=synchron/ first )

Hi Konstantin!
But is it necessary set  reload-method in subsitemaps (with mount 
operation) after switch to TreeProcessor?
Yury.
P.S. Very fine and cognitive (for Oracle education) ;)


May I jump in?

I know that Vadim prefers the compiled sitemap engine, but I would recommend
to switch to TreeProcessor - there is no much difference in performance at
runtime, but you'll get much shorter startup time and more informative error
messages in logs - all this helps very much on during development.

Konstantin

P.S. Yury, how did you find Moscow? ;)

Would this manipulation solve my problem?
Yury.

Vadim Gritsenko wrote:

From: yuryx [mailto:[EMAIL PROTECTED]]

Thanx for your reply, Vadim.
But maybe first try  set reload-method to synchron in cocoon.xconf

(in

the sitemap area)?

Yes, change there too. But setting in cocoon.xconf affects only root
sitemap, you have to change everywhere.

Vadim



-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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. http://xml.apache.org/cocoon/faq/index.html

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. http://xml.apache.org/cocoon/faq/index.html

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




Re: First access into subsitemap problem -Thanx

2002-06-11 Thread yuryx

Thanx to Vadim  Konstantin!

I hope, your advanced  hints help me for solve my problem
:)
Thanx.
Yury.



-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




Re: Which version of Oracle is required to connect to cocoon?

2002-06-05 Thread yuryx

Hi Sreenivasan!
Sreenivasan N. wrote:

 Hi all

 Can anyone give info on Oracle database version for windows and Unix 
 required for cocoon connectivity.


Try Oracle jdbc drivers (for any versions). Download classes12.jar and 
put it into $CATALINA_HOME/common/lib

 And also the basic parameters that has to be set into cocoon.xconf 

in cocoon.xconf:
 datasources
   jdbc logger=core.datasources.personnel name=personnel
 dburljdbc:hsqldb:hsql://localhost:9002/dburl
 usersa/user
 password/
   /jdbc


   jdbc name=ora
 pool-controller min=5 max=10 oradb=true/
dburljdbc:oracle:thin:@hostname:1521:SID/dburl
 userusername/user
 passwordpassword/password
   /jdbc

 
 /datasources

in web.xml:
   init-param
 param-nameload-class/param-name
 param-value
   !-- For IBM WebSphere:
   com.ibm.servlet.classloader.Handler --

   !-- For Database Driver: --
   org.hsqldb.jdbcDriver

   !--*** --
   !-- For Oracle Database Driver: --
   oracle.jdbc.driver.OracleDriver
   !--*** --

   !-- For parent ComponentManager sample:
   org.apache.cocoon.samples.parentcm.Configurator
   --
 /param-value
   /init-param


 jdbc driver that support, Is it part of cocoon or any Jar file has to 
 be added to Tomcat.
 The sitemap configuration with an example for the same will be helpful

 Thanks in advance
 Sreenivasan.



Regards.
Yury.



-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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




wbmp support in cocoon

2002-06-04 Thread yuryx

Hi all!
Does cocoon support mime-type=image/wbmp in sitemap (as is gif,jpg,png)?
Thanx.
Yury.




-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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




Re: wbmp support in cocoon

2002-06-04 Thread yuryx

Stephan Michels wrote:


On Tue, 4 Jun 2002, yuryx wrote:

Hi all!
Does cocoon support mime-type=image/wbmp in sitemap (as is gif,jpg,png)?
Thanx.
Yury.


Only the browser evaluates the mime-type, for the cocoon it is just a
string.


-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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

Hi Stephan!

Ok  Thanx :)

Regards.
Yury.




-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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




Re: Barf on JSPGenerator on Hello.jsp (HELP!)

2002-06-04 Thread yuryx

Rob Kelley wrote:

 Hi:

 I'm running cocoon 2.0.2 on Tomcat  4.0.1 (Windows).  I've been trying 
 to run the hello example for the jsp:

 http://127.0.0.1:8080/cocoon/jsp/hello

 I get the same error (stack trace at end of email):

 /SAXException JspGenerator.generate()/

 My sitemap entry is:

map:match pattern=jsp/*
 map:generate src=/docs/samples/jsp/{1}.jsp type=jsp/
 map:transform src=stylesheets/page/simple-page2html.xsl/
 map:serialize type=html/
/map:match

 My cocoon.xconf jsp-engine is:

   jsp-engine logger=core.jsp-engine
 parameter name=servlet-class 
 value=org.apache.jasper.servlet.JspServlet/
 parameter name=servlet-name value=*.jsp/
   /jsp-engine

 And I'm at wit's end. How do I get JSPs to work?

 Please help!

 Rob

 **

Hi Rob!

Try copy jasper-compiler.jar into cocoon/WEB-INF/lib/  directory from 
$CATALINA_HOME/lib

Regards.
Yury.



-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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




SunRise authefication

2002-05-31 Thread yuryx

Hi all!
Next question:
where I can download SunRise Auth components?
any URL's?
Thanx.
Yury.



-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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




Re: SunRise authefication

2002-05-31 Thread yuryx

Hi Guido!
where in src? I was not found it in C 2.0.2 sources :(

Yury.

[EMAIL PROTECTED] wrote:

It is included in the latest Cocoon distribution (2.0.2).

Guido

--
Open Source Group   sunShine - Lighting up e:Business
=
Guido Casper, SN AG, Klingenderstrasse 5, D-33100 Paderborn
Tel:+49-5251-1581-87  [EMAIL PROTECTED] - http://www.s-und-n.de
=


yuryx schrieb:

Hi all!
Next question:
where I can download SunRise Auth components?
any URL's?
Thanx.
Yury.




-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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




Re: SunRise authefication

2002-05-31 Thread yuryx

Chitharanjan Das wrote:

The source is in the main distribution. Its no longer called as
sunrise...

org.apache.cocoon.webapps.authentication.*

Hi Chitharanjan.

Sorry, but I not found this path in my distribution C2.0.2 :(
What is wersion (creation date) your destributive Cocoon?
I have distributive with creation date is 26.03.2002.

Yury.



-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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




Session in XSP

2002-05-06 Thread yuryx

Hello all!

May be anyone to answer me for the next question:
Why org.apache.cocoon.environment.Session not available in XSP?
Why cocoon-dev shouldn't built-in it into XSP as 
org.apache.cocoon.environment.Request parameter (for example)?

Thanx.
Yury.



-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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




Re: Session in XSP

2002-05-06 Thread yuryx

yuryx wrote:

 Hello all!

 May be anyone to answer me for the next question:
 Why org.apache.cocoon.environment.Session not available in XSP?
 Why cocoon-dev shouldn't built-in it into XSP as 
 org.apache.cocoon.environment.Request parameter (for example)?

 Thanx.
 Yury.



 -
 Please check that your question has not already been answered in the
 FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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

Sorry by the question.
In Cocoon2.0.2-2.1-dev object session is present in XSP.

Yury.




-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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




problem with get non-english characters from CLOB (esql:get-asciiusage)

2002-04-26 Thread yuryx

Hello all!
I have following problem:
In Oracle database I store some CLOB object. This clob contain XML with 
KOI8-R coding.
After set in clob next data:h4ÜÔÏ ÔÅÓÔ/h4 I use esql:get-ascii 
 method for get my data.
And I have wrong results :( like:
h4-B B5AB/h4
What I'm wrong?
Can anyone help me??
Thanx.
Yury.



-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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




Re: problem with subsitemap

2002-04-26 Thread yuryx

Frank Taffelt wrote:

Hi,

i'm trying to serve my application-content from subsitemaps.
Here is a example from my sitemap.

the Base-Sitemap:

base-sitemap
  !-- mounted subapplication --
  map:match pattern=sub/**
map:mount check-reload=yes src=sub/sitemap.xmap uri-prefix=sub/
 /map:match

Try  map:mount check-reload=yes src=sub/ uri-prefix=sub/
Yury



  map:match pattern=test
 map:generate src=cocoon:/sub//
   map:serialize type=xml/
  /map:match
/base-sitemap

the SubSitemap :

sub-sitemap
   map:match pattern=
map:redirect-to uri=entry/
   /map:match

   map:match pattern=/
map:redirect-to uri=entry/
   /map:match

   map:match pattern=entry
   map:generate src=content.xsp type=serverpages/
   map:serialize type=xml/
   /map:match
/subsitemap

When requesting /test i expect the content from /sub/entry.
But i'm getting the following error message in sitemap.log:
org.apache.cocoon.ResourceNotFoundException: No pipeline matched request:
sub//entry

is this a bug or did i something misunderstand?

Thanks lot
   -Frank


-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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. http://xml.apache.org/cocoon/faqs.html

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




Re: problem with subsitemap

2002-04-26 Thread yuryx

Frank Taffelt wrote:

Try  map:mount check-reload=yes src=sub/ uri-prefix=sub/


no this works when requesting url directly /sub/ OR /sub/entry. the
subsitemap is found and compiled.


 try this:

 map:match pattern=test
map:redirect-to uri=sub/entry/
 /map:match
Yury.




-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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. http://xml.apache.org/cocoon/faqs.html

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




Re: clob-esql-xml

2002-04-25 Thread yuryx

Steven Sedlmeyer wrote:

try esql:get-ascii column=myclob/

Steve

Thx, but I need XML,not ascii...
Yury


-Original Message-
From: yuryx [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 25, 2002 1:46 AM
To: [EMAIL PROTECTED]
Subject: clob-esql-xml


Hi all!
How to extract clob column as xml into dynamic page?
For example:
my CLOB: h1hello!/h1
in sample.xsp I define:
...
esql:execute-query
esql:queryselect myclob from mytable/esql:query
esql:results
esql:row-results
esql:get-xml column=myclob/
/esql:row-results
/esql:results
/esql:execute-query
...
?This example don't work :(
What I'm wrong?
Thanx.
Yury.




-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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. http://xml.apache.org/cocoon/faqs.html

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. http://xml.apache.org/cocoon/faqs.html

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




Re: clob-esql-xml

2002-04-25 Thread yuryx

yuryx wrote:

 Steven Sedlmeyer wrote:

 try esql:get-ascii column=myclob/

 Steve

 Thx, but I need XML,not ascii...
 Yury

esql:get-xml / don't work with CLOB
if use VARCHAR then it work very good...
May be esql:get-xml / don't support CLOB?
Yury.


 -Original Message-
 From: yuryx [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, April 25, 2002 1:46 AM
 To: [EMAIL PROTECTED]
 Subject: clob-esql-xml


 Hi all!
 How to extract clob column as xml into dynamic page?
 For example:
 my CLOB: h1hello!/h1
 in sample.xsp I define:
 ...
 esql:execute-query
 esql:queryselect myclob from mytable/esql:query
 esql:results
 esql:row-results
esql:get-xml column=myclob/
 /esql:row-results
 /esql:results
 /esql:execute-query
 ...
 ?This example don't work :(
 What I'm wrong?
 Thanx.
 Yury.




 -
 Please check that your question has not already been answered in the
 FAQ before posting. http://xml.apache.org/cocoon/faqs.html

 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. http://xml.apache.org/cocoon/faqs.html

 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. http://xml.apache.org/cocoon/faqs.html

 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. http://xml.apache.org/cocoon/faqs.html

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




clob-esql-xml

2002-04-24 Thread yuryx

Hi all!
How to extract clob column as xml into dynamic page?
For example:
my CLOB: h1hello!/h1
in sample.xsp I define:
...
esql:execute-query
esql:queryselect myclob from mytable/esql:query
esql:results
esql:row-results
esql:get-xml column=myclob/
/esql:row-results
/esql:results
/esql:execute-query
...
?This example don't work :(
What I'm wrong?
Thanx.
Yury.




-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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




Re: esql and xsp:logic

2002-04-03 Thread yuryx

Montier Patrick wrote:

hi,

Your Mysql connexion (here Mybase) must be declared in the cocoon.xconf and
web.xml.

Here is an simple example :

xsp:logic
int idemp=0;
/xsp:logic


esql:connection
   esql:poolMybase/esql:pool
bestof
esql:execute-query
esql:query
   SELECT * from mytable
   /esql:query
   esql:results
  esql:row-results
  row
xsp:logic
   idemp=esql:get-int column=id_emp/;

... and /xsp:logic here ;)


  /esql:row-results
/esql:results
esql:no-resultsNo results/esql:no-results
esql:error-results
  sqlerresql:get-message//sqlerr
/esql:error-results
  /esql:execute-query
/bestof
  /esql:connection


Patrick

-Message d'origine-
De : Bobby Koya [mailto:[EMAIL PROTECTED]]De la part de
[EMAIL PROTECTED]
Envoyé : mercredi 3 avril 2002 18:00
À : [EMAIL PROTECTED]
Objet : esql and xsp:logic


Hi I have a problem with some logic. The problem is that I have some
data stored in a mysql database and I would like to use this data in an
XSP file. Eg:

esql grab the data /esql

xsp:logic
 start to use the data.
/xsp:logic


Am I correct that this is not possible because the xsp:logic statements
are done before the esql statements or is it possible to do this:

xsp:logic
 esql grab the data /esql
 start to use the data.
/xsp:logic


Thanks for your time,
Sharat Koya


-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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. http://xml.apache.org/cocoon/faqs.html

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. http://xml.apache.org/cocoon/faqs.html

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




Re: Redirect on sitemap with parameters

2002-03-29 Thread yuryx

Vadim Gritsenko wrote:

From: yuryx [mailto:[EMAIL PROTECTED]]

Hello All!
Can I have redirect in sitemap like:

map:match=
map:redirect-to uri=sample
map:parameter name=style value=sample/


No, this does not work.

Yes, I'm know of this. This example was for example.
But I'm need parametrized redirect like call template in XSLT :)
If is not possible then problem is close :)

Thanx all for reply.
Yury.





-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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




Re: Redirect on sitemap with parameters

2002-03-29 Thread yuryx

Axel Honfi wrote:

I don't know if this works, give it a try!

But what this works with me:

map:match pattern=
map:redirect-to uri=sample/myvalue
/map:match

map.match pattern=sample/*
map:generate src=docs/sample.xml/
map:transform src=stylesheets/{1}.xsl/
map:serialize/
/map:match

Yes, I'm use this method :))

Thanx for quick reply.
Yury.




-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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




Re: Encoding non-english characters in XSP (C2.0.2)

2002-03-28 Thread yuryx

Vadim Gritsenko wrote:

Ok, I see, you have got national characters in the Java file (I do not have them, may 
be because of different locale).

Next step for you would be:
1. Switch back to Javac (pizza does not support Java file encoding option)
2. Make sure Javac gets -encoding KOI8-R command line option

and everything should be ok.

Vadim

Hi Vadim!
I switched compiller to Javac and this solve all problems :)

Thanx for you help
Yury.



-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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




Problem with JSP in mounted sitemap

2002-03-28 Thread yuryx




Hi all!

Now I have the following problem :)

When I declare jsp generator in matcher within mounted sitemap I have error
about:

type Status report
message /usr/local/jakarta/catalina-4.0.4/webapps/cocoon/mobicom-info/omc/sample.jsp
description The requested resource (/usr/local/jakarta/catalina-4.0.4/webapps/cocoon/mobicom-info/omc/sample.jsp)
is not available.

in šmounted sitemap.xmap šI šdeclare šfollowing:

ššš map:components
ššš ššš map:generators default="file"/
ššš ššš map:transformers default="xslt"/
ššš ššš map:readers default="resource"/
ššš ššš map:serializers default="html"/
ššš ššš map:selectors default="browser"/
ššš ššš map:matchers default="wildcard"/

ššš /map:components
ššš !-- === Pipelines =
--
ššš map:pipelines
ššš ššš map:pipeline

š map:match pattern="sample"
 map:generate type="jsp" src="sample.jsp"/
 map:serialize type="xml"/
š /map:match
ššš ššš /map:pipeline
ššš /map:pipelines
/map:sitemap
!-- end of file --

I use Cocoon 2.0.2 and Tomcat 4.0.4 now.
This don't work šin šCocoon š2.0.1 and Tomcat 4.0.1 also...

Can anyone help me by problem?

Thanx.
Yury.
š




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

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



Re: [SOLVED] RE: Problem with JSP in mounted sitemap

2002-03-28 Thread yuryx

Piroumian, Konstantin wrote:

Good evening!

It seems that I've solved the problem with JSPs. Patch will be available in
CVS tomorrow.

Regards,
Konstantin Piroumian
[EMAIL PROTECTED] 

Thanx by good news, but where I had download this patch?
Please, I need this :)

Thanx.
Yury.



-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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




Encoding non-english characters in XSP (C2.0.2)

2002-03-27 Thread yuryx

Hello all

I have the  following problem:
After updating cocoon from version 2.0.1 to 2.0.2
non-english characters are not normally decoded on page , generated by XSP .
In XSP page I use following encode declaration:
?xml version=1.0 encoding=KOI8-R?

If I use static XML file and XSL transformation,
output page is fine.

Where am I wrong?

Thanx.
Yury.




-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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




Encoding non-english characters in XSP (C2.0.2)

2002-03-27 Thread yuryx



Hello all

I have the  following problem:
After updating cocoon from version 2.0.1 to 2.0.2
non-english characters are not normally decoded on page , generated by XSP .
In XSP page I use following encode declaration:


If I use static XML file and XSL transformation,
output page is fine.

Where am I wrong?

Thanx.
Yury.






-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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




Re: Encoding non-english characters in XSP (C2.0.2)

2002-03-27 Thread yuryx





  I fail to see difference. In both cases, in Cocoon 2.0.1 and in Cocoon2.0.2, XSP page with KOI8-R encoding, produces following Java code:this.characters("\n??\n  ");


yes, in sample_xsp.java:

 this.characters("\n ");
 

 this.contentHandler.startElement(
 "",
 "h4",
 "h4",
 xspAttr
 );
 xspAttr.clear();

 
 this.characters(" from XSP");
 

 this.contentHandler.endElement(
 "",
 "h4",
 "h4"
 );

 
 this.characters("\n ");
sample.xsp:
?xml version="1.0" encoding="KOI8-R"?

xsp:page
 language="java"
 xmlns:xsp="http://apache.org/xsp" 


page
titletitle/title

content
 h4 from XSP/h4
/content

/page
/xsp:page

..and
sample.xsl:
?xml version="1.0" encoding="KOI8-R"?

xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"


 xsl:template match="page"
 html
 head
 title
 xsl:value-of select="title"/
 /title
 /head
 body bgcolor="white" alink="red" link="blue" vlink="blue"
 h4 from XSL/h4
 xsl:apply-templates/
 /body
 /html
 /xsl:template
 xsl:template match="@*|node()" priority="-2"xsl:copyxsl:apply-templates
select="@*|node()"//xsl:copy/xsl:template
 xsl:template match="text()" priority="-1"xsl:value-of select="."//xsl:template

/xsl:stylesheet

in sitemap.xmap:
 map:serializer logger="sitemap.serializer.html" mime-type="text/html"
name="html" pool-grow="4" pool-max="32" pool-min="4" src="org.apache.cocoon.serialization.HTMLSerializer"
 buffer-size1024/buffer-size
 encodingKOI8-R/encoding
 /map:serializer

 map:match pattern="sample"
 map:generate type="serverpages" src="sample.xsp"/
 map:transform src="stylesheets/sample.xsl"/
 map:serialize/
 /map:match

But in output page :
 from XSL
 
 from XSP
And I don't understand this ...
:((

Sorry by repeat the  question

Thanx.
Yury.


  Check that you do not have any other changes in your environment. Forme, both versions of Cocoon produce bunch of question marks when tryingto use KOI8-R encoding.Vadim
  

  






-
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: I want to know how to make cocoon save the generated html file?

2002-03-20 Thread yuryx

Íõºì±¦ wrote:

Dear All:

  I want to know how to make cocoon save the generated html file? Anyone
knows? Thank you!

   Bob Wang


-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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

Try serialize your page to file

Regards.
Yury.




-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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




Re: How to put user data into SunspotDemoPortal-session at logontime

2002-03-19 Thread yuryx

Sorry by question, but what is sunRise-auth action ?
Where this action deploy?

Yury.
 

Carsten Ziegeler wrote:

Hi Peter,

all your pipelines are wrapped (secured) by the sunRise-auth action
with the handler and the application parameter, for example the
sunLets:

  map:match pattern=sunspotdemo**
   map:act type=sunRise-auth
   map:parameter name=handler value=sunspotdemohandler/ 
   map:parameter name=application value=sunspotdemo/ 
   
   map:match pattern=sunspotdemosunlet-*.xml 
   map:generate 
src=sunspotdemo/resources/auth/sunlet-{1}.xml/
   map:serialize type=xml/
   /map:match
/map:act
  /map:match

The sunRise-auth action provides several key/value pairs that can be used
inside the sitemap like the ID of the current user, the role etc.
So your example could look like this:

   map:act type=sunRise-auth
   map:parameter name=handler value=sunspotdemohandler/ 
   map:parameter name=application value=sunspotdemo/ 

  map:generate src=application.xml
  map:parameter name=user_id value={ID}/
   /map:generate
   

HTH

Carsten

-Original Message-
From: Baer Peter [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 19, 2002 1:40 PM
To: cocoon-users
Subject: Re: RE: How to put user data into SunspotDemoPortal-session at
logon time


Thanks for the reply. It works. We can get the parameter out of the 
session now.

However, what we actually need is a single value which we can pass as a 
parameter to the following generator or transformer.

map:generate src=application.xml
  map:parameter name=user_id value={session/user/name}/
/map:generate

Thus we could generate user-specific menus at runtime. Eg, the options 
in drop-down menu could depend on the region the user belongs to.

Merging the session XML and the application XML is not appropriate for 
us, as we don't want to have them transformed before the XSP statements 
in the resulting XML are evaluated.

Any clues?

Thanks in advance!

  -pb-




 Everything is already in the session, stored in a so called 
 SessionContext
 named sunRise.
 
 The authentication document defined for the portal which actually
 does the login of a user delivers these information to sunRise which
 then stores them into the session. These information are usually
 the user ID, the first name, the last name etc.
 
 By adopting this resource, you can store more infos in the session.
 
 You can get them in an XML processing pipeline by using the sunShine
 transformer. So you can write an XML file, like this:
 
 doc xmlns:sunshine=http://cocoon.apache.org/sunshine/1.0;;
 sunshine:getxml context=sunRise path=//
 /doc
 
 If you now build a sunLet reading this XML document and using the 
 sunShine
 transformer, you will get all information stored in the session about
 the current user.
 
 As the info is stored as an XML tree in the session by varying the
 path attribute of getxml you can get one specific info, like:
sunshine:getxml context=sunRise path=/authentication/ID/
 
 HTH
 Carsten



 
  Peter Baer wrote:
   We need the user name and some user specific information in the 
 actual
  SunspotDemoPortal session.
  Our question is because the default session attributes (and their
  values) aren't particularly speeky.
   How can we trigger the portal to add the user name and other 
 specific
  information (like boolean flags) into the session?
  Or are there already some user informations in the session, inserted 
 by
  the portal?
   And if so, how are they named / how can we get them out?
 




-- 
+---+-+
|mailto:[EMAIL PROTECTED]   |
+-+


-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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. http://xml.apache.org/cocoon/faqs.html

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. http://xml.apache.org/cocoon/faqs.html

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




Re: SESSION PROBLEMS

2002-03-18 Thread yuryx

Stefano Bonnin wrote:

Hi,

I'm trying to convert an old C1 application in C2, but I found a lot of
problems. All session (request/response) management has changed.

For example:

with C1 I wrote:

xsp:logic
if ((session.isNew()) and (myVariable == myValue)) {

.
.
response.sendRedirect(response.encodeURL(My URL));

}
/xsp:logic

Now, with C2, how can I do this?
I tried with this but without success:
xsp:logic
if ((session:is-new/) and (myVariable == myValue)) {

.
.
response.sendRedirect(response.encodeURL(My URL));
}
/xsp:logic

Line 149, column 33: Method sendRedirect(java.lang.String) not found in
interface org.apache.cocoon.environment.Response


and, , another problem:

if I write

xsp:logic
if ((session.isNew()) and (myVariable == myValue)) {

.
.
.
}
/xsp:logic

Cocoon return me: Line 121, column 8: Undefined variable or class name:
session

why? In the Cocoon examples I read a document like this (whith session
object used instead of xsp tags)


Please, help me!


---
Outgoing mail is certified Virus Free. (FLASHH!)
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.338 / Virus Database: 189 - Release Date: 14/03/02


-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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

Try for use that  xsp-session:is-new/ :)

Regards.
Yury.



-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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




Re: Apache and mod_jk (could not get mod_webapp working)

2002-03-13 Thread yuryx

For configure mod_webapp read :
http://www.galatea.com/flashguides/apache-tomcat-4-unix.xml

Regards.
Yury.

Frank Ridderbusch wrote:

Hi folks,

I like to share a couple of experiences, which I learned the hard way
and I learned them, while trying to get Cocoon working through Apache.
They might have been obvious to someone else, but anyway.

First I tried mod_webapp. I configured it like this

 IfModule mod_webapp.c
 Include /etc/httpd/mod_webapp.conf
 /IfModule

while mod_webapp.conf contained the actual directives. The result was,
that it didn't work. Looking at /server-info I saw this:

 Module Name: mod_webapp.c
 Content handlers: webapp-handler
 Configuration Phase Participation: Child Init, Child Exit
 Request Phase Participation: Translate Path
 Module Directives:
 WebAppInfo - 
 WebAppConnection - [optional parameter] 
 WebAppDeploy - 
 Current Configuration: 

No configuration visible. I think here is an issue with the include
mechanism. Then I configured it like this:

 IfModule mod_webapp.c
 WebAppConnection conn  warp  localhost:8008
 WebAppDeploy examples  conn  /examples
 WebAppDeploy cocoonconn  /cocoon
 WebAppDeploy scarabconn  /scarab

 WebAppInfo /webapp-info
 /IfModule

This showed the correct configuration in /server-info, but when I tried
/cocoon/welcome, after some period of burning cpu cycles, I received an
error message about some internal error (I used cocoon CVS shnapshot
from Tuesday). So, this didn't work. Perhaps someone else has other
experiences.

Then I moved to mod_jk. I had used mod_jk with tomcat 3.2 and cocoon
1.8.x. So, I had a configuration left apart from having moved on to
tomcat 4.0.1. 

First lesson learned:

  You need a workers.properties file for mod_jk. However tomcat 4.0 does
  not include one. First I though: Ah, simply set this to /dev/null,
  it's  not needed, but this didn't work. mod_jk needs the
  workers.properties to configure the ajp ports correctly. Using one
  from tomcat 3.2 made it work.

Second lesson learned:

  Remove an Alias for cocoon, if you have one left in your httpd.conf.
  My previous configuration from cocoon 1.8.x  contained a line like

Alias /cocoon /usr/local/httpd/tomcat/webapps/cocoon

  Selecting /cocoon/hello.html from the cocoon welcome page would
  produce a 404 error, since apache tries to satisfy this request,
  instead of passing it to tomcat.

Hope, this helps someone else.





-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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




Re: Apache and mod_jk (could not get mod_webapp working)

2002-03-13 Thread yuryx

Or try read (about mod_jk) :
http://www.ubeans.com/tomcat/index.html

Regards.
Yury.


Frank Ridderbusch wrote:

Hi folks,

I like to share a couple of experiences, which I learned the hard way
and I learned them, while trying to get Cocoon working through Apache.
They might have been obvious to someone else, but anyway.

First I tried mod_webapp. I configured it like this

 IfModule mod_webapp.c
 Include /etc/httpd/mod_webapp.conf
 /IfModule

while mod_webapp.conf contained the actual directives. The result was,
that it didn't work. Looking at /server-info I saw this:

 Module Name: mod_webapp.c
 Content handlers: webapp-handler
 Configuration Phase Participation: Child Init, Child Exit
 Request Phase Participation: Translate Path
 Module Directives:
 WebAppInfo - 
 WebAppConnection - [optional parameter] 
 WebAppDeploy - 
 Current Configuration: 

No configuration visible. I think here is an issue with the include
mechanism. Then I configured it like this:

 IfModule mod_webapp.c
 WebAppConnection conn  warp  localhost:8008
 WebAppDeploy examples  conn  /examples
 WebAppDeploy cocoonconn  /cocoon
 WebAppDeploy scarabconn  /scarab

 WebAppInfo /webapp-info
 /IfModule

This showed the correct configuration in /server-info, but when I tried
/cocoon/welcome, after some period of burning cpu cycles, I received an
error message about some internal error (I used cocoon CVS shnapshot
from Tuesday). So, this didn't work. Perhaps someone else has other
experiences.

Then I moved to mod_jk. I had used mod_jk with tomcat 3.2 and cocoon
1.8.x. So, I had a configuration left apart from having moved on to
tomcat 4.0.1. 

First lesson learned:

  You need a workers.properties file for mod_jk. However tomcat 4.0 does
  not include one. First I though: Ah, simply set this to /dev/null,
  it's  not needed, but this didn't work. mod_jk needs the
  workers.properties to configure the ajp ports correctly. Using one
  from tomcat 3.2 made it work.

Second lesson learned:

  Remove an Alias for cocoon, if you have one left in your httpd.conf.
  My previous configuration from cocoon 1.8.x  contained a line like

Alias /cocoon /usr/local/httpd/tomcat/webapps/cocoon

  Selecting /cocoon/hello.html from the cocoon welcome page would
  produce a 404 error, since apache tries to satisfy this request,
  instead of passing it to tomcat.

Hope, this helps someone else.





-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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




Re: Problem with encoding non-english request parameters

2002-03-12 Thread yuryx

Piroumian, Konstantin wrote:

Piroumian, Konstantin wrote:

On Mon, 11 Mar 2002 18:32:26 +0300
yuryx [EMAIL PROTECTED] wrote:

Vadim Gritsenko wrote:

RTFM
http://xml.apache.org/cocoon/userdocs/xsp/request.html:
8
8

Vadim

Thanx for you help, Vadim, but I need have ,for additional, method for
JSP also...
And manual request-value charset encoding work as with XSP and with JSP
:)

I use SetCharacterEncodingFilter distributed with tomcat. in my web.xml
it looks like:

--- cut ---

 filter
   filter-nameSet Character Encoding/filter-name
   filter-classfilters.SetCharacterEncodingFilter/filter-class
   init-param
 param-nameencoding/param-name
 param-valueISO-8859-2/param-value
   /init-param
 /filter

 filter-mapping
   filter-nameSet Character Encoding/filter-name
   url-pattern/*/url-pattern
 /filter-mapping

--- cut ---

Is there a better way in cocoon+tomcat to change character encoding
globaly?

You can setup your serializer this way:

  map:serializer name=html   mime-type=text/html
src=org.apache.cocoon.serialization.HTMLSerializer
encodingiso8859-2/encoding
  /map:serializer

You can have serializers with different encodings in one sitemap.

Regards,
   Konstantin Piroumian

--
Kazimierz Pogoda
mailto:[EMAIL PROTECTED]

Is serializer serialized request also? (this stupid question may be...)


Do you need to set encoding on the coming request? This can be done with an
action.

Yes, in action or use form-encoding attribute (in XSP page with use 
xsp-request: logicsheet),or use manual encoding
like : String req=new 
String(request.getParameter(param1).getBytes(default-charset),needing-charset); 
in some servlet pages.
:)
But I can change request charset in client side only?
Can I do sets request parameters like request.setCharacterEncoding()

^-in Tomcat
But It impossible in Tomcat :( (may be :) )
Yury.


Yury.




-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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. http://xml.apache.org/cocoon/faqs.html

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. http://xml.apache.org/cocoon/faqs.html

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




Re: Problem with encoding non-english request parameters-thanx

2002-03-12 Thread yuryx




I don't quite understand what do you mean.
Yes, you can change your request character set:

quot src=servlet 2.3 Specification
setCharacterEncoding(String)
public void setCharacterEncoding(java.lang.String env)
throws UnsupportedEncodingException

Overrides the name of the character encoding used in the body of this
request. This method must be called prior to reading request parameters
or
reading input using getReader().
Parameters:
a - String containing the name of the chararacter encoding.
Throws:
java.io.UnsupportedEncodingException - if this is not a valid
encoding
/quot

This should work in any Servlet 2.3 compliant server (e.g. Tomcat 4.x).

Regards,
Konstantin Piroumian

Sorry, I used too old  http://java.sun.com/products/servlet/2.2/javadoc/ 
 Specification...
And I don't find this features.

Thanx for the complete answer.

Yury.




-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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




Re: Problem with encoding non-english request parameters

2002-03-11 Thread yuryx

Thanx for all!

For solved this problem just use:
String par=new 
String(request.getParameter(text1).getBytes(ISO-8859-1),KOI8-R);

Regards.
Yury.


yuryx wrote:

 Hi all!

 I had the following problem:
 In my cocoon's page I had invalid encoding my non-english characters 
 from request.

 with example:

 simple.xsp

 ?xml version=1.0 encoding=KOI8-R?


 xsp:page language=java
  xmlns:xsp=http://apache.org/xsp;
 

  page

titlesimple/title

content
form name=f1 method=get
 xsp:logic
String par=request.getParameter(text1);
 /xsp:logic
 h4xsp:exprpar/xsp:expr/h4
 input name=text1 type=text/
 input name=button1 type=submit/
/form
/content

  /page
 /xsp:page

 simple2html.xsl:

 ?xml version=1.0?

 xsl:stylesheet version=1.0   
 xmlns:xsl=http://www.w3.org/1999/XSL/Transform;
xmlns:xsp-request=http://apache.org/xsp/request/2.0;

  xsl:template match=page
   html
head
 title
  xsl:value-of select=title/
 /title
/head
body bgcolor=white alink=red link=blue vlink=blue
xsl:apply-templates/

/body
   /html
  /xsl:template

xsl:template match=@*|node() 
 priority=-2xsl:copyxsl:apply-templates 
 select=@*|node()//xsl:copy/xsl:template
  xsl:template match=text() priority=-1xsl:value-of 
 select=.//xsl:template

 /xsl:stylesheet

 sitemap.xmap section:

   map:match pattern=test/*
map:generate type=serverpages src=work/test/{1}.xsp/
map:transform src=work/test/simple2html.xsl/
 map:serialize type=html/
   /map:match

 work result:

 html xmlns:xsp-request=http://apache.org/xsp/request/2.0;
 head
 meta http-equiv=Content-Type content=text/html; charset=KOI8-R
 titlesimple/title
 /head
 body vlink=blue link=blue alink=red bgcolor=white

title xmlns:xsp=http://apache.org/xsp;simple/title

content xmlns:xsp=http://apache.org/xsp;
 
 form name=f1 method=get
   h4times;Aacute;times;/h4
  input name=text1 type=text
  input name=button1 type=submit
 
 /form
/content

  
 /body
 /html

 Can anyone help me?

 Thanx.
 Yury.





 -
 Please check that your question has not already been answered in the
 FAQ before posting. http://xml.apache.org/cocoon/faqs.html

 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. http://xml.apache.org/cocoon/faqs.html

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




Re: Problem with encoding non-english request parameters

2002-03-11 Thread yuryx

Vadim Gritsenko wrote:

RTFM 
http://xml.apache.org/cocoon/userdocs/xsp/request.html:
8
xsp-request:get-parameter

Gets the value of the named request parameter. This is a value from the
request string (e.g., ?fruit=apple) or from POSTed form data. If the
parameter has more than one value, (e.g, ?fruit=applefruit=orange),
then this gets the first value. See xsp-request:get-parameter-values.
Possible attributes: form-encoding (depends on the encoding of the page
which sends the form data) and container-encoding (default per servlet
spec: ISO-8859-1 but if your servlet container uses another one you can
adjust)  
8

Vadim

Thanx for you help, Vadim, but I need have ,for additional, method for 
JSP also...
And manual request-value charset encoding work as with XSP and with JSP :)


Regards.
Yury.



-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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




Re: Problem with encoding non-english request parameters

2002-03-11 Thread yuryx

Piroumian, Konstantin wrote:

On Mon, 11 Mar 2002 18:32:26 +0300
yuryx [EMAIL PROTECTED] wrote:

Vadim Gritsenko wrote:

RTFM
http://xml.apache.org/cocoon/userdocs/xsp/request.html:
8
8

Vadim

Thanx for you help, Vadim, but I need have ,for additional, method for
JSP also...
And manual request-value charset encoding work as with XSP and with JSP
:)

I use SetCharacterEncodingFilter distributed with tomcat. in my web.xml
it looks like:

--- cut ---

  filter
filter-nameSet Character Encoding/filter-name
filter-classfilters.SetCharacterEncodingFilter/filter-class
init-param
  param-nameencoding/param-name
  param-valueISO-8859-2/param-value
/init-param
  /filter

  filter-mapping
filter-nameSet Character Encoding/filter-name
url-pattern/*/url-pattern
  /filter-mapping

--- cut ---

Is there a better way in cocoon+tomcat to change character encoding
globaly?


You can setup your serializer this way:

   map:serializer name=html   mime-type=text/html
src=org.apache.cocoon.serialization.HTMLSerializer
 encodingiso8859-2/encoding
   /map:serializer

You can have serializers with different encodings in one sitemap.

Regards,
Konstantin Piroumian

--
Kazimierz Pogoda
mailto:[EMAIL PROTECTED]

-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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. http://xml.apache.org/cocoon/faqs.html

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

Is serializer serialized request also? (this stupid question may be...)

Yury.




-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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




Problem with encoding non-english request parameters

2002-03-10 Thread yuryx

Hi all!

I had the following problem:
In my cocoon's page I had invalid encoding my non-english characters 
from request.

with example:

simple.xsp

?xml version=1.0 encoding=KOI8-R?


xsp:page language=java
  xmlns:xsp=http://apache.org/xsp;
 

  page

titlesimple/title

content
form name=f1 method=get
 xsp:logic
String par=request.getParameter(text1);
 /xsp:logic
 h4xsp:exprpar/xsp:expr/h4
 input name=text1 type=text/
 input name=button1 type=submit/
/form
/content

  /page
/xsp:page
 
simple2html.xsl:

?xml version=1.0?

xsl:stylesheet version=1.0
xmlns:xsl=http://www.w3.org/1999/XSL/Transform;
xmlns:xsp-request=http://apache.org/xsp/request/2.0;

  xsl:template match=page
   html
head
 title
  xsl:value-of select=title/
 /title
/head
body bgcolor=white alink=red link=blue vlink=blue
xsl:apply-templates/

/body
   /html
  /xsl:template

   
  xsl:template match=@*|node() 
priority=-2xsl:copyxsl:apply-templates 
select=@*|node()//xsl:copy/xsl:template
  xsl:template match=text() priority=-1xsl:value-of 
select=.//xsl:template

/xsl:stylesheet

sitemap.xmap section:

   map:match pattern=test/*
map:generate type=serverpages src=work/test/{1}.xsp/
map:transform src=work/test/simple2html.xsl/
 map:serialize type=html/
   /map:match

work result:

html xmlns:xsp-request=http://apache.org/xsp/request/2.0;
head
meta http-equiv=Content-Type content=text/html; charset=KOI8-R
titlesimple/title
/head
body vlink=blue link=blue alink=red bgcolor=white


title xmlns:xsp=http://apache.org/xsp;simple/title


content xmlns:xsp=http://apache.org/xsp;

form name=f1 method=get
 
 
h4times;Aacute;times;/h4
 
input name=text1 type=text
 input name=button1 type=submit

/form

/content

  
/body
/html

Can anyone help me?

Thanx.
Yury.





-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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




Re: howto get rid of long url without Apache web server?

2002-03-07 Thread yuryx

marco wrote:

I have installed Tomcat 4.0.1, cocoon 2.0.0, jdk1.3.1_01 (no Apache web
server) in Windows 98.

How can I access my web site by url http://www.mysite.com/index.html;
instead of http://www.mysite.com:8080/cocoon/myproject/index.html; ?

-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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

HI marco
You just install mod_webapp or mod_proxy and configure apache and
Tomcat. It's very easy ;)

Before, try read manuals like:
http://www.mysite.com:8080/tomcat-docs/proxy-howto.html :))

Regards.
Yury.




-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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




Re: Problem with XSP and assigning xsp-request:get-uri/

2002-03-07 Thread yuryx

Andrew Savory wrote:

Hi,

Can someone spot my deliberate mistake here? It's driving me up the wall
trying to find out why Cocoon doesn't like the following:

xsp:page language=java
  xmlns:xsp=http://apache.org/xsp;
  xmlns:xsp-request=http://apache.org/xsp/request/2.0;

  xsp:logic
String uri = null;
uri = xsp-request:get-uri/;
  /xsp:logic
/xsp:page

Help!


Andrew.

You can use like: uri=request.getRequestURI();

Regards.
Yury.




-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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




Re: PERSONAL JAVA CLASSES

2002-03-07 Thread yuryx

Istvan Beszteri wrote:

.../cocoon/WEB-INF/classes/
works for me,
but you can check the WEB-INF/web.xml, how to define extra calsspaths.
Br,
   Istvan

On Thursday 07 March 2002 13:41, you wrote:

Hi,

Where must I put my personal Java classes in Cocoon 2? (which directory?)

Thanks


---
Outgoing mail is certified Virus Free. (CopyRight FLASHH!)
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.330 / Virus Database: 184 - Release Date: 28/02/02


-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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. http://xml.apache.org/cocoon/faqs.html

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

Or .../cocoon/WEB-INF/lib (for compiled classes) and don't check 
WEB-INF/web.xml :)

Regards.
Yury.




-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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




Re: my svg does not work in cocoon 2.0.1

2002-03-06 Thread yuryx

marco wrote:

I have added namespace to the svg tag like thissvg:svg width=200
height=15 xmlns:svg=http://www.w3.org/2000/svg;, but it dose not help
even if I restarted the tomcat.

Please help :(

Try cocoon/welcome-svg example. Is it work then see error in you code...
Check with cocoon example and you code.
If cocoon/welcome-svg example don't work then (may be) Batik lib (try 
re-install cocoon) or sitemap.xmap (check sitemap configuration)
not valid

Regards.
Yury.




-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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




Re: my svg does not work in cocoon 2.0.1

2002-03-06 Thread yuryx

This is the valid style (work in my machine):

page2svg.xsl

?xml version=1.0?

xsl:stylesheet version=1.0
xmlns:xsl=http://www.w3.org/1999/XSL/Transform;
xmlns:xlink=http://www.w3.org/1999/xlink; 

 xsl:template match=page
html
head
titlexsl:value-of select=title//title
/head
body   
 xsl:apply-templates/
/body
/html
 /xsl:template

 xsl:template name=input-filter-text
xsl:param name=txt/
xsl:param name=size/
  svg:text fill=red  font-family=TrebuchetMS-Bold  x=10 y=13 
xmlns:svg=http://www.w3.org/2000/svg;
xsl:attribute name=font-sizexsl:value-of 
select=$size//xsl:attribute   
xsl:value-of select=$txt/
  /svg:text
 /xsl:template


 xsl:template name=input-text
xsl:param name=txt/
xsl:param name=size/
xsl:param name=color/
xsl:param name=x/   
xsl:param name=y/
  svg:text  font-family=TrebuchetMS-Bold 
xmlns:svg=http://www.w3.org/2000/svg;
xsl:attribute name=xxsl:value-of select=$x//xsl:attribute   
xsl:attribute name=yxsl:value-of select=$y//xsl:attribute
xsl:attribute name=font-sizexsl:value-of 
select=$size//xsl:attribute   
xsl:attribute name=fillxsl:value-of 
select=$color//xsl:attribute   
xsl:value-of select=$txt/
  /svg:text
 /xsl:template
 
 xsl:template name=input-line
xsl:param name=x1/
xsl:param name=x2/
xsl:param name=y1/   
xsl:param name=y2/
xsl:param name=color/
xsl:param name=width/
svg:g xmlns:svg=http://www.w3.org/2000/svg;
xsl:attribute name=strokexsl:value-of 
select=$color//xsl:attribute
xsl:attribute name=stroke-widthxsl:value-of 
select=$width//xsl:attribute   
svg:line
xsl:attribute name=x1xsl:value-of 
select=$x1//xsl:attribute   
xsl:attribute name=y1xsl:value-of 
select=$y1//xsl:attribute   
xsl:attribute name=x2xsl:value-of 
select=$x2//xsl:attribute   
xsl:attribute name=y2xsl:value-of 
select=$y2//xsl:attribute   
/svg:line
   /svg:g
 /xsl:template

 xsl:template name=input-poly
xsl:param name=points/
xsl:param name=color/
svg:polyline fill=none  stroke-width=1px 
xmlns:svg=http://www.w3.org/2000/svg;
xsl:attribute name=strokexsl:value-of 
select=$color//xsl:attribute   
xsl:attribute name=pointsxsl:value-of 
select=$points//xsl:attribute   
/svg:polyline
 /xsl:template


 xsl:template name=input-rect
xsl:param name=width/
xsl:param name=fill/
xsl:param name=height/
svg:rect x=0 y=0 stroke=green stroke-width=1px 
xmlns:svg=http://www.w3.org/2000/svg;
xsl:attribute name=fillxsl:value-of 
select=$fill//xsl:attribute   
xsl:attribute name=widthxsl:value-of 
select=$width//xsl:attribute
xsl:attribute name=heightxsl:value-of 
select=$height//xsl:attribute
/svg:rect
 /xsl:template



 xsl:template match=graph
  svg:svg xmlns:svg=http://www.w3.org/2000/svg;
   xsl:attribute name=widthxsl:value-of 
select=svg-width//xsl:attribute
   xsl:attribute name=heightxsl:value-of 
select=svg-height//xsl:attribute
   svg:defs
svg:filter id=blur1svg:feGaussianBlur 
stdDeviation=3//svg:filter
svg:filter id=blur2svg:feGaussianBlur 
stdDeviation=1//svg:filter
   /svg:defs
 xsl:apply-templates select=transform|ln|lnp|para|txt|ttxt|rect/
  /svg:svg
 /xsl:template

 xsl:template match=transform
svg:g xmlns:svg=http://www.w3.org/2000/svg;
xsl:attribute name=transformxsl:value-of 
select=value//xsl:attribute
xsl:apply-templates select=transform|ln|lnp|para|txt|ttxt|rect/
/svg:g
 /xsl:template


 xsl:template match=rect
 xsl:call-template name=input-rect
 xsl:with-param name=fillxsl:value-of 
select=color//xsl:with-param
 xsl:with-param name=widthxsl:value-of 
select=width//xsl:with-param
 xsl:with-param name=heightxsl:value-of 
select=height//xsl:with-param
 /xsl:call-template

 /xsl:template

 
 xsl:template match=para
 xsl:call-template name=input-filter-text
 xsl:with-param name=txtxsl:value-of 
select=bod//xsl:with-param
 xsl:with-param name=sizexsl:value-of 
select=size//xsl:with-param 
 /xsl:call-template
 /xsl:template

 xsl:template match=txt
 xsl:call-template name=input-text
 xsl:with-param name=txtxsl:value-of 
select=bod//xsl:with-param
 xsl:with-param name=size10/xsl:with-param
 xsl:with-param name=colorblack/xsl:with-param
 xsl:with-param name=xxsl:value-of 
select=x//xsl:with-param   
 xsl:with-param name=yxsl:value-of select=y//xsl:with-param  

 /xsl:call-template
 /xsl:template

 xsl:template match=ttxt
 xsl:call-template name=input-text
 xsl:with-param name=txtxsl:value-of 
select=bod//xsl:with-param
 xsl:with-param name=sizexsl:value-of 
select=size//xsl:with-param
 xsl:with-param name=colorblack/xsl:with-param
 xsl:with-param name=xxsl:value-of 
select=x//xsl:with-param   
 xsl:with-param name=yxsl:value-of select=y//xsl:with-param  

 

Re: Saving/Retrieving Session or Request parameters in sitemap

2002-03-06 Thread yuryx

Robin Wyles wrote:

Hi All...

I am new to Cocoon 2 and am currently prototyping a login/authentication
routine. I am using SessionIsValidAction to check if the user is logged in,
and if this fails they are redirected to the login page, the
DatabaseAuthenticatorAction is then used to check the user's submitted login
details against values stored in a database. This all works great.

Now I would like to be able to save the original request URI before the
SessionIsValidAction is called so I can then re-direct the user to when the
DatabaseAuthenticatorAction is successful. Here are the pipeline fragments
that control this:

!-- Check if user is logged in --
   map:match pattern=app/*.xml*
   map:act type=session-isvalid
   !-- user is logged in --
   map:generate type=file src=app/{../1}.xml /
   map:transform src=app/default.xsl /
   map:serialize /
   /map:act
   !-- use is not logged in - redirect to login --
   map:generate type=file src=app/login.xml /
   map:transform src=app/default.xsl /
   map:serialize /
   /map:match

!-- Do login --
   map:match pattern=app/sign-in*
   map:act set=checkUser
   map:parameter name=descriptor
value=app/users_descriptor.xml /
   !-- Re-direct to original requestURI here --
   /map:act
   !-- User cannot be authenticated - back to login --
   map:generate type=file src=app/login.xml /
   map:transform src=app/default.xsl /
   map:serialize /
   /map:match

Can I do this using the default set of actions that come with Cocoon 2? I
know that I can set a session attribute using the sessionPropagatorAction,
but how do I read it again? I also know I can read a request parameter using
the RequestParamAction but how do I set a request parameter?

I would like to do this within the sitemap rather than resorting to XSP if
possible.

Thanks in advance,

Robin Wyles 


-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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


see http://java.sun.com/products/servlet/2.2/javadoc/ and 
http://xml.apache.org/cocoon/apidocs/index.html

Regards.
Yury.




-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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




Re: Help Please

2002-03-06 Thread yuryx

Mariano wrote:

hi. i finally got the cocoon.war . I have replaced all the files tutorials
says but when i try http://myhost/cocoon i got 404..
whta it could be? i have apahe and tomcat running
thsnk in advance
mariano


_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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

If you don't configure apache for create Tomcat link (uses mod_webapp) ,
then just  to use http://myhost:8080/cocoon
^--
(8080 is the default Tomcat port)

Regards.
Yury.





-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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




Re: my svg does not work in cocoon 2.0.1

2002-03-05 Thread yuryx

Andrew Savory wrote:

On Tue, 5 Mar 2002, marco wrote:

I was using cocoon 2.0.0, tomcat 4.0.1, jdk1.3.1_01 in Windows 98, the
svg2png serializer works fine, but the svg graphics becomes blank after I
upgraded the cocoon to 2.0.1.


Hi marco,

I had a similar problem. Check your namespaces are specifically declared
in the SVG xml. Also, are there any errors in the logs at all?


Andrew.

In you stylesheet try like next:

 xsl:template match=graph
svg:svg width=200 height=15 xmlns:svg=http://www.w3.org/2000/svg;

^---
svg:g style=stroke: black; stroke-width: 2px;
svg:line x1=5 y1=5 x2=8 y2=5/
svg:line x1=5 y1=5 x2=5 y2=15/
/svg:g
svg:text x=10px y=10px style=font-family:sans; 
font-size:15px; fill: #0086b2; text-anchor:start;
test text
/svg:text
svg:g style=stroke: black; stroke-width: 2px;
svg:line x1=195 y1=5 x2=192 y2=5/
svg:line x1=195 y1=5 x2=195 y2=15/
/svg:g
svg:text x=190px y=10px style=font-family:sans; 
font-size:15px; fill: #0086b2; text-anchor:end;
tes2 text
/svg:text
/svg:svg

 /xsl:template

Regards.
Yury.






-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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




Re: use DefaultConfiguration class (avalon API)

2002-03-04 Thread yuryx

Thanx Vadim!

It work! :)

Regards.
Yury.





-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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




use DefaultConfiguration class (avalon API)

2002-03-03 Thread yuryx

Hi !
Can anyone help me with following:
With my 'cocoon's action' I have to use DefaultConfiguration class. I 
need modify my config file from this class (with use methods 
setAttribute and setValue) -it possible?
But I dont know how to create it (I need examples :( ) with link to my 
config file. :(

Thanx.
Yury.



-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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




Re: use DefaultConfiguration class (avalon API)

2002-03-03 Thread yuryx




Creating configuration object is quite simple. Snippet from
JavascriptProgram.java:
--
config = new DefaultConfiguration(, GeneratorSelector);
child = new DefaultConfiguration(file, );
child.setValue(file.toString());
config.addChild(child);

for (Iterator i = dependecies.iterator(); i.hasNext(); ) {
child = new DefaultConfiguration(dependency, );
child.setValue(i.next().toString());
config.addChild(child);
}
--

Vadim


-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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

Thanx Vadim, but what is the dependecies ? It's may be  something class 
(object)?
And how define path-to-file ? As full path (real path like 
/home/.../config.file) or with cocoon-context path (like 
docs/samples/config.file)?

Yury.




-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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




Re: Problem configure Cocoon2 Oracle8

2002-03-01 Thread yuryx

Hi
You found classes12.jar in $CATALINA_HOME/common/lib?
Maybe you have not oracle driver.
Regards
Yury

Giuseppe De Vincenzi wrote:

Hello,

Why, when i use this configuration, i connect Oracle

web.xml (cocoon)
init-param
param-nameload-class/param-name
param-value
 sun.jdbc.odbc.JdbcOdbcDriver
 /param-value

 Coccon.xconf
 datasources
   jdbc name=test_oracle_pool logger=core.datasources.personnel
 !-- Don't forget the oradb parameter for Oracle!!! --
   pool-controller min=5 max=10 oradb=true/
 dburl jdbc:odbc:PEPPE /dburl
 userdev/user
 passwordgiu/password
 /jdbc
 datasources
:-)
OK
-
bat, if i change in:

param-value
   oracle.jdbc.driver.OracleDriver
  /param-value


 web.xml
init-param
param-nameload-class/param-name
param-value
 oracle.jdbc.driver.OracleDriver
/param-value

 Coccon.xconf
 datasources
   jdbc name=test_oracle_pool logger=core.datasources.personnel
 !-- Don't forget the oradb parameter for Oracle!!! --
  pool-controller min=5 max=10 oradb=true/
 dburljdbc:oracle:thin:@2000server:1521:oras/dburl
 userdev/user
 passwordgiu/password
 /jdbc
 datasources
ERROR.
ERROR.
ERROR.
ERROR.
ERROR.
java.lang.RuntimeException: Could not get the datasource
java.sql.SQLException: You cannot get a Poolable before the pool is
initialized...??

 The database driver is classes12.jar and I am able to connect to the same
 database with same driver with standalone java application.
 Environment is Tomcat 4,  C2( cocoon.war)  windows2000

CATALINA_HOME C:\Programmi\Apache Tomcat 4.0;
CLASSPATH C:\Programmi\Apache Tomcat 4.0\webapps\ROOT;
TEMP %USERPROFILE%\Impostazioni locali\Temp
JAVA_HOME C:\jdk1.3.1\bin;
NUMBER_OF_PROCESSORS 1
OS Windows_NT
Os2LibPath %SystemRoot%\system32\os2\dll;
Path
C:\orant\bin;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\Programmi\
File comuni\Adaptec Shared\System;
PATHEXT .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
PROCESSOR_ARCHITECTURE x86
PROCESSOR_IDENTIFIER x86 Family 6 Model 4 Stepping 2, AuthenticAMD
PROCESSOR_LEVEL 6
PROCESSOR_REVISION 0402
PROMPT $p$g
TEMP %SystemRoot%\TEMP
TMP %SystemRoot%\TEMP
TOMCAT_HOME C:\Programmi\Apache Tomcat 4.0;
windir %SystemRoot%

 Thank you !
Giuseppe.






-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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. http://xml.apache.org/cocoon/faqs.html

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




Re: Problem1 configure Cocoon2 Oracle8

2002-03-01 Thread yuryx

Giuseppe De Vincenzi wrote:

Hello,

1) First Tomcat4(JSP-Cocoon2) end Oracle on machine1 OK

2)Now, i use  this parameters(servername, port ,instance) with JSP ...
[Tomcat 4(JSP) machine1 ]-- [Oracle 2000server]OK
[Tomcat4 (Cocoon2) machine1 ]  !NO! [Oracle 2000server] Could not get the
datasource

Hi
see cocoon/WEB-INF/logs/coreXX.log. If driver or parameters is valid 
then must be present following lines:
DEBUG   (2002-03-01) 13:47.04:566   [core] (Unknown-URI) 
Unknown-thread/LogKitLogger: JdbcConnection object created
You can found error defenition also.
If you founded JdbcConection error then sent me this file.
Regards
Yury



--
Thank  you very much.
Giuseppe.


- Original Message -
From: Luca Morandini [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, March 01, 2002 10:46 AM
Subject: RE: Problem configure Cocoon2 Oracle8


Giuseppe,

you are absolutely sure that:

servername is 2000server
port is 1521
instance name is oras

aren't you ?

By the way, is 2000server the same server Cocoon runs on... or is it a
different machine ?

Best regards,

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


-Original Message-
From: Giuseppe De Vincenzi [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 01, 2002 10:23 AM
To: [EMAIL PROTECTED]
Subject: Problem configure Cocoon2 Oracle8


Hello,

Why, when i use this configuration, i connect Oracle

web.xml (cocoon)
init-param
param-nameload-class/param-name
param-value
 sun.jdbc.odbc.JdbcOdbcDriver
 /param-value

 Coccon.xconf
 datasources
   jdbc name=test_oracle_pool

logger=core.datasources.personnel

 !-- Don't forget the oradb parameter for Oracle!!! --
   pool-controller min=5 max=10 oradb=true/
 dburl jdbc:odbc:PEPPE /dburl
 userdev/user
 passwordgiu/password
 /jdbc
 datasources
:-)
OK
-
bat, if i change in:

param-value
   oracle.jdbc.driver.OracleDriver
  /param-value


 web.xml
init-param
param-nameload-class/param-name
param-value
 oracle.jdbc.driver.OracleDriver
/param-value

 Coccon.xconf
 datasources
   jdbc name=test_oracle_pool

logger=core.datasources.personnel

 !-- Don't forget the oradb parameter for Oracle!!! --
  pool-controller min=5 max=10 oradb=true/
 dburljdbc:oracle:thin:@2000server:1521:oras/dburl
 userdev/user
 passwordgiu/password
 /jdbc
 datasources
ERROR.
ERROR.
ERROR.
ERROR.
ERROR.
java.lang.RuntimeException: Could not get the datasource
java.sql.SQLException: You cannot get a Poolable before the pool is
initialized...??

 The database driver is classes12.jar and I am able to connect to the

same

 database with same driver with standalone java application.
 Environment is Tomcat 4,  C2( cocoon.war)  windows2000

CATALINA_HOME C:\Programmi\Apache Tomcat 4.0;
CLASSPATH C:\Programmi\Apache Tomcat 4.0\webapps\ROOT;
TEMP %USERPROFILE%\Impostazioni locali\Temp
JAVA_HOME C:\jdk1.3.1\bin;
NUMBER_OF_PROCESSORS 1
OS Windows_NT
Os2LibPath %SystemRoot%\system32\os2\dll;
Path
C:\orant\bin;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\
Programmi\
File comuni\Adaptec Shared\System;
PATHEXT .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
PROCESSOR_ARCHITECTURE x86
PROCESSOR_IDENTIFIER x86 Family 6 Model 4 Stepping 2, AuthenticAMD
PROCESSOR_LEVEL 6
PROCESSOR_REVISION 0402
PROMPT $p$g
TEMP %SystemRoot%\TEMP
TMP %SystemRoot%\TEMP
TOMCAT_HOME C:\Programmi\Apache Tomcat 4.0;
windir %SystemRoot%

 Thank you !
Giuseppe.






-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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. http://xml.apache.org/cocoon/faqs.html

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. http://xml.apache.org/cocoon/faqs.html

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





-
Please check that your question has 

Re: cocoons ServletContext

2002-03-01 Thread yuryx


Lai, Harry wrote:

Hi Yury,

Within the act method, you can access the cocoon ServletContext via the
objectModel parameter.  Just use the constants in
org.apache.cocoon.Constants.  For example:

   Context cocoonServContext = (Context)
objectModel.get(Constants.CONTEXT_OBJECT);

Note that this is the Cocoon context wrapper (defined in
org.apache.cocoon.environment) for the actual HTTP Servlet Context.  If you
need the actual HTTP Servlet Context (defined in javax.servlet), you can use
the constants defined in org.apache.cocoon.environment.http.HttpEnvironment.
For example:

   ServletContext servContext = (ServletContext)
objectModel.get(HttpEnvironment.HTTP_SERVLET_CONTEXT);

ServletContext servContext = (ServletContext)
objectModel.get(HttpEnvironment.HTTP_SERVLET_CONTEXT);

HttpEnviroment... Thats Ok with me :)
Thanx Harry!


Hope that helps!

Harry


-Original Message-
From: yuryx [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 01, 2002 10:32 AM
To: [EMAIL PROTECTED]
Subject: cocoons ServletContext


Hi all!

Can anyone help me with the following problem:
How can I get into my cocoon's 'action' a pointer to cocoon ServletContext?
Is it possible? What shall I use in my 'action'?

Thanx.
Yury.



-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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. http://xml.apache.org/cocoon/faqs.html

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. http://xml.apache.org/cocoon/faqs.html

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




Re: cocoons ServletContext

2002-03-01 Thread yuryx



ServletContext servContext = (ServletContext)
objectModel.get(HttpEnvironment.HTTP_SERVLET_CONTEXT);

HttpEnviroment... Thats Ok with me :)


Cocoon's wrapper of environment contains HttpEnvironment if you are running
in a servlet environment. If you run your code in a command line then you
will get null. Cocoon's context wrapper should be used to avoid problems in
different environments.

If you don't need Http specific features then there is no need to use it.

Regards,
Konstantin

Hi Konstantin!
For manipulation cocoon Enviroment attribut's within action (for 
manipulation sitemap params :) ) I need cocoon's ServletContext
(like 'application' object in JSP)
It's specific features?

Yury.



-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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




Re: C2 + SOAP ?

2002-02-28 Thread yuryx

Jerzy Kut wrote:

Can C2 cooperates with SOAP? How?
Is it only pure Java cooperation (own actions or logicsheets) or is there
possible any expolit it from XSP or XML?
Sorry if my question is a little precisious.

Best regards

Jerzy Kut



-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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

See Xscript and SOAP examples...

Regards
Yury.



-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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




Re: Help connect Cocoon2 to Oracle8

2002-02-27 Thread yuryx

Giuseppe De Vincenzi wrote:

 I am not able to connect to Oracle8i database.Exception
 states that could not connect to datasource  you cannot get a poolable
 before the pool is initialized.

 type internal-server-error

 message Error in sitemap configuration : Could not set up Component for
 hint: add-employee

 description org.apache.avalon.framework.configuration.ConfigurationExcept=
 ion:
 Error in sitemap configuration : Could not set up Component for hint: add=
 -employee

 sender org.apache.cocoon.servlet.CocoonServlet

 source Cocoon servlet

 request-uri

 /cocoon/visualizza/prova

 exception

 org.apache.avalon.framework.configuration.ConfigurationException: Error
 in sitemap configuration : Could not set up Component for hint: add-emplo=
 yee

 path-info

 visualizza/prova

 stacktrace

 org.apache.avalon.framework.configuration.ConfigurationException: Error
 in sitemap configuration : Could not set up Component for hint: add-emplo=
 yee

 Coccon.xconf

  datasources
   component-instance name=3Dtest_oracle_pool class=3Dorg.apache.avalo=
 n.util.datasource.JdbcDataSource
!--   jdbc name=3Dtest_oracle_pool  --
   !-- Don't forget the oradb parameter for Oracle!!! --
 pool-controller min=3D5 max=3D10 oradb=3Dtrue/
 dburljdbc:oracle:thin:@server:oras/dburl
 userde/user
 passwordgi/password
!--   /jdbc   --
   /component-instance


   jdbc name=3Dpersonnel 
   !--
   If you have an Oracle database, and are using the the
   pool-controller below, you should add the attribute
   oradb and set it to true.

   pool-controller min=3D5 max=3D10 oradb=3Dtrue/

   That way the test to see if the server has disconnected
   the JdbcConnection will function properly.
   --
   pool-controller min=3D5 max=3D10/
   !--
   If you need to ensure an autocommit is set to true or
   false, then create the auto-commit element below.

   auto-commitfalse/auto-commit

   The default is true.
   --
   dburljdbc:hsqldb:hsql://localhost:9002/dburl
   usersa/user
   password/password
 /jdbc  
 /datasources


 web.xml
init-param
param-nameload-class/param-name
param-value
 oracle.jdbc.driver.OracleDriveror
/param-value

 The database driver is classes12.jar and I am able to connect to the same=

 database with same driver with standalone java application.
 Environment is Tomcat 4,  C2  windows2000
 Prior to this  I connected to mySql database sucessfully.

 Any help on this will be highly appreciated

 Thanks I am not able to connect to Oracle8i database.Exception
 states that could not connect to datasource  you cannot get a poolable
 before the pool is initialized.

 type internal-server-error

 message Error in sitemap configuration : Could not set up Component for
 hint: add-employee

 description org.apache.avalon.framework.configuration.ConfigurationExcept=
 ion:
 Error in sitemap configuration : Could not set up Component for hint: add=
 -employee

 sender org.apache.cocoon.servlet.CocoonServlet

 source Cocoon servlet

 request-uri

 /cocoon/visualizza/prova

 exception

 org.apache.avalon.framework.configuration.ConfigurationException: Error
 in sitemap configuration : Could not set up Component for hint: add-emplo=
 yee

 path-info

 visualizza/prova

 stacktrace

 org.apache.avalon.framework.configuration.ConfigurationException: Error
 in sitemap configuration : Could not set up Component for hint: add-emplo=
 yee

 Coccon.xconf

  datasources
   component-instance name=3Dtest_oracle_pool class=3Dorg.apache.avalo=
 n.util.datasource.JdbcDataSource
!--   jdbc name=3Dtest_oracle_pool  --
   !-- Don't forget the oradb parameter for Oracle!!! --
 pool-controller min=3D5 max=3D10 oradb=3Dtrue/
 dburljdbc:oracle:thin:@server:oras/dburl
 userde/user
 passwordgi/password
!--   /jdbc   --
   /component-instance


   jdbc name=3Dpersonnel 
   !--
   If you have an Oracle database, and are using the the
   pool-controller below, you should add the attribute
   oradb and set it to true.

   pool-controller min=3D5 max=3D10 oradb=3Dtrue/

   That way the test to see if the server has disconnected
   the JdbcConnection will function properly.
   --
   pool-controller min=3D5 max=3D10/
   !--
   If you need to ensure an autocommit is set to true or
   false, then create the auto-commit element below.

   auto-commitfalse/auto-commit

   The default is true.
   --
   dburljdbc:hsqldb:hsql://localhost:9002/dburl
   usersa/user
   password/password
 /jdbc  
 /datasources


 web.xml
init-param
param-nameload-class/param-name
param-value
 oracle.jdbc.driver.OracleDriveror
/param-value

 The database driver is classes12.jar and I am able to connect to the same=

 database with same driver with standalone java application.
 Environment is Tomcat 4,  C2  

Re: [HELP]Could not read resource file:/home/jakarta-tomcat-3.3/webapps/cocoon/docs/samples/xsp/test.svg

2002-02-23 Thread yuryx

Eduard Drenth wrote:

 Dear developers,

 Can anyone help me with the following:

 I created an svg document which I can display in batik:

 svg xmlns=http://www.w3.org/2000/svg; 
 xmlns:xlink=http://www.w3.org/1999/xlink;
width=400 height=300 viewBox=0 0 400 300

  titleTestje van Pieter/title

  image xlink:href=004.jpg x=0 y=0 width=400 height=300/

  text x=25 y=100 font-family=Courier font-size=12ptHallo, 
 Eduard/text

  text x=25 y=200 font-family=gothic stroke=purple 
 font-size=24ptHoe gaat het?/text
 /svg

 My sitemap entry to display this svg in cocoon is:

   map:match pattern=xsp/test.svg
map:generate src=docs/samples/xsp/test.svg/
map:serialize type=svg2jpeg/
   /map:match

 I receive the following error message:

try this

 titleTestje van Pieter/title

 image xlink:href=004.jpg x=0 y=0 width=400 height=300/

svg xmlns=http://www.w3.org/2000/svg; 
xmlns:xlink=http://www.w3.org/1999/xlink;
   width=400 height=300 viewBox=0 0 400 300


 svg:text x=25 y=100 font-family=Courier font-size=12ptHallo, 
Eduard/svg:text

 svg:text x=25 y=200 font-family=gothic stroke=purple 
font-size=24ptHoe gaat het?/svg:text
/svg

Regards
Yury



 Description:org.apache.cocoon.ProcessingException:

 Could not read resource 
 file:/home/jakarta-tomcat-3.3/webapps/cocoon/docs/samples/xsp/test.svg:
 org.apache.batik.transcoder.TranscoderException: nullEnclosed

 Exception:http://xml.apache.org:-1The attribute 'xlink:href' of the 
 element is required

 What is the problem here???


 Thanks in advance, regards,

 Eduard Drenth
 [EMAIL PROTECTED]







-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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




Re: JSP + matcher error

2002-02-19 Thread yuryx

Noah Mittman wrote:

 I've already looked for those and there are none.
 there's only two levels of sitemaps -- the root and this one -- and 
 this is the only matcher involving JSPs in either of them.

 On Tuesday, February 19, 2002, at 03:54  PM, David Stenglein wrote:

 Take a look at the top-level sitemap, see if there are any
 overly-broad matches for jsps.

 -Dave



 On Tue, 19 Feb 2002, Noah Mittman wrote:

 I'm having a very odd problem -- uri_param/jsp/file.jsp is
 coming up as a 404 Not Found. I do have a matcher for this, in
 fact, for all JSPs in that directory:

 map:pipeline
 map:match pattern=*/jsp/*.*
 map:generate type=jsp src=jsp/{2}.{3} /
 map:serialize type=html /
 /map:match
 /map:pipeline

 So why doesn't it work? And stranger still... why does calling
 jsp/file.jsp work when there is no matcher for it?

 [Cocoon 2.0.1]

Try
map:pipeline
map:match pattern=*/jsp/*.*
map:generate type=jsp src=/jsp/{2}.{3} /
map:serialize type=html /
/map:match
/map:pipeline
Regards
Yury



 -
 Please check that your question has not already been answered in the
 FAQ before posting. http://xml.apache.org/cocoon/faqs.html

 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. http://xml.apache.org/cocoon/faqs.html

 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. http://xml.apache.org/cocoon/faqs.html

 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. http://xml.apache.org/cocoon/faqs.html

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




Re: jsp:forward in jsp causeing error

2002-02-14 Thread yuryx

Piroumian, Konstantin wrote:

From: Gasper [mailto:[EMAIL PROTECTED]]

Hello

I'm building a site using cocoon 2.0 and jsp's for dynamic content In

my jsp

I'm trying to forward to a page using a simple jsp:forward tag but

this

causes an error below. I'm using tomcat 3.2.3

Does anybody know a solution?

Don't use forward or patch Tomcat (Or even better: migrate to XSP). For
some reason Tomcat tries to cast ServletRequest object.

Is this a bug?

A feature of Tomcat :)


I think it's not a feature nor a bug of Tomcat. It's the implementation of
HttpServletRequest in JSPEngine which cannot be casted to Tomcat's request.
Btw, you can use sitemap to forward your request to other resource, look at
map:call /. The resource should be a Cocoon pipeline or resource.

Konstantin

JSP actions (include jsp:forward action) is work from JSPReader (I'm 
try this)
But maybe some encoding errors with use jsp:forward action :(
Yury


Vadim

Thanks

Gasper

snip/

 Original exception : java.lang.ClassCastException:
org.apache.cocoon.components.jsp.JSPEngineImpl$MyServletRequest
 at

org.apache.tomcat.facade.RequestDispatcherImpl.doForward(RequestDispatch
erIm

pl.java:172)
 at

snip/


-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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. http://xml.apache.org/cocoon/faqs.html

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. http://xml.apache.org/cocoon/faqs.html

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




Bug In Cocoon2.0.1 ?

2002-02-10 Thread yuryx

Hi all!
I have use database within polled connections.
In my JSP page I try:
?xml version='1.0' encoding=KOI8-R?
%@ page language=java import=java.text.SimpleDateFormat,java.util.*,

java.sql.*,org.apache.avalon.framework.component.ComponentManager,org.apache.avalon.framework.component.ComponentSelector,
org.apache.avalon.excalibur.datasource.DataSourceComponent
pageEncoding=KOI8-R%
page
content
%
   
   
 Connection  conn = null;
 Statement   stmt = null;
 PreparedStatement   pstmt = null;
 ResultSet   rset = null;
 int row_cnt=0;
 StringBuffer sbout= new StringBuffer();
 StringBuffer errors= new StringBuffer();
 ComponentManager manager;
 ComponentSelector selector=(ComponentSelector) 
manager.lookup(Roles.DB_CONNECTION);
 DataSourceComponent datasource=(DataSourceComponent) 
selector.select(my_connection);
 conn= datasource.getConnection();
%
 /content
/page

And I have error .
Yes, I don't found Roles.class in cocoon-2.0.1.jar
And I don't found in cocoon's documentation implementation for this 
features.
This bug or not?
Any ideas?
Thanx
Yury



-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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




ComponentManager from Cocoon's framework

2002-02-10 Thread yuryx

Thanx for you help, Vadim!
 I  undestand how I can working from the pooling connections now.
With cocoon's action it's really easy.
But I have one more question...
Can I get  ComponentManager pointer from Cocoon's framework within my 
JSP page?
Like:
%
ComponentManager manager=??;
manager.lookup(DataSourceComponent.ROLE+Selector);



%
Thanx
Yury



-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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




JSPGenerator encoding problem

2002-02-08 Thread yuryx

Hi all!
My JSPGenerator or jasper-compiler don't  supported KOI8-R charset
encoding. What is me do?
Instructions llike
?xml version=1.0 encoding=KOI8-R? in header jsp page
or
map:generator name=jsp  
src=org.apache.cocoon.generation.JspGenerator 
logger=sitemap.generator.jsp label=content,data
encodingKOI8-R/encoding
/map:generator in sitemap.xmap
Don't solved my problem
Instruction like
%@ page language=java encoding=KOI8-R% in jsp page is not valid
I have use jasper-compiler.jar from /CATALINA_HOME/jasper dir
Cocoon don't compiled without  this library in WEB-INF/lib dir my jsp page.
Can anyone help me with this problem?
Thanx
Yury.



-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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




Re: JSPGenerator encoding problem

2002-02-08 Thread yuryx

Shes live!!! :)
Thanx for Piroumian, Konstantin and Vadim Gritsenko
Also thanx for all
I try
%@ page language=java import=java.text.SimpleDateFormat,java.util.* 
_/*pageEncoding=KOI8-R*/_%
in my jsp page and this solve problem.
following line in sitemap

map:serialize type=html
encodingKOI8-R/encoding
/map:serialize
for encoding on generation part do nothig...
Thanx all again!
Yury




-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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




JSPGenerator encoding problem

2002-02-07 Thread yuryx

Hello all!

I have following problem.
JSPGenerator doesn't normally encoding non english  characters.
Simple sample:
sample.jsp:
%out.println(?xml version='1.0' encoding='koi8-r'?);%
%@ page language=java 
import=java.text.SimpleDateFormat,java.util.*,java.sql.*%

page
content
%out.println(paraÐÒÉ×ÅÔ!/para);%
/content
/page

sample.xsl:
?xml version=1.0?
xsl:stylesheet version=1.0 
xmlns:xsl=http://www.w3.org/1999/XSL/Transform;
xmlns:xsp-request=http://apache.org/xsp/request/2.0;

  xsl:template match=page
   html
head
 title
  xsl:value-of select=title/
 /title
/head
body bgcolor=white alink=red link=blue vlink=blue
 xsl:apply-templates/
/body
   /html
  /xsl:template
   
  xsl:template match=para
bxsl:value-of select=.//b
  /xsl:template
/xsl:stylesheet

I have following  line in sitemap:
map:generator name=jsp  
src=org.apache.cocoon.generation.JspGenerator 
logger=sitemap.generator.jsp label=content,data
encodingKOI8-R/encoding
/map:generator
...and...
   map:match pattern=sample-jsp
 map:generate type=jsp src=/statesql/sample.jsp/
 map:transform src=statesql/sample.xsl/
 map:serialize type=html/
/map:match   

After generation I have next:

html
head
meta http-equiv=Content-Type content=text/html; charset=UTF-8
title/title
/head
body vlink=blue link=blue alink=red bgcolor=white
content
???bETH;Ograve;Eacute;times;Aring;Ocirc;!/b   ???
/content
/body
/html



Can anyone help me?
Thanx
Yury



-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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




Re: JSPGenerator encoding problem

2002-02-07 Thread yuryx

Without transformation I have

page

content

paraETH;Ograve;Eacute;times;Aring;Ocirc;!/para


/content

/page

Problem with generation, I know...

Piroumian, Konstantin wrote:

Is it the problem of JSPGenerator or maybe this happens during
transformation or serialization? Try to remove the transformer from the
pipeline or replace JSPGenerator with FileGenerator and use static content
in KOI8-r to find out what is the cause of the problem.

Regards,
Konstantin Piroumian

- Original Message -
From: yuryx [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, February 07, 2002 7:50 PM
Subject: JSPGenerator encoding problem


Hello all!

I have following problem.
JSPGenerator doesn't normally encoding non english  characters.
Simple sample:
sample.jsp:
%out.println(?xml version='1.0' encoding='koi8-r'?);%
%@ page language=java
import=java.text.SimpleDateFormat,java.util.*,java.sql.*%

page
content
%out.println(paraÐÒÉ×ÅÔ!/para);%
/content
/page

sample.xsl:
?xml version=1.0?
xsl:stylesheet version=1.0
xmlns:xsl=http://www.w3.org/1999/XSL/Transform;
xmlns:xsp-request=http://apache.org/xsp/request/2.0;

  xsl:template match=page
   html
head
 title
  xsl:value-of select=title/
 /title
/head
body bgcolor=white alink=red link=blue vlink=blue
 xsl:apply-templates/
/body
   /html
  /xsl:template

  xsl:template match=para
bxsl:value-of select=.//b
  /xsl:template
/xsl:stylesheet

I have following  line in sitemap:
map:generator name=jsp
src=org.apache.cocoon.generation.JspGenerator
logger=sitemap.generator.jsp label=content,data
encodingKOI8-R/encoding
/map:generator
...and...
   map:match pattern=sample-jsp
 map:generate type=jsp src=/statesql/sample.jsp/
 map:transform src=statesql/sample.xsl/
 map:serialize type=html/
/map:match

After generation I have next:

html
head
meta http-equiv=Content-Type content=text/html; charset=UTF-8
title/title
/head
body vlink=blue link=blue alink=red bgcolor=white
content
???bETH;Ograve;Eacute;times;Aring;Ocirc;!/b ???
/content
/body
/html



Can anyone help me?
Thanx
Yury



-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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. http://xml.apache.org/cocoon/faqs.html

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. http://xml.apache.org/cocoon/faqs.html

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




Re: JSPGenerator encoding problem

2002-02-07 Thread yuryx

Thanx for ideas ,Vadim.
But I can't undestand how declare JSP encoding.

instead of %out.println(?xml version='1.0' encoding='koi8-r'?);% I try 
?xml version='1.0' encoding='KOI8-R'? in sample.jsp
but again it doesn't work :(
Yury

Vadim Gritsenko wrote:

Your JSP is not valid. It does not declares JSP encoding as it should.
Obviously JSP runtime is unable to read characters correctly.

Regards,
Vadim

-Original Message-
From: yuryx [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 07, 2002 1:06 PM
To: [EMAIL PROTECTED]
Subject: Re: JSPGenerator encoding problem

Without transformation I have

page

content

paraETH;Ograve;Eacute;times;Aring;Ocirc;!/para


/content

/page

Problem with generation, I know...

Piroumian, Konstantin wrote:

Is it the problem of JSPGenerator or maybe this happens during
transformation or serialization? Try to remove the transformer from

the

pipeline or replace JSPGenerator with FileGenerator and use static

content

in KOI8-r to find out what is the cause of the problem.

Regards,
   Konstantin Piroumian

- Original Message -
From: yuryx [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, February 07, 2002 7:50 PM
Subject: JSPGenerator encoding problem


Hello all!

I have following problem.
JSPGenerator doesn't normally encoding non english  characters.
Simple sample:
sample.jsp:
%out.println(?xml version='1.0' encoding='koi8-r'?);%
%@ page language=java
import=java.text.SimpleDateFormat,java.util.*,java.sql.*%

page
   content
   %out.println(paraÐÒÉ×ÅÔ!/para);%
   /content
/page

sample.xsl:
?xml version=1.0?
xsl:stylesheet version=1.0
xmlns:xsl=http://www.w3.org/1999/XSL/Transform;
   xmlns:xsp-request=http://apache.org/xsp/request/2.0;

 xsl:template match=page
  html
   head
title
 xsl:value-of select=title/
/title
   /head
   body bgcolor=white alink=red link=blue vlink=blue
xsl:apply-templates/
   /body
  /html
 /xsl:template

 xsl:template match=para
   bxsl:value-of select=.//b
 /xsl:template
/xsl:stylesheet

I have following  line in sitemap:
map:generator name=jsp
src=org.apache.cocoon.generation.JspGenerator
logger=sitemap.generator.jsp label=content,data
   encodingKOI8-R/encoding
/map:generator
...and...
  map:match pattern=sample-jsp
map:generate type=jsp src=/statesql/sample.jsp/
map:transform src=statesql/sample.xsl/
map:serialize type=html/
   /map:match

After generation I have next:

html
head
meta http-equiv=Content-Type content=text/html; charset=UTF-8
title/title
/head
body vlink=blue link=blue alink=red bgcolor=white
content
???bETH;Ograve;Eacute;times;Aring;Ocirc;!/b ???
/content
/body
/html



Can anyone help me?
Thanx
Yury



-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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. http://xml.apache.org/cocoon/faqs.html

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. http://xml.apache.org/cocoon/faqs.html

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. http://xml.apache.org/cocoon/faqs.html

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. http://xml.apache.org/cocoon/faqs.html

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




Re: JSPGenerator encoding problem

2002-02-07 Thread yuryx

Hi Peter!
I try your recomendation
but it don't  solved my problem :(
Encoding problem in Generator , or, maybe, in jasper compiller...
Yury
Peter Schwenke wrote:

Hi Yury,

Have you tried 


  map:serializers default=html
   map:serializer name=links   
src=org.apache.cocoon.serialization.LinkSerializer/
   map:serializer name=xmlmime-type=text/xml 
src=org.apache.cocoon.serialization.XMLSerializer
   pool-max=32 pool-min=16 pool-grow=4/
   map:serializer name=html   mime-type=text/html
src=org.apache.cocoon.serialization.HTMLSerializer
   encodingkoi8-r/encoding    That is, put the koi8-r encoding here
   /map:serializer


   ...Peter
 
yuryx writes:
  Without transformation I have
  
  page
  
  content
  
  paraETH;Ograve;Eacute;times;Aring;Ocirc;!/para
  
  
  /content
  
  /page
  
  Problem with generation, I know...
  
  Piroumian, Konstantin wrote:
  
  Is it the problem of JSPGenerator or maybe this happens during
  transformation or serialization? Try to remove the transformer from the
  pipeline or replace JSPGenerator with FileGenerator and use static content
  in KOI8-r to find out what is the cause of the problem.
  
  Regards,
  Konstantin Piroumian
  
  - Original Message -
  From: yuryx [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Thursday, February 07, 2002 7:50 PM
  Subject: JSPGenerator encoding problem
  
  
  Hello all!
  
  I have following problem.
  JSPGenerator doesn't normally encoding non english  characters.
  Simple sample:
  sample.jsp:
  %out.println(?xml version='1.0' encoding='koi8-r'?);%
  %@ page language=java
  import=java.text.SimpleDateFormat,java.util.*,java.sql.*%
  
  page
  content
  %out.println(para!/para);%
  /content
  /page
  
  sample.xsl:
  ?xml version=1.0?
  xsl:stylesheet version=1.0
  xmlns:xsl=http://www.w3.org/1999/XSL/Transform;
  xmlns:xsp-request=http://apache.org/xsp/request/2.0;
  
xsl:template match=page
 html
  head
   title
xsl:value-of select=title/
   /title
  /head
  body bgcolor=white alink=red link=blue vlink=blue
   xsl:apply-templates/
  /body
 /html
/xsl:template
  
xsl:template match=para
  bxsl:value-of select=.//b
/xsl:template
  /xsl:stylesheet
  
  I have following  line in sitemap:
  map:generator name=jsp
  src=org.apache.cocoon.generation.JspGenerator
  logger=sitemap.generator.jsp label=content,data
  encodingKOI8-R/encoding
  /map:generator
  ...and...
 map:match pattern=sample-jsp
   map:generate type=jsp src=/statesql/sample.jsp/
   map:transform src=statesql/sample.xsl/
   map:serialize type=html/
  /map:match
  
  After generation I have next:
  
  html
  head
  meta http-equiv=Content-Type content=text/html; charset=UTF-8
  title/title
  /head
  body vlink=blue link=blue alink=red bgcolor=white
  content
  ???bETH;Ograve;Eacute;times;Aring;Ocirc;!/b ???
  /content
  /body
  /html
  
  
  
  Can anyone help me?
  Thanx
  Yury
  
  
  
  -
  Please check that your question has not already been answered in the
  FAQ before posting. http://xml.apache.org/cocoon/faqs.html
  
  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. http://xml.apache.org/cocoon/faqs.html
  
  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. http://xml.apache.org/cocoon/faqs.html
  
  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. http://xml.apache.org/cocoon/faqs.html

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




Re: JSPGenerator encoding problem

2002-02-07 Thread yuryx

Piroumian, Konstantin wrote:

Another idea:

%@ page language=java encoding=koi8-r%

Hi Konstantin!
with this idea I have next exception
/org.apache.cocoon.ProcessingException: ServletException in 
JspGenerator.generate()/



or something like

%@ page language=java %
% response.setContentType(text/xml; charset=KOI8-r); %

If you can send your JSP page to me I can take a look at it.

My simple jsp page:
?xml version='1.0' encoding=KOI8-R?
%@ page language=java 
import=java.text.SimpleDateFormat,java.util.*,java.sql.*%

page
content
%
out.println(paraÐÒÉ×ÅÔ!/para);
%
/content   
/page



- Original Message -
From: yuryx [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, February 08, 2002 9:46 AM
Subject: Re: JSPGenerator encoding problem


Thanx for ideas ,Vadim.
But I can't undestand how declare JSP encoding.

instead of %out.println(?xml version='1.0' encoding='koi8-r'?);% I try
?xml version='1.0' encoding='KOI8-R'? in sample.jsp
but again it doesn't work :(
Yury

Vadim Gritsenko wrote:

Your JSP is not valid. It does not declares JSP encoding as it should.
Obviously JSP runtime is unable to read characters correctly.

Regards,
Vadim

-Original Message-
From: yuryx [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 07, 2002 1:06 PM
To: [EMAIL PROTECTED]
Subject: Re: JSPGenerator encoding problem

Without transformation I have

page

content

paraETH;Ograve;Eacute;times;Aring;Ocirc;!/para


/content

/page

Problem with generation, I know...

Piroumian, Konstantin wrote:

Is it the problem of JSPGenerator or maybe this happens during
transformation or serialization? Try to remove the transformer from

the

pipeline or replace JSPGenerator with FileGenerator and use static

content

in KOI8-r to find out what is the cause of the problem.

Regards,
  Konstantin Piroumian

- Original Message -
From: yuryx [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, February 07, 2002 7:50 PM
Subject: JSPGenerator encoding problem


Hello all!

I have following problem.
JSPGenerator doesn't normally encoding non english  characters.
Simple sample:
sample.jsp:
%out.println(?xml version='1.0' encoding='koi8-r'?);%
%@ page language=java
import=java.text.SimpleDateFormat,java.util.*,java.sql.*%

page
  content
  %out.println(paraÐÒÉ×ÅÔ!/para);%
  /content
/page

sample.xsl:
?xml version=1.0?
xsl:stylesheet version=1.0
xmlns:xsl=http://www.w3.org/1999/XSL/Transform;
  xmlns:xsp-request=http://apache.org/xsp/request/2.0;

xsl:template match=page
 html
  head
   title
xsl:value-of select=title/
   /title
  /head
  body bgcolor=white alink=red link=blue vlink=blue
   xsl:apply-templates/
  /body
 /html
/xsl:template

xsl:template match=para
  bxsl:value-of select=.//b
/xsl:template
/xsl:stylesheet

I have following  line in sitemap:
map:generator name=jsp
src=org.apache.cocoon.generation.JspGenerator
logger=sitemap.generator.jsp label=content,data
  encodingKOI8-R/encoding
/map:generator
...and...
 map:match pattern=sample-jsp
   map:generate type=jsp src=/statesql/sample.jsp/
   map:transform src=statesql/sample.xsl/
   map:serialize type=html/
  /map:match

After generation I have next:

html
head
meta http-equiv=Content-Type content=text/html; charset=UTF-8
title/title
/head
body vlink=blue link=blue alink=red bgcolor=white
content
???bETH;Ograve;Eacute;times;Aring;Ocirc;!/b ???
/content
/body
/html



Can anyone help me?
Thanx
Yury



-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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. http://xml.apache.org/cocoon/faqs.html

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. http://xml.apache.org/cocoon/faqs.html

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. http://xml.apache.org/cocoon/faqs.html

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. http://xml.apache.org/cocoon/faqs.html

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

Re: Getting dbxml to work with Cocoon and tomcat 4

2002-02-06 Thread yuryx

Michael Homeijer wrote:

Hi,

Can anybody give me some hints on how to get dbxml to work with cocoon and
tomcat 4. I tried placing jars in just about any location that could make
sense, but I can't get it working completely.
(OpenOrb is the initial problem, it cannot find its properties in the jar in
web-inf/lib).

TIA,
Michael Homeijer

-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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

You found dbXML.jar in WEB-INF/lib?
Yury




-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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




use xscript in xsp

2002-02-05 Thread yuryx

For generation xml with xsp I have use any  stylesheets for any tags.
I define:

simple.xsp:
?xml version=1.0 encoding=ISO-8859-1?


xsp:page language=java
  xmlns:xsp=http://apache.org/xsp;
  xmlns:xscript=http://apache.org/xsp/xscript/1.0;
 

  page

titleInline XScript variable(include xml)/title

content
  xscript:variable name=var1 scope=session
   para1it a second line!!!/para1
  /xscript:variable

  xscript:variable name=mystyle href=work/test/simple.xsl 
scope=global/   
  xscript:variable name=my-var href=work/test/simple.xml/
 
  xscript:variable name=result
xscript:transform name=var1 stylesheet=mystyle/
  /xscript:variable

 
 
 
xscript:get name=my-var/
   
xscript:get name=result/

  xscript:remove name=my-var/
  xscript:remove name=var1/
  xscript:remove name=result/
/content

  /page
/xsp:page

simple.xml:
?xml version=1.0?
including
  paraThis is my first Cocoon page!/para
  parathis line including from external file/para
/including

simple.xsl:
?xml version=1.0?
xsl:stylesheet version=1.0
xmlns:xsl=http://www.w3.org/1999/XSL/Transform;

xsl:template match=para1
h1xsl:value-of select=.//h1   
/xsl:template

/xsl:stylesheet

simple2html.xsl:
?xml version=1.0?
xsl:stylesheet version=1.0
xmlns:xsl=http://www.w3.org/1999/XSL/Transform;
xmlns:xsp-request=http://apache.org/xsp/request/2.0;

  xsl:template match=page
   html
head
 title
  xsl:value-of select=title/
 /title
/head
body bgcolor=white alink=red link=blue vlink=blue
xsl:apply-templates/
/body
   /html
  /xsl:template
xsl:template match=para
h4xsl:value-of select=.//h4   
/xsl:template
  xsl:template match=@*|node() 
priority=-2xsl:copyxsl:apply-templates 
select=@*|node()//xsl:copy/xsl:template
  xsl:template match=text() priority=-1xsl:value-of 
select=.//xsl:template
/xsl:stylesheet

and next line in sitemap.xmap:
   map:match pattern=test/*
  
 map:generate type=serverpages src=work/test/{1}.xsp/
map:transform src=work/test/simple2html.xsl/
map:serialize/
  
   /map:match

And I have next error:
/
Error in running Transformation/

More precisely:

/org.apache.cocoon.ProcessingException: Error in running Transformation: 
java.lang.NullPointerException/

Original exception : java.lang.NullPointerException
at 
org.apache.xalan.transformer.TransformerImpl.createResultContentHandler(TransformerImpl.java:1007)
 


Does anyone have any ideas what I'm doing wrong?
Thanx.
Yury





-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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




XScript in cocoon

2002-02-04 Thread yuryx

Can anyone hint me howto  link about implement and usage  XScript in cocoon?
Thanx
Yury



-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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




Re: Cocoon action

2002-02-03 Thread yuryx

So easy? :)
Thanx Sidharth!
Yury

Sidharth wrote:

just write
String myParameter=request.getParameter(name)
siteparams.put(hello,myparameter)


then on sitemap

match pattern=test
act
redirect to uri={hello}/
/act
/match
- Original Message -
From: yuryx [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, February 03, 2002 1:10 PM
Subject: Re: Cocoon action


String myParameter=***???parameter from my page??? (how set from page

and get this?)***;

sitemapParams.put(world, myParameter);


Sidharth wrote:

Ofcourse why not??
- Original Message -
From: yuryx [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, February 03, 2002 12:40 PM
Subject: Re: Cocoon action


Like this?

public class HelloWorldAction extends AbstractAction {
 public Map act (Redirector redirector,
 SourceResolver resolver,
 Map objectModel,
 String source,
 Parameters params) {
   Map sitemapParams = new HashMap();
   sitemapParams.put(world, hello);

   Request request = (Request)

objectModel.get(Constants.REQUEST_OBJECT);

   request.setAttribute(hello, world);

   return sitemapParams;
 }
}

but I have like

public class HelloWorldAction extends AbstractAction {
 public Map act (Redirector redirector,
 SourceResolver resolver,
 Map objectModel,
 String source,
 Parameters params) {
   Map sitemapParams = new HashMap();
file://***
   String myParameter=***parameter from my page***;
   sitemapParams.put(world, myParameter);
file://
// It's possible?
   Request request = (Request)

objectModel.get(Constants.REQUEST_OBJECT);

   request.setAttribute(hello, world);

   return sitemapParams;
 }
}








Sidharth wrote:

Then put the parameter into siteparams *Map* of action class and

terieve

it

on the sitemap
As been examplified in actions under docs
- Original Message -
From: yuryx [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, February 03, 2002 12:13 PM
Subject: Re: Cocoon action


Sorry, but I have sent parameter *into* action  code. And setting
pipeline parameter with this parameter ...

Sidharth wrote:

Yes thgis is
If the current page submits to a single page then write

request.getParameter

code in the second page controller
- Original Message -
From: yuryx [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, February 03, 2002 11:41 AM
Subject: Cocoon action


Hello All!

I have sent some parameters from  page (within onClick event,

sample)

into  cocoon action.
And switch pipelines with this parameters. It's possible?
Thanx.
Yury.



-

Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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. http://xml.apache.org/cocoon/faqs.html

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. http://xml.apache.org/cocoon/faqs.html

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. http://xml.apache.org/cocoon/faqs.html

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. http://xml.apache.org/cocoon/faqs.html

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. http://xml.apache.org/cocoon/faqs.html

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. http://xml.apache.org/cocoon/faqs.html

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

  1   2   >