RE: Accessing SunRise context after authorization

2002-07-03 Thread Carsten Ziegeler

And, please notice the space at the end of the context name,
you have to remove it, so it should read:

sunshine:getxml context=sunRise ...

Carsten

 -Original Message-
 From: Carsten Ziegeler [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, July 03, 2002 8:17 AM
 To: [EMAIL PROTECTED]
 Subject: RE: Accessing SunRise context after authorization
 
 
 The authentication framework needs to know, that your pipeline belongs
 to the handler you used for authentication. Only then the sunRise context
 is available in the pipeline.
 
 So, you have to use the action around your status pipeline, like this:
 
  map:match pattern=IMA/status
   map:act type=sunRise-auth
   map:parameter name=handler value=ima-handler/
 
 map:generate src=IMA/status.xml /
 map:transform type=sunShine/
 map:transform src=IMA/loginpage.xsl /
 map:transform type=encodeURL /
 map:serialize /
   /map:act
  /map:match
 
 Carsten 
 
 Carsten Ziegeler Chief Architect Open Source Group, SN AG
 --
  Cocoon Consulting, Training and Projects
 --
 mailto:[EMAIL PROTECTED]  http://www.s-und-n.de
 http://ziegeler.bei.t-online.de
 
 
  -Original Message-
  From: Hugo Burm [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, July 02, 2002 6:17 AM
  To: [EMAIL PROTECTED]
  Subject: Accessing SunRise context after authorization
  
  
  Hello,
  
  I am running Cocoon 2.0.2 on Tomcat 4.0.1 on W2000.
  
  I have build an authorization system based on the Sunshine/Sunrise
  components.
  The authorization works OK.
  After successfull authorization, the user is redirected to a 
 status page.
  This status page can access all the SessionContexts supplied by 
  the Sunrise
  transformer.
  Except for one (and that is the one I need).
  The one I need is the SunRise context, that contains the user 
  details of the
  authorized user.
  When I try to access this context, I get an error: Context does 
  not exist.
  When I try to create it myself, I get an error: Context name is 
  reserved.
  
  How can I access this Sunrise context? Details below.
  
  
  Hugo
  [EMAIL PROTECTED]
  
  
  ==
  !-- snippets of the status.xml page --
  
  !-- this works OK --
  You are:sunshine:getxml context=request path=/remoteAddress/
  
  !-- This creates an error: SessionContext sunRise not found --
  sunshine:getxml context=sunRise  path=/authentication/ID/
  
  !-- This creates an error: SessionContext with name sunRise is
  reserved --
  sunshine:createcontext name=sunRise/
  
  ==
  
  !-- snippets from sitemap --
  
  !-- 1
  This is the protected resource.
  Authorization is handled by ima-handler
  --
  map:match pattern=IMA/survey
  map:act type=sunRise-auth
  map:parameter name=handler value=ima-handler/
  map:generate type=file src=IMA/survey.xml/
  /map:act
  map:transform type=xslt src=IMA/frame.xsl/
  map:serialize/
  /map:match
  
  !-- 4
  This is the login resource. Action from loginpage.
  If login OK, redirect to status.xml
  If login Err, redirect to IMA/login-failed
  --
  map:match pattern=IMA/login
   map:act type=sunRise-login
 map:parameter name=handler value=ima-handler/
 map:parameter name=parameter_name value=request:name/
 map:parameter name=parameter_password
  value=request:password/
 !-- If the authentication is successfull then this 
  redirect will
  be performed --
 map:redirect-to uri=status/
   /map:act
   !-- authentication failed: --
   map:generate src=IMA/login-failed.xml/
   map:transform src=IMA/loginpage.xsl/
  map:serialize/
  /map:match
  
  !-- 6
  This is the page to which a successfull authorization is redirected
  --
  map:match pattern=IMA/status
map:generate src=IMA/status.xml /
map:transform type=sunShine/
map:transform src=IMA/loginpage.xsl /
map:transform type=encodeURL /
map:serialize /
  /map:match
  
  
  
  
  -
  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]
 

RE: cant find avalon conponents

2002-07-03 Thread Themba Mbatha
Title: RE: cant find avalon conponents





Make sure that all the jar files that came with Cocoon are in the lib directory ($TOMCAT_HOME/webapps/cocoon/WEB-INF/lib). 

-Original Message-
From: icewind [mailto:[EMAIL PROTECTED]]
Sent: 02 July 2002 10:49
To: [EMAIL PROTECTED]
Subject: cant find avalon conponents



Hello,


I installed the cocoon war file in the webapps dir of
tomcat (tomcat works) and when I tried to access
cocoon, I got a really big error message starting with
the following:


description org.apache.cocoon.ProcessingException:
Language Exception:
org.apache.cocoon.components.language.LanguageException:
Error compiling sitemap_xmap: Line 22, column 49:
cannot access class Component; file
org/apache/avalon/framework/component/Component.class
not found Line 23, column 53: cannot access class
Configurable; file



this goes on and on with all the components in avalon
not being found...



When I took a look in tomcat's work directory, i did
find the avalon jars in localhost/cocoon/WEB-INF.


Im not sure how to fix this problem.. anyone know how
to get cocoon (or tomcat) to see the avalon jars it
cant seem to see now?


Thanks.



__
Do You Yahoo!?
Sign up for SBC Yahoo! Dial - First Month Free
http://sbc.yahoo.com


-
Please check that your question has not already been answered in the
FAQ before posting. 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: error deploying cocoon

2002-07-03 Thread Sylvain.Thevoz

Hello,

Maybe a java security problem. Cocoon can't write something on your disk. 
I had the same think.

Check the java policy files.

Sylvain

-Message d'origine-
De: icewind [mailto:[EMAIL PROTECTED]]
Date: mardi, 2. juillet 2002 20:53
À: [EMAIL PROTECTED]
Objet: error deploying cocoon


Hello,

Im using Debian with the tomcat4 package. The tomcat
samples work. I got the lastest binary version of
cocoon from the web site and put the cocoon.war file
in the $TOMCAT_HOME/webapps directory. When I restart
tomcat, I watch the tomcat log file and I get what is
below. How can I fix this and get cocoon to deploy
correctly?

Thanks.

--begin---

2002-07-02 14:32:15 Cocoon2: init
2002-07-02 14:32:15 StandardContext[/cocoon]: Servlet
/cocoon threw load() exception
javax.servlet.ServletException: Servlet.init() for
servlet Cocoon2 threw exception
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:935)
at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:808)
at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3266)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3395)
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:785)
at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:454)
at
org.apache.catalina.core.StandardHost.install(StandardHost.java:714)
at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:324)
at
org.apache.catalina.startup.HostConfig.start(HostConfig.java:389)
at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:232)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:155)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1131)
at
org.apache.catalina.core.StandardHost.start(StandardHost.java:614)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343)
at
org.apache.catalina.core.StandardService.start(StandardService.java:388)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:506)
at
org.apache.catalina.startup.Catalina.start(Catalina.java:781)
at
org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
at
org.apache.catalina.startup.Catalina.process(Catalina.java:179)
at java.lang.reflect.Method.invoke(Native
Method)
at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
- Root Cause -
java.security.AccessControlException: access denied
(java.util.PropertyPermission
javax.xml.parsers.SAXParserFactory read)
at
java.security.AccessControlContext.checkPermission(AccessControlContext.java:272)
at
java.security.AccessController.checkPermission(AccessController.java:399)
at
java.lang.SecurityManager.checkPermission(SecurityManager.java:545)
at
java.lang.SecurityManager.checkPropertyAccess(SecurityManager.java:1278)
at
java.lang.System.getProperty(System.java:560)
at
org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:214)
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:916)
at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:808)
at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3266)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3395)
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:785)
at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:454)
at
org.apache.catalina.core.StandardHost.install(StandardHost.java:714)
at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:324)
at
org.apache.catalina.startup.HostConfig.start(HostConfig.java:389)
at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:232)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:155)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1131)
at
org.apache.catalina.core.StandardHost.start(StandardHost.java:614)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343)
at
org.apache.catalina.core.StandardService.start(StandardService.java:388)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:506)
at
org.apache.catalina.startup.Catalina.start(Catalina.java:781)
at
org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
at
org.apache.catalina.startup.Catalina.process(Catalina.java:179)
at java.lang.reflect.Method.invoke(Native
Method)
at

CDATA disappears with 2.1

2002-07-03 Thread TREGAN Fabien

I made a custom transformer (wich transform XHTML into the Javascript String
containing the code of the corresponding HTML - please don't ask me why !)

It works well with 2.0.3, but I ned to know the performances with XSLTC, so
I use 2.1 for my tests. The XSL transformation is about 35% faster (just the
transformation, not the whole pipeline... far from the 80% expected ;) ),
but the CDATA block disappear : its content is viewable, but escaped.

I could not figure the difference in component définition... Does it come
from the Xalan jar used in 2.1 ? A change in
AbstractTransformer.startCDATA() ?


Code : 

super.startCDATA();
escapedHTML = replace(escapedHTML, \n, \\n);
escapedHTML = replace(escapedHTML, \r, \\r);
escapedHTML = replace(escapedHTML, \, \\\);
super.characters(escapedHTML.toCharArray(), 0,
escapedHTML.length());
super.endCDATA();

Pipeline :

map:pipeline
map:match pattern=jsst*
map:act type=TestBeanAction
map:parameter name=nb value={1}
/
/map:act
map:generate src=test.xml /
map:transform type=castor /
map:transform
src=stylesheet/result2sdngui.xsl /
map:transform
src=stylesheet/SelectList.xsl /
map:transform type=jsst /
map:serialize type=html /
/map:match
/map:pipeline

Good result (2.0.3) :

script
var addString = form
xmlns:sdngui=\http://www.airbus.com/sdn/gui/v1\;
onmousedown=\AActivate(this);\ [...] ;
/script

(if I use serialize type=xml /, it gives : var addString =
![CDATA...)

Wrong result (2.1 - xsltc)

?xml version=1.0 encoding=UTF-8?
test
script
var addString = lt;?xml version=\1.0\
encoding=\UTF-8\?gt;\r\nlt;form method=\post\
onmousedown=\AActivate(this);\ [...] ;
/script
/test

(if I use serialize type=xml /, it gives : var addString = lt;?xml
version=\1.0\...)

Wrong result (2.1 - no xsltc)

?xml version=1.0 encoding=UTF-8?
test xmlns:castor=http://castor.exolab.org/cocoontransfomer;
xmlns:jsst=http://www.airbus.com/caw/jsst;
script
var addString = lt;?xml version=\1.0\
encoding=\UTF-8\?gt;\r\nlt;form
xmlns:xmlns:sdngui=\http://www.airbus.com/sdn/gui/v1\;
onmousedown=\AActivate(this);\ [...] ;
/script
/test


Any idea ?

fabien.

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




sunspotdemo

2002-07-03 Thread Lutz Lenzen


Hi everybody,

there is the following line in the sitemap 

map:generate src=admin type=sunSpot-conf/

Normally the the src-attribute of the generate-tag holds an XML-file. Here it 
is admin. What does that mean, is it an entity?

Thanks,

Lutz
*
Lutz Lenzen
Institut fuer Reine und Angewandte
Mathematik
RWTH Aachen
Templergraben 55
52062 Aachen
E-mail: [EMAIL PROTECTED]
Tel.: 0241/80-94513 bzw.
   030/314-22698
*

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

2002-07-03 Thread Piroumian Konstantin

 From: Lutz Lenzen [mailto:[EMAIL PROTECTED]] 
 
 Hi everybody,
 
 there is the following line in the sitemap 
 
   map:generate src=admin type=sunSpot-conf/
 
 Normally the the src-attribute of the generate-tag holds an 
 XML-file. Here it 
 is admin. What does that mean, is it an entity?

Holding an XML-file in src attribute is normal only for FileGenerator, even
in that case the src is not necessarily a file, but can be any resource,
e.g. src=http://my.com/news.xml; /.

In this case the sunSpot-conf generator uses the src attribute to load the
needed configuration file name. Where that configuration files are located
is configured somewhere else, so instead of using a full path to your file
you simply use a shorter name.

Am I right, Carsten?

Konstantin

 
 Thanks,
 
 Lutz
 *
 Lutz Lenzen
 Institut fuer Reine und Angewandte
 Mathematik
 RWTH Aachen
 Templergraben 55
 52062 Aachen
 E-mail: [EMAIL PROTECTED]
 Tel.: 0241/80-94513 bzw.
030/314-22698
 *
 
 -
 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: Cocoon 2.1 deployment error

2002-07-03 Thread Sylvain.Thevoz

I have checked the Avalon version and it is the right one (20020627)!

Is this component really essential? What is its task?
Have you a solution?

Thank you very much
Sylvain


-Message d'origine-
De: Stephan Michels [mailto:[EMAIL PROTECTED]]
Date: mardi, 2. juillet 2002 17:13
À: [EMAIL PROTECTED]
Objet: RE: Cocoon 2.1 deployment error




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

 I think you use the wrong version of avalon-framework lib.

 = Where is this lib in Cocoon sources?

xml-cocoon2/lib/core/avalon-framework-20020627.jar

 = What is the right version?

20020627

 = Where can I find it?

xml-cocoon2/lib/core/

Remember 2.1 is not yet released, Stephan Michels.


 -Message d'origine-
 De: Stephan Michels [mailto:[EMAIL PROTECTED]]

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

  Hello,
 
  I have deployed the Cocoon 2.1 webapp Demo but when I try to see the welcome page 
(http://localhost:8000/cocoon) there is an error:
 
  type: Exception report
 
  message: Internal Server Error
 
  description: The server encountered an internal error (Internal Server Error) that 
prevented it from fulfilling this request.
 
  root cause
 
  java.lang.VerifyError: (class: org/apache/cocoon/Cocoon, method: configure 
signature: 
(Lorg/apache/avalon/excalibur/component/ExcaliburComponentManager;)Lorg/apache/avalon/framework/configuration/Configuration;)
 Incompatible object argument for function call
  at java.lang.Class.newInstance0(Native Method)
  at java.lang.Class.newInstance(Class.java:232)
  at org.apache.cocoon.util.ClassUtils.newInstance(ClassUtils.java:75)
  at 
org.apache.cocoon.servlet.CocoonServlet.createCocoon(CocoonServlet.java:1202)
  at org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:407)
  at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:852)
  [...]
  at java.lang.Thread.run(Thread.java:479)

 I think you use the wrong version of avalon-framework lib.

 Stephan Michels.



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




Where did stream-pipeline and event-pipeline element went in 2.1 ?

2002-07-03 Thread TREGAN Fabien

Hi,

 The following lines no longer appear in cocoon.xconf in 2.1 (they do in
2.0.3, and the doc still say you can replace them to use non-caching
pipelines)

event-pipeline
class=org.apache.cocoon.components.pipeline.CachingEventPipeline/
stream-pipeline
class=org.apache.cocoon.components.pipeline.CachingStreamPipeline/

Is it OK just to add them ? Why did they go ? Can we use non-caching
pipeline in 2.1 ?

thx, 
fabien.

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




AW: Form Validator

2002-07-03 Thread Sascha Kulawik




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




Form Validator - RESOLVED ! Need a Patch ?

2002-07-03 Thread Sascha Kulawik


Ive made a Patch for Cocoon 2.0.2 for this Problem in the 
Class AbstractValidatorAction. Contact me, if you are interested.
 
Greetings,
 
Sascha
 


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




AW: Form Validator - RESOLVED ! Need a Patch ?

2002-07-03 Thread Sascha Kulawik

Ive made a Patch for Cocoon 2.0.2 for this Problem in the Class
AbstractValidatorAction.
Contact me, if you are interested.

Greetings,

Sascha


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




AW: Form Validator

2002-07-03 Thread Sascha Kulawik


er


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




User Authentication - HOW ?

2002-07-03 Thread Sascha Kulawik
Title: User Authentication - HOW ?






Hello,


Im just dealing with Cocoon for a while and have coded a forum in xsp. Currently ive no idea, how to implement a user authentication in cocoon, havent found any idea on the net.

It's also possible to write a servlet and so on or use turbine, but i just wantet to use much xsp as possible without around-coding.

Also it's really hard to understand the sunspot example without documentation - it seems also a little bit hard to implement.

How could this be done ?

Is it possible to use some kind of session-variables in xsp to implement the logging feature ?

The login could then also be done by using a form and an interpreting xsp page.

Any suggestions ?


Thanks much 4 help,

greetings,


Sascha





AW: Form Validator

2002-07-03 Thread Sascha Kulawik

Same Problem here with the Session-validator.

Currently Im working with: Tomcat 4.0.4b, Cocoon 2.0.2 and JDK1.4, also
the avalon-excalibur-20020506.jar Patch for the Database-Connection
Problems with SDK 1.4.

DB-Auth is working, but the Session-validator doesnt execute perperly.
The core.log will gives the correct Session variables out, here some
code-snipps:

Sitemap:

map:action name=sessval
src=org.apache.cocoon.acting.SessionValidatorAction/
/map:actions
...
map:match pattern=*/*.xsp
map:act type=sessval
map:parameter name=descriptor
value=context://mount/sascha/validate.xml/
map:parameter name=validate
value=username/
map:generate
src=xsp/forum.xsp type=serverpages/
map:transform
src=templates/forumlist.xsl/
!--
map:generate
src=xsp/{../2}.xsp type=serverpages/
map:transform
src=templates/{../1}.xsl/
--
map:serialize type=html/
/map:act
map:generate src=xml/hello.xml/
map:transform
src=templates/htmloutput.xsl/
map:serialize type=html/
!--map:redirect-to uri=login/--
/map:match

Validate.xml
-
?xml version=1.0 encoding=UTF-8?
root
parameter name=username type=string nullable=no/
/root

Any idea ?

Thanks,

Sascha


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




AW: Form Validator

2002-07-03 Thread Sascha Kulawik

ds


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




AW: Form Validator

2002-07-03 Thread Sascha Kulawik

d


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




cocoon test...

2002-07-03 Thread Othman Haddad



hi,
i've an application based on cocoon2.02 and tomcat 
without Apache httpd server..
what is the best way to test it?, is Cactus ok for 
this, or it's better to use something else?
thanks for your help 



AW: User Authentication - HOW ?

2002-07-03 Thread Sascha Kulawik
Title: Nachricht



Sorry 
4 the delayed Message-flood from me, but xml.apache.org hasn't any MX Entry, so 
I couldn't send any Mail with my qmail Server to it. Right now its resolved and 
Ive specially for xml.apache.org an entry in a config file - but thats not the 
solution, Apache-Guys !

This 
Message is outdated, ive already resolved the problem with Authentication and - 
as written in the other mail - made a patch for the Action Handler so the 
SessionState will also work with Cocoon 2.0.2.

Greetings,
Sascha

  
  -Ursprüngliche Nachricht-Von: Sascha Kulawik 
  [mailto:[EMAIL PROTECTED]] Gesendet: Dienstag, 2. Juli 2002 
  15:23An: [EMAIL PROTECTED]Betreff: User 
  Authentication - HOW ?
  Hello, 
  Im just dealing with Cocoon for a while and have 
  coded a forum in xsp. Currently ive no idea, how to implement a user 
  authentication in cocoon, havent found any idea on the net.
  It's also possible to write a servlet and so on or 
  use turbine, but i just wantet to use much xsp as possible without 
  "around-coding".
  Also it's really hard to understand the sunspot 
  example without documentation - it seems also a little bit hard to 
  implement.
  How could this be done ? Is it possible to use some kind of "session-variables" in 
  xsp to implement the logging feature ? The 
  login could then also be done by using a form and an interpreting xsp 
  page. Any suggestions ? 
  Thanks much 4 help, greetings, 
  Sascha 


AW: Form Validator - RESOLVED ! Need a Patch ?

2002-07-03 Thread Sascha Kulawik

The diff for AbstractValidatorAction.java is:
564a565,566
 }catch (NullPointerException e) {
 return true;
578a581,582
 } catch (NullPointerException e) {
 dflt = ;

Greetings,
Sascha


-
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: Form Validator - RESOLVED ! Need a Patch ?

2002-07-03 Thread Piroumian Konstantin

Would you please post the patch to Bugzilla as described in:
http://xml.apache.org/cocoon/howto/howto-patch.html ?

Konstantin

 From: Sascha Kulawik [mailto:[EMAIL PROTECTED]] 
 
 The diff for AbstractValidatorAction.java is:
 564a565,566
  }catch (NullPointerException e) {
  return true;
 578a581,582
  } catch (NullPointerException e) {
  dflt = ;
 
 Greetings,
 Sascha
 
 
 -
 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: [Q] How to create a cached XML object in memory...

2002-07-03 Thread Vadim Gritsenko

 From: Per Kreipke [mailto:[EMAIL PROTECTED]]
 
 OVERVIEW:
 =
 Cocoon uses Configurations from Avalon to abstract keeping common
config
 information in XML form and easily using and caching it in memory.
However,
 it doesn't quite serve my purposes (I think) because it actually
converts
 the XML into its internal format and doesn't allow XPath queries
against it.
 
 I'm beginning to suspect that there is no such object in C2 but rather
 caching is a component service provided by another component. However,
I
 wish there already was some example of, say, a URLSource that was
being
 cached in a simple way that I could retrieve it on demand.
 
 Specifically, each request will cause an XPath query against the XML
and
 portions of those results will be propagated to the sitemap. E.g. this
will
 all be handled by an Action.
 
 REQUIREMENTS:
 =
 I have some information in an XML file which is common to the entire
web app
 (file is not tiny).
 
 For speed, I was thinking of storing it in a servlet context attribute
so
 that it was accessible everywhere.
 
 I want to be able to execute XPath queries against it.
 
 Some of the attributes in the file need to be propa
 
 The XML file may be changed and should be reloaded.
 
 Among other things, I will want to stream the XPath results into the
SAX
 stream (much like ReadDOMTransformer).
 
 
 SOLUTIONS:
 ==
 1. Use Configurations.
 - can be cached, etc.
 - doesn't allow XPath queries
 
 2. Use URLSource and add caching (note to self: check if it already
is).
 - how to add caching to an action (note to self: look at all the
actions,
 again)
 
 3. ??

Use Parser.ROLE to parse it into the DOM tree and save it into the
context. Use XPathProcessor.ROLE to query it.

Vadim


 
 Thanks in advance for any pointers, feedback.
 
 Per Kreipke


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




Search hits in new page

2002-07-03 Thread M Al-yahya

Hello,
 I'm doing XML Search using the SearchGenerator. I have the following in
the sitemap pipeline:
  map:match pattern=**findIt
map:generate type=search/
map:transform type=log/
map:transform src=stylesheets/search2html.xsl/
map:serialize/
   /map:match
the stylesheet I'm using is the one in cocoon/search/stylesheets. This
stylesheet displays the  search form and the results in one page. Does
anyone know how to display the results in a new browser page.

Cheers,
Maha

-
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: HTML Serializer Problems: xhtml instead of html?!

2002-07-03 Thread Arjé Cahn

Can you post (part of) your XSL? 

Regards,

Arjé Cahn


-
Content Management Department
Hippo Webworks
Grasweg 35
1031 HW Amsterdam
The Netherlands
Tel  +31 (0)20 6345173 
Fax +31 (0)20 6345179
arje(at)hippo(dot)nl / www.hippo.nl



-Oorspronkelijk bericht-
Van: Alexander Schatten [mailto:[EMAIL PROTECTED]]
Verzonden: 03 July 2002 00:25
Aan: [EMAIL PROTECTED]
Onderwerp: HTML Serializer Problems: xhtml instead of html?!


Problem: (Win 98 Tomcat 4.04, Cocoon 2)

I perform a XML/XSLT transformation with HTML serializer.

unfortunately, the result is not html but xhtml, which is not so good
when the client is e.g. netscape 4.7, who does not recognize br / for
example.

in my understanding, the html serializer should make correct html, not
xhtml?!


thank you


Alex



-
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: HTML Serializer Problems: xhtml instead of html?!

2002-07-03 Thread Manos Batsis



Try setting the output method appropriately:

xsl:output method=html indent=yes/

Hth,

Manos



 -Original Message-
 From: Arje Cahn [mailto:[EMAIL PROTECTED]] 
 Sent: Wednesday, July 03, 2002 4:07 PM
 To: [EMAIL PROTECTED]
 Subject: RE: HTML Serializer Problems: xhtml instead of html?!
 
 
 Can you post (part of) your XSL? 
 
 Regards,
 
 Arjé Cahn
 
 
 -
 Content Management Department
 Hippo Webworks
 Grasweg 35
 1031 HW Amsterdam
 The Netherlands
 Tel  +31 (0)20 6345173 
 Fax +31 (0)20 6345179
 arje(at)hippo(dot)nl / www.hippo.nl
 
 
 
 -Oorspronkelijk bericht-
 Van: Alexander Schatten [mailto:[EMAIL PROTECTED]]
 Verzonden: 03 July 2002 00:25
 Aan: [EMAIL PROTECTED]
 Onderwerp: HTML Serializer Problems: xhtml instead of html?!
 
 
 Problem: (Win 98 Tomcat 4.04, Cocoon 2)
 
 I perform a XML/XSLT transformation with HTML serializer.
 
 unfortunately, the result is not html but xhtml, which is not so good
 when the client is e.g. netscape 4.7, who does not recognize 
 br / for
 example.
 
 in my understanding, the html serializer should make 
 correct html, not
 xhtml?!
 
 
 thank you
 
 
 Alex
 
 
 
 -
 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: Refresh Problem Cocoon 2

2002-07-03 Thread Willy Picard

Hi.
 Cocoon does usually not refresh its transformation result when the XML 
 or XSLT file(s) are modified. sometimes a restart of the tomcat server 
 is necessary? what could be the problem?
If you are using xsl:import and/or xsl:include and Cocoon 2.0.2 or
less, this is an identified bug and it has already been fixed in CVS.

Hope it helps!

Willy 

-- 
Willy Picarde-mail: [EMAIL PROTECTED]
Dept. of Information Technology www:http://www.kti.ae.poznan.pl/
The Poznan University of Economics  tel:+48 618 48 05 49
Mansfelda 4, 60-854 Poznan, Poland  fax:+48.618 48 38.40


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




AW: Form Validator - RESOLVED ! Need a Patch ?

2002-07-03 Thread Sascha Kulawik

Has been done !

 -Ursprüngliche Nachricht-
 Von: Piroumian Konstantin [mailto:[EMAIL PROTECTED]] 
 Gesendet: Mittwoch, 3. Juli 2002 14:49
 An: '[EMAIL PROTECTED]'
 Betreff: RE: Form Validator - RESOLVED ! Need a Patch ?
 
 
 Would you please post the patch to Bugzilla as described in: 
 http://xml.apache.org/cocoon/howto/howto-patch.html ?
 
 Konstantin
 
  From: Sascha Kulawik [mailto:[EMAIL PROTECTED]]
  
  The diff for AbstractValidatorAction.java is:
  564a565,566
   }catch (NullPointerException e) {
   return true;
  578a581,582
   } catch (NullPointerException e) {
   dflt = ;
  
  Greetings,
  Sascha
  
  
  
 -
  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: Refresh Problem Cocoon 2

2002-07-03 Thread Hahn Kurt (CHA)

And sometimes it's your browser that's hanging. In IE under Windows, event
emptying the cache has sometimes no effect...

-Message d'origine-
De : Willy Picard [mailto:[EMAIL PROTECTED]]
Envoyé : mercredi, 3. juillet 2002 15:15
À : cocoon-users
Objet : Re: Refresh Problem Cocoon 2


Hi.
 Cocoon does usually not refresh its transformation result when the XML 
 or XSLT file(s) are modified. sometimes a restart of the tomcat server 
 is necessary? what could be the problem?
If you are using xsl:import and/or xsl:include and Cocoon 2.0.2 or
less, this is an identified bug and it has already been fixed in CVS.

Hope it helps!

Willy 

-- 
Willy Picarde-mail: [EMAIL PROTECTED]
Dept. of Information Technology www:http://www.kti.ae.poznan.pl/
The Poznan University of Economics  tel:+48 618 48 05 49
Mansfelda 4, 60-854 Poznan, Poland  fax:+48.618 48 38.40


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




cactus or not ?

2002-07-03 Thread Othman Haddad








  
  hi,
  i've an application based on cocoon2.02 and 
  tomcat without Apache httpd server..
  what is the best way to test it?, is Cactus 
  ok for this, or it's better to use something else?
  thanks for your help 






	
	
	
	
	
	
	




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



RE: cant find avalon conponents

2002-07-03 Thread icewind

Things don't get that far. I put the cocoon.war file
in the $TOMCAT_HOME/webapps directory and it never
gets unpacked successully.

I tried copying the avalon jars from tomcats cache
directory to $TOMCAT/common/lib but that didnt help
either.

Im running Debian with Tomcat 4.0.3 (debian package)
and using the latest cocoon release (from the web
site)


--Dan

--- Themba Mbatha [EMAIL PROTECTED]
wrote:
 Make sure that all the jar files that came with
 Cocoon are in the lib
 directory ($TOMCAT_HOME/webapps/cocoon/WEB-INF/lib).
 
 
 -Original Message-
 From: icewind [mailto:[EMAIL PROTECTED]]
 Sent: 02 July 2002 10:49
 To: [EMAIL PROTECTED]
 Subject: cant find avalon conponents
 
 
 Hello,
 
 I installed the cocoon war file in the webapps dir
 of
 tomcat (tomcat works) and when I tried to access
 cocoon, I got a really big error message starting
 with
 the following:
 
 description org.apache.cocoon.ProcessingException:
 Language Exception:

org.apache.cocoon.components.language.LanguageException:
 Error compiling sitemap_xmap: Line 22, column 49:
 cannot access class Component; file

org/apache/avalon/framework/component/Component.class
 not found Line 23, column 53: cannot access class
 Configurable; file
 
 
 this goes on and on with all the components in
 avalon
 not being found...
 
 
 When I took a look in tomcat's work directory, i did
 find the avalon jars in localhost/cocoon/WEB-INF.
 
 Im not sure how to fix this problem.. anyone know
 how
 to get cocoon (or tomcat) to see the avalon jars it
 cant seem to see now?
 
 Thanks.
 
 
 __
 Do You Yahoo!?
 Sign up for SBC Yahoo! Dial - First Month Free
 http://sbc.yahoo.com
 

-
 Please check that your question  has not already
 been answered in the
 FAQ before posting.
 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]

__
Do You Yahoo!?
Sign up for SBC Yahoo! Dial - First Month Free
http://sbc.yahoo.com

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

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




RE: cant find avalon conponents

2002-07-03 Thread icewind

Things don't get that far. I put the cocoon.war file
in the $TOMCAT_HOME/webapps directory and it never
gets unpacked successully.

I tried copying the avalon jars from tomcats cache
directory to $TOMCAT/common/lib but that didnt help
either.

Im running Debian with Tomcat 4.0.3 (debian package)
and using the latest cocoon release (from the web
site)


--Dan

--- Themba Mbatha [EMAIL PROTECTED]
wrote:
 Make sure that all the jar files that came with
 Cocoon are in the lib
 directory ($TOMCAT_HOME/webapps/cocoon/WEB-INF/lib).
 
 
 -Original Message-
 From: icewind [mailto:[EMAIL PROTECTED]]
 Sent: 02 July 2002 10:49
 To: [EMAIL PROTECTED]
 Subject: cant find avalon conponents
 
 
 Hello,
 
 I installed the cocoon war file in the webapps dir
 of
 tomcat (tomcat works) and when I tried to access
 cocoon, I got a really big error message starting
 with
 the following:
 
 description org.apache.cocoon.ProcessingException:
 Language Exception:

org.apache.cocoon.components.language.LanguageException:
 Error compiling sitemap_xmap: Line 22, column 49:
 cannot access class Component; file

org/apache/avalon/framework/component/Component.class
 not found Line 23, column 53: cannot access class
 Configurable; file
 
 
 this goes on and on with all the components in
 avalon
 not being found...
 
 
 When I took a look in tomcat's work directory, i did
 find the avalon jars in localhost/cocoon/WEB-INF.
 
 Im not sure how to fix this problem.. anyone know
 how
 to get cocoon (or tomcat) to see the avalon jars it
 cant seem to see now?
 
 Thanks.
 
 
 __
 Do You Yahoo!?
 Sign up for SBC Yahoo! Dial - First Month Free
 http://sbc.yahoo.com
 

-
 Please check that your question  has not already
 been answered in the
 FAQ before posting.
 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]

__
Do You Yahoo!?
Sign up for SBC Yahoo! Dial - First Month Free
http://sbc.yahoo.com

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

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




RE: [Possible Bug] TextSerializer loses characters with ASCII encoding?

2002-07-03 Thread Lai, Harry

Hi all,

So I _think_ I've fixed this bug.  In the AbstractTextSerializer, the
setOutputStream method wraps the incoming output stream in a
BufferedOutputStream.  However, no class reference is kept to this BOS, so
it never gets flushed at the end of the document.  I made the BOS a class
variable (instead of a local method variable), and added an endDocument()
implementation that flushes the BOS and sets it to null (and then invokes
the superclass's endDocument() method).  This seems to fix the problem.

What I still don't understand, though, is why this only occurred when I used
the ASCII encoding.  I'm guessing this is because I don't fully understand
how the serializers handle encoding, but if anyone can provide some
insights, that would be great.  Thanks!

Harry



-Original Message-
From: Lai, Harry [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 02, 2002 2:30 PM
To: '[EMAIL PROTECTED]'
Subject: RE: [Possible Bug] TextSerializer loses characters with ASCII
enc odin g?


I should also mention that I'm using Saxon 6.5 as my XSLT engine.

Harry

-Original Message-
From: Lai, Harry [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 02, 2002 2:19 PM
To: 'Cocoon Users'
Subject: [Possible Bug] TextSerializer loses characters with ASCII
encodin g?


Hi folks,

I'm seeing some really odd behavior with serializers, and wanted to see if
anyone had seen this before (or better yet) knows what's causing this.  =)

PROBLEM:
If I set an XML, HTML, or Text serializer's encoding to ASCII, I end up
losing the tail end of my output (roughly 1-1000 characters).  I think it
has to do with the buffered output stream not being properly closed/flushed,
but I'm not sure.

ENVIRONMENT:
Cocoon 2.0.2 running on JBoss 2.4.5 with Tomcat 4.0.3.  Win2k.

WORKAROUNDS:
I can make this problem go away by doing either of the following:
  1. Change the encoding to UTF-8 or ISO-8859-1.
  2. Change the buffer-size to 1 (tried with values from 1-2048;
 was still seeing the problem with values as low as 10).

REPRODUCING THE BUG:
From what I'm seeing, you can reproduce this bug by having a reasonably
large buffer (larger than 10 bytes) and switching any TextSerializer-based
serializer's encoding to ASCII.  Here's a sample from my sitemap:

map:serializer name=css mime-type=text/css
logger=sitemap.serializer.css
src=org.apache.cocoon.serialization.TextSerializer
pool-max=64 pool-min=16 pool-grow=4
buffer-size2048/buffer-size
encodingASCII/encoding
/map:serializer

Any thoughts, suggestions, ideas, etc. would be greatly appreciated.
Thanks!

Harry

PS  The main reason this comes up is for a dynamic css pipeline, which I'd
like to be character set agnostic (hence, the ASCII encoding).  I only
tested it with the HTML and XML serializer to make sure it wasn't something
specific to my css pipeline.

-- 
Harry Lai 
[EMAIL PROTECTED] 
512.682.1101 x2170 

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




LogicSheet not executing

2002-07-03 Thread Eric Dalquist

I'm trying to create a logicsheet to act as a page hit counter. I want to
expand on the functionality of cocoon's counter but I'm having problems
getting the simplest of logicsheets to work correctly. Cocoon finds the
logic sheet ok but applies it as if it were a plain style sheet. None of the
xsp tags are parsed or executed. I'm running Cocoon 2.0.2-dev, Tomcat 4.1.3b
and JDK1.4. I know the logicsheet is pretty much pointless right now but I
figured I'd try to get something simple working first. Here are my files and
directory structure.

-Eric Dalquist


TOMCAT
\WebApps
\cocoon
\WEB-INF
coccon.xconf
\logicsheets
pgutil.xsl
page_info.xsp



Here is my logicsheet definition in cocoon.xconf:
  markup-languages
xsp-language logger=core.markup.xsp name=xsp
  parameter name=prefix value=xsp/
  parameter name=uri value=http://apache.org/xsp/

  target-language name=java

 !-- ... a bunch of built in logicsheets ... --

builtin-logicsheet
  parameter name=prefix value=pgutil/
  parameter name=uri
value=http://www.incoherentramlbings.net/XML/xmlns/pgutil/1.0/
  parameter name=href value=file:///C:/Program Files/Apache
Group/Tomcat 4.1/webapps/cocoon/logicsheets/pgutil.xsl/
/builtin-logicsheet

!-- all the tags are actually closed --





Here is the logicsheet:
?xml version=1.0?
xsl:stylesheet
xmlns:xsl=http://www.w3.org/1999/XSL/Transform;
xmlns:xsp=http://www.apache.org/1999/XSP/Core;
xmlns:esql=http://apache.org/cocoon/SQL/v2;

xmlns:pgutil=http://www.incoherentramlbings.net/XML/xmlns/pgutil/1.0;
version=1.0

!-- rewrite the page --
xsl:template match=xsp:page
xsl:copy
xsl:apply-templates select=@*/
xsl:apply-templates/
/xsl:copy
/xsl:template

!-- a counter for any page, matches on its uri --
xsl:template match=pgutil:page-counter
xsp:logic
String uri = request.getRequestURI();

pageURIxsp:expruri/xsp:expr/pageURI
/xsp:logic
/xsl:template

!-- This template simply copies stuff that doesn't match other --
!-- templates and applies templates to any children.   --
xsl:template match=@*|node() priority=-1
xsl:copy
xsl:apply-templates select=@*|node()/
/xsl:copy
/xsl:template

/xsl:stylesheet





Here is the XSP I'm trying to use the logicsheet in:
?xml version=1.0 encoding=ISO-8859-1?

xsp:page
language=java
xmlns:xsp=http://apache.org/xsp;
xmlns:esql=http://apache.org/cocoon/SQL/v2;
xmlns:xsp-session=http://apache.org/xsp/session/2.0;
xmlns:pgutil=http://www.incoherentramlbings.net/XML/xmlns/pgutil/1.0;


page
page_header/
page_body
pgutil:page-counter/
/page_body
/page
/xsp:page






-
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: cocoon or Axkit?

2002-07-03 Thread Alexandru COSTIN

Hello,
You might also like to test Krysalis, it does pretty the same thing
like Cocoon in PHP, using Sablotron as the XSLT transformer.
We are still working to make the solution faster as for now our
pipeline has a pretty slow implementation, but you might consider giving
it a try.
Alexandru

On Tue, 2002-06-18 at 16:36, Peter Royal wrote:
 On Tuesday 18 June 2002 05:08 am, markus jais wrote:
  does anybody have experiece with both Axkit and cocoon?
 
 I used AxKit around with 1.0 was just released. The biggest thing, are you 
 more comfortable in perl or java?
 -pete
 
 -- 
 peter royal - [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]
-- 
Alexandru COSTIN
Sales Manager
http://www.interakt.ro/
+4021 411 2610


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




castorTransformer

2002-07-03 Thread Othman Haddad








  hi,
  where can i get th CastorTransformer and it's documentation?
  thanks for your help?





	
	
	
	
	
	
	




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



RE: castorTransformer

2002-07-03 Thread Piroumian Konstantin
Title: Message




Source: 
xml-cocoon\src\scratchpad\src\org\apache\cocoon\transformation\CastorTransformer.java 

Samples: 
xml-cocoon\src\scratchpad\webapp\mount\castor\
Docs: 
xml-cocoon\src\scratchpad\webapp\mount\castor\doc\castortransformer.xml 


-- 
Konstantin Piroumian 
[EMAIL PROTECTED] 

  
  -Original Message-From: Othman Haddad 
  [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 03, 2002 7:43 
  PMTo: cocoon user listSubject: 
  castorTransformer
  


  
hi,
where can i get th CastorTransformer and it's documentation?
thanks for your help?

  

  
  


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


Réf. : RE: castorTransformer

2002-07-03 Thread Othman Haddad








  thanks a lot
  
  ---Message original---
  
  
  De : [EMAIL PROTECTED]
  Date : mercredi 03 
  juillet 2002 17:46:35
  A : '[EMAIL PROTECTED]'
  Sujet : RE: 
  castorTransformer
  
  
  Source: 
  xml-cocoon\srcINCREDI_LINK_PLACEHOLDER_803 lang=ru 
  

-Original Message-From: Othman Haddad 
[mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 03, 
2002 7:43 PMTo: cocoon user listSubject: 
castorTransformer

  
  

  hi,
  where can i get th CastorTransformer and it's 
  documentation?
  thanks for your help?
  

  


  
  
  
  





	
	
	
	
	
	
	




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



RE: session...

2002-07-03 Thread Vadim Gritsenko

 From: zze-STIENNE Nicolas FTRD/DMI/CAE
 
 [bis: I indicated a false title]
 
 Hi !!
 
  I reuse the Webapp sample protected area.
 
 Once the identification done, I arrived on the protected page. But
how
 could I do to go into another page without quiting the protected
zone.
 
 I mean : if there is a link on my protected page how could I do to
 stay in a protected state ?

Have you seen sitemap?

  !--  --
  !-- Protected area   --
  !--  --
...
!-- first validate whether user has logged in --
map:act type=session-validator
  map:parameter name=descriptor
value=context://protected//descriptors/params.xml/
  map:parameter name=validate
value=username,department_id,theme/
  !-- generate protected content --
...


Vadim


 At the moment, as I go to another page, the data transmit by the
session
 (session:get-attribute name=id/) are unavailable...
 
 Thanks, Nicolas !!


-
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 - problem using simple.xsp in a different workspace

2002-07-03 Thread Vadim Gritsenko

 From: Diego Lluna [mailto:[EMAIL PROTECTED]]
 
 hi,
 
 i've copied, textual, the simple.xsp example file provided
 in cocoon 2.0.1 into a different workspace, for trial.
 
 this workspace processes requests fine (xml, jsp, js, xsl...)

(xsp ?)


 but shows this error when requesting the simple.xsp file:
 
 The org.apache.cocoon.www.sitemap_xmap notifies that
 org.apache.cocoon.ProcessingException says:
 
 markup-languages: ComponentSelector could not access the Component for
hint:
 xsp

Looks like you don't have xsp language definition in the cocoon.xconf.
...

 Besides, when i start apache 4.0.3, i get this error in the command
line:

Apache 4.0.3? May be Tomcat 4.0.3? In any case, upgrade to 4.0.4 is
highly advised.

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]




Problems with parsing output from XML file WITHOUT spaces

2002-07-03 Thread Sascha Kulawik

Ive a XSP file with some kind of those arguments:
xsp:attribute name=id
esql:get-string column=id/
/xsp:attribute

After getting the output serialized though my XSLT like this:
xsl:attribute name=HREF../messagetopics/forum.xsp?id=xsl:value-of
select=@id//xsl:attribute
There are always spaces between the id= and the value.

This is an example:
forum.xsp?id=%201%20

If i will create the XSP file like this:
xsp:attribute name=idesql:get-string column=id//xsp:attribute
(without spaces and crlf) there is no further problem.
(but my eyes want a better readable format for those files :)

Is that a problem of cocoon ? (Im using 2.0.2)

Thanks a lot,

Sascha


-
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: Problems with parsing output from XML file WITHOUT spaces

2002-07-03 Thread Argyn Kuketayev

it's not a problem. it's how it works.

 -Original Message-
 From: Sascha Kulawik [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, July 03, 2002 12:20 PM
 To: [EMAIL PROTECTED]
 Subject: Problems with parsing output from XML file WITHOUT spaces
 
 
 Is that a problem of cocoon ? (Im using 2.0.2)

-
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: Are aggregators and SVG/JPEG Serializer cacheable?

2002-07-03 Thread Vadim Gritsenko

 From: Willy Picard [mailto:[EMAIL PROTECTED]]
 
 Hi.
 
 I'm trying to generate rollon images with the SVG/JPEG serializer
 and an aggregator. I would like the browser to cache
 the generated images.
 
 So here are my question(s):
 1) are aggregators and SVG/JPEG serializer cacheable?

Yes - sitemap and CachingCInclude, No - CInclude, XInclude.


 2) is it possible to send additional HTTP header (such as
 Last-Modified header) from Cocoon?

Simple custom action could be used for that in 2.0.3.
Last-Modified is (should be) automatically set by Cocoon is response is
cached, see HttpEnvironment.java


Vadim


 Thanks,
 Willy Picard
 PS: I'm using Cocoon 2.0.2 in Tomcat 3.3 with JDK 1.3
 --
 Willy Picarde-mail: [EMAIL PROTECTED]
 Dept. of Information Technology www:
http://www.kti.ae.poznan.pl/
 The Poznan University of Economics  tel:+48 618 48 05 49
 Mansfelda 4, 60-854 Poznan, Poland  fax:+48.618 48 38.40


-
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: LogicSheet not executing

2002-07-03 Thread Naquin, Beth
Title: RE: LogicSheet not executing





Look at the namespace declaration for xsp in your logicsheet. It is not right and it does not match the xsp namespace used in your xsp file.

Use:


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


-Original Message-
From: Eric Dalquist [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 03, 2002 8:06 AM
To: [EMAIL PROTECTED]
Subject: LogicSheet not executing



I'm trying to create a logicsheet to act as a page hit counter. I want to
expand on the functionality of cocoon's counter but I'm having problems
getting the simplest of logicsheets to work correctly. Cocoon finds the
logic sheet ok but applies it as if it were a plain style sheet. None of the
xsp tags are parsed or executed. I'm running Cocoon 2.0.2-dev, Tomcat 4.1.3b
and JDK1.4. I know the logicsheet is pretty much pointless right now but I
figured I'd try to get something simple working first. Here are my files and
directory structure.


-Eric Dalquist



TOMCAT
 \WebApps
 \cocoon
 \WEB-INF
 coccon.xconf
 \logicsheets
 pgutil.xsl
 page_info.xsp




Here is my logicsheet definition in cocoon.xconf:
 markup-languages
 xsp-language logger=core.markup.xsp name=xsp
 parameter name=prefix value=xsp/
 parameter name=uri value=http://apache.org/xsp/


 target-language name=java


 !-- ... a bunch of built in logicsheets ... --


 builtin-logicsheet
 parameter name=prefix value=pgutil/
 parameter name=uri
value=http://www.incoherentramlbings.net/XML/xmlns/pgutil/1.0/
 parameter name=href value=file:///C:/Program Files/Apache
Group/Tomcat 4.1/webapps/cocoon/logicsheets/pgutil.xsl/
 /builtin-logicsheet


 !-- all the tags are actually closed --






Here is the logicsheet:
?xml version=1.0?
xsl:stylesheet
 xmlns:xsl=http://www.w3.org/1999/XSL/Transform
 xmlns:xsp=http://www.apache.org/1999/XSP/Core
 xmlns:esql=http://apache.org/cocoon/SQL/v2


xmlns:pgutil=http://www.incoherentramlbings.net/XML/xmlns/pgutil/1.0
 version=1.0


!-- rewrite the page --
xsl:template match=xsp:page
 xsl:copy
 xsl:apply-templates select=@*/
 xsl:apply-templates/
 /xsl:copy
/xsl:template


!-- a counter for any page, matches on its uri --
xsl:template match=pgutil:page-counter
 xsp:logic
 String uri = request.getRequestURI();


 pageURIxsp:expruri/xsp:expr/pageURI
 /xsp:logic
/xsl:template


!-- This template simply copies stuff that doesn't match other --
!-- templates and applies templates to any children. --
xsl:template match=@*|node() priority=-1
 xsl:copy
 xsl:apply-templates select=@*|node()/
 /xsl:copy
/xsl:template


/xsl:stylesheet






Here is the XSP I'm trying to use the logicsheet in:
?xml version=1.0 encoding=ISO-8859-1?


xsp:page
 language=java
 xmlns:xsp=http://apache.org/xsp
 xmlns:esql=http://apache.org/cocoon/SQL/v2
 xmlns:xsp-session=http://apache.org/xsp/session/2.0
 xmlns:pgutil=http://www.incoherentramlbings.net/XML/xmlns/pgutil/1.0
 


 page
 page_header/
 page_body
 pgutil:page-counter/
 /page_body
 /page
/xsp:page







-
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: Clean Cocoon

2002-07-03 Thread Ricardo Trindade

Hi,

I agree, I started a thread with exactly the same content a while ago, some
people were against, some were for it.

I thinks this is essential to simplify cocoon deployment, and to guarantee
that most installations are out of the box.

A lot of people answered that a ant build target existed which did
something like that. If it does, why not release the built release as a
binary ? There are a lot of users that don't want to compile cocoon, and
shouldn't be forced to do it. I think the ability to use binaries most of
the time is a sign of stability...

-Original Message-
From: Alexander Schatten [mailto:[EMAIL PROTECTED]]
Sent: terca-feira, 2 de Julho de 2002 23:29
To: [EMAIL PROTECTED]
Subject: Clean Cocoon


As there was a long discussion about Cocoon problems, I want to adress
another one:

It is fine to have examples in the Cocoon installation, but in
production use, you need a clean cocoon installation.

this is not SO easy, as you have to remove all unnecessary sitemap
entries, as well as example data...


So it should be possible to download a clean cocoon version for
production use, containing only the necessary sitemap entries for the
standard serializers, generators...


this would be extremely useful.


the second best version would be a documentation how to remove the
unecessary stuff.




Alex


-
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: LogicSheet not executing

2002-07-03 Thread Eric Dalquist
Title: RE: LogicSheet not executing



Beth,
 Thanks for the fix, all I have 
to say is sorry for bugging everyone :-) I had copied a logicsheet from a friend 
who is running and older version of cocoon and didn't even think about the xsp 
namespace.

-Eric Dalquist

  - Original Message - 
  From: 
  Naquin, 
  Beth 
  To: '[EMAIL PROTECTED]' 
  
  Sent: Wednesday, July 03, 2002 1:21 
  PM
  Subject: RE: LogicSheet not 
  executing
  
  Look at the namespace declaration for xsp in your 
  logicsheet. It is not right and it does not match the xsp namespace used 
  in your xsp file.
  Use: 
  xmlns:xsp="http://apache.org/xsp" 
  -Original Message- From: Eric 
  Dalquist [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 03, 2002 8:06 AM To: [EMAIL PROTECTED] 
  Subject: LogicSheet not executing 
  I'm trying to create a logicsheet to act as a page hit 
  counter. I want to expand on the functionality of 
  cocoon's counter but I'm having problems getting the 
  simplest of logicsheets to work correctly. Cocoon finds the logic sheet ok but applies it as if it were a plain style sheet. None 
  of the xsp tags are parsed or executed. I'm running 
  Cocoon 2.0.2-dev, Tomcat 4.1.3b and JDK1.4. I know the 
  logicsheet is pretty much pointless right now but I figured I'd try to get something simple working first. Here are my 
  files and directory structure. 
  -Eric Dalquist 
  TOMCAT  
  \WebApps  
  \cocoon  
  \WEB-INF  
  coccon.xconf  
  \logicsheets  
  pgutil.xsl  
  page_info.xsp 
   
   Here is my logicsheet definition 
  in cocoon.xconf:  
  markup-languages  
  xsp-language logger="core.markup.xsp" name="xsp"  parameter name="prefix" 
  value="xsp"/  
  parameter name="uri" value="http://apache.org/xsp"/ 
   target-language 
  name="java" 
   !-- ... a 
  bunch of built in logicsheets ... -- 
   
  builtin-logicsheet  parameter 
  name="prefix" value="pgutil"/  parameter 
  name="uri" value="http://www.incoherentramlbings.net/XML/xmlns/pgutil/1.0"/ 
   
  parameter name="href" value="file:///C:/Program Files/Apache Group/Tomcat 4.1/webapps/cocoon/logicsheets/pgutil.xsl"/ 
   
  /builtin-logicsheet 
   !-- all the tags are actually closed 
  --  
   
   
   Here is the logicsheet: 
  ?xml version="1.0"? xsl:stylesheet  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"  xmlns:xsp="http://www.apache.org/1999/XSP/Core"  xmlns:esql="http://apache.org/cocoon/SQL/v2" 
  xmlns:pgutil="http://www.incoherentramlbings.net/XML/xmlns/pgutil/1.0" 
   
  version="1.0" 
  !-- rewrite the page -- xsl:template match="xsp:page"  xsl:copy  xsl:apply-templates 
  select="@*"/  
  xsl:apply-templates/  
  /xsl:copy /xsl:template 
  !-- a counter for any page, matches on its uri 
  -- xsl:template 
  match="pgutil:page-counter"  
  xsp:logic  String uri = 
  request.getRequestURI(); 
   
  pageURIxsp:expruri/xsp:expr/pageURI 
   /xsp:logic /xsl:template 
  !-- This template simply copies stuff that doesn't match 
  other -- !-- templates and applies templates 
  to any children. 
  -- xsl:template match="@*|node()" 
  priority="-1"  
  xsl:copy  xsl:apply-templates 
  select="@*|node()"/  
  /xsl:copy /xsl:template 
  /xsl:stylesheet  
   
   
   Here is the XSP I'm trying to 
  use the logicsheet in: ?xml version="1.0" 
  encoding="ISO-8859-1"? 
  xsp:page  
  language="java"  xmlns:xsp="http://apache.org/xsp" 
   xmlns:esql="http://apache.org/cocoon/SQL/v2"  xmlns:xsp-session="http://apache.org/xsp/session/2.0"  xmlns:pgutil="http://www.incoherentramlbings.net/XML/xmlns/pgutil/1.0" 

   page  page_header/ 
   
  page_body  
  pgutil:page-counter/  /page_body 
   /page /xsp:page  
   
  - 
  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] 


How to use xsp-request:get-parameters-values logicsheet tag

2002-07-03 Thread Matthew Hailstone

I'm trying to access multiple values of a request parameter resulting
from a multiple select HTML element.

String stateString = CA;
int iLengthStateString = 0;
for( int i=0; i lt; xsp-request:get-parameter-values
name=state/.getSize() ; i++ ){
  stateString += ((i0? :) +
xsp-request:get-parameter-values name=state/.getElement(i));
}
iLengthStateString = stateString.length();
xsp-session:set-attribute
name=statexsp:exprstateString/xsp:expr/xsp-session:set-attribute

field id=state label=State type=text enable=false
  sizexsp:expriLengthStateString/xsp:expr/size
  valuexsp:exprstateString/xsp:expr/value
/field

It looks like in the generated .java file that I'm using the
xsp-request:get-parameter-values name=state/ tag incorrectly. I'm
expecting it to return an ArrayList or Vector or something, but it's
not. I've looked in the online documentation
(http://xml.apache.org/cocoon/userdocs/xsp/request.html) but I'm not
understanding the as attribute and/or how to use it in an example of
code. Any thoughts on this would be extremely helpful.

Environment:  Tomcat 4.1.3, Cocoon 2.1-dev

Thanks,

Matthew

P.S. Here is the compile exception:

  XSPRequestHelper.getParameterValues(objectModel,
this.contentHandler,
  state,
  null,
  null);

// start error (lines 783-783)  illegal start of expression
.getSize() ; i++ ){

// end error
  stateString += ((i0? :) + 
  XSPRequestHelper.getParameterValues(objectModel,
this.contentHandler,
  state,
  null,

...
ERROR 2 (D:\apps\Tomcat
4.1\work\Standalone\localhost\cocoon\cocoon-files\org/apache/cocoon/www/
eval/logic\form_xsp.java):
...
  XSPRequestHelper.getParameterValues(objectModel,
this.contentHandler,
  state,
  null,
  null);

// start error (lines 783-783)  ';' expected
.getSize() ; i++ ){

// end error
  stateString += ((i0? :) + 
  XSPRequestHelper.getParameterValues(objectModel,
this.contentHandler,
  state,
  null,

...
ERROR 3 (D:\apps\Tomcat
4.1\work\Standalone\localhost\cocoon\cocoon-files\org/apache/cocoon/www/
eval/logic\form_xsp.java):
...
  else{
String stateString = UT;
int iLengthStateString = 0;
for( int i=0; i  

// start error (lines 779-779)  'void' type not allowed here
  XSPRequestHelper.getParameterValues(objectModel,
this.contentHandler,

// end error
  state,
  null,
  null);
.getSize() ; i++ ){

...
ERROR 4 (D:\apps\Tomcat
4.1\work\Standalone\localhost\cocoon\cocoon-files\org/apache/cocoon/www/
eval/logic\form_xsp.java):
...
  XSPRequestHelper.getParameterValues(objectModel,
this.contentHandler,
  state,
  null,
  null);

// start error (lines 783-783)  variable i not found in class
org.apache.cocoon.www.eval.logic.form_xsp
.getSize() ; i++ ){

// end error
  stateString += ((i0? :) + 
  XSPRequestHelper.getParameterValues(objectModel,
this.contentHandler,
  state,
  null,

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




debian tomcat4 cocoon war file deployment problems

2002-07-03 Thread icewind

Im using debian and have the latest tomcat4 package
installed (tomcat 4.0.3) Instead of using the cocoon2
debian package, I opted for the cocoon.war file that I
downloaded off the web. 

When I put the cocoon.war file in $TOMCAT_HOME/webapps
and restart tomcat, I get errors. The errors start off
like this:

org.apache.cocoon.ProcessingException: Language
Exception:
org.apache.cocoon.components.language.LanguageException:
Error compiling sitemap_xmap: Line 22, column 49:
cannot access class Component; file
org/apache/avalon/framework/component/Component.class
not found Line 23, column 53: cannot access class
Configurable; file
org/apache/avalon/framework/configuration/Configurable.class
not found Line 24, column 53: cannot access class
Configuration; file
org/apache/avalon/framework/configuration/Configuration.class
not found Line 25, column 53: cannot access class
ConfigurationException; file
org/apache/avalon/framework/configuration/ConfigurationException.class
not found Line 26, column 53: cannot access class
DefaultConfiguration; file
org/apache/avalon/framework/configuration/DefaultConfiguration.class
not found Line 27, column 50: cannot access class
Parameters;


As you can see, the jar files are not being
recgonized. coocoon.war gets extracted into the
$TOMCAT_HOME/work/localhost/cocoon directory, but a
cocoon directory is not created in
$TOMCAT_HOME/webapps. 

I can get cocoon to work if I install the cocoon.war
file on ANOTHER MACHINE, restart tomcat on that
machine, and it will extract cocoon succesfully from
the war file. I can then tar up that cocoon directory
from the other machine and send it over to the
broken machine and cocoon will run fine.

I guess what this boils down to is the tomcat cant
extract my cocoon.war If anyone knows what what might
cause this, I would be interested in knowing. I'm
inclined to think it is more of a tomcat issue than a
cocoon one because the same war file deploys correctly
on a redhat machine running the same version of tomcat
as well as the broken debian machine running Resin. 

Thanks for any help.

--iw0

__
Do You Yahoo!?
Sign up for SBC Yahoo! Dial - First Month Free
http://sbc.yahoo.com

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

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




AW: debian tomcat4 cocoon war file deployment problems

2002-07-03 Thread Philipp Bo?em

could be a problem wether with your jdk version, there is quit a good
dokumentation on the cocoon homepage about the differnt distributions and
jdks

-Ursprungliche Nachricht-
Von: icewind [mailto:[EMAIL PROTECTED]]
Gesendet: Mittwoch, 3. Juli 2002 19:55
An: [EMAIL PROTECTED]
Betreff: debian tomcat4 cocoon war file deployment problems


Im using debian and have the latest tomcat4 package
installed (tomcat 4.0.3) Instead of using the cocoon2
debian package, I opted for the cocoon.war file that I
downloaded off the web.

When I put the cocoon.war file in $TOMCAT_HOME/webapps
and restart tomcat, I get errors. The errors start off
like this:

org.apache.cocoon.ProcessingException: Language
Exception:
org.apache.cocoon.components.language.LanguageException:
Error compiling sitemap_xmap: Line 22, column 49:
cannot access class Component; file
org/apache/avalon/framework/component/Component.class
not found Line 23, column 53: cannot access class
Configurable; file
org/apache/avalon/framework/configuration/Configurable.class
not found Line 24, column 53: cannot access class
Configuration; file
org/apache/avalon/framework/configuration/Configuration.class
not found Line 25, column 53: cannot access class
ConfigurationException; file
org/apache/avalon/framework/configuration/ConfigurationException.class
not found Line 26, column 53: cannot access class
DefaultConfiguration; file
org/apache/avalon/framework/configuration/DefaultConfiguration.class
not found Line 27, column 50: cannot access class
Parameters;


As you can see, the jar files are not being
recgonized. coocoon.war gets extracted into the
$TOMCAT_HOME/work/localhost/cocoon directory, but a
cocoon directory is not created in
$TOMCAT_HOME/webapps.

I can get cocoon to work if I install the cocoon.war
file on ANOTHER MACHINE, restart tomcat on that
machine, and it will extract cocoon succesfully from
the war file. I can then tar up that cocoon directory
from the other machine and send it over to the
broken machine and cocoon will run fine.

I guess what this boils down to is the tomcat cant
extract my cocoon.war If anyone knows what what might
cause this, I would be interested in knowing. I'm
inclined to think it is more of a tomcat issue than a
cocoon one because the same war file deploys correctly
on a redhat machine running the same version of tomcat
as well as the broken debian machine running Resin.

Thanks for any help.

--iw0

__
Do You Yahoo!?
Sign up for SBC Yahoo! Dial - First Month Free
http://sbc.yahoo.com

-
Please check that your question  has not already been answered in the
FAQ before posting. 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]




Advice re: Stylesheet Parameters

2002-07-03 Thread Jason Foster

I was hoping to get some advice from the group on the proper way to 
acquire stylesheet parameters from a user and to use them in a 
transformation.

My plan is to have an HTML form (an XForm can come later) that collects the 
values for all sorts of parameters, such as...

xsl:param name=generate.index select=1/
xsl:param name=toc.section.depth2/xsl:param

... and to collect these parameters once the form is submitted.

I realize that there are a number of ways that I could do this, but I was 
hoping that the list could help me enumerate my choices and provide 
information on the strengths and weaknesses of each choice.  One thing to 
keep in mind is that a number of these parameters are best represented as 
checkboxes, so I will have to deal with the usual problem of HTML form 
encoding :(

This information is likely to be of use to other Cocoon users, so I will 
volunteer to collate and submit the results to the list.

Thanks for any help.

Jason Foster

P.S.  For those of you who are wondering, I'm trying to create a Test Your 
DocBook web page where you can upload your source file and have a PDF file 
returned.  Thanks to Saxon and the new ability to specify a custom 
TransformerFactory on a per-pipeline basis, I've already got this partially 
working.


-
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: How to use xsp-request:get-parameters-values logicsheet tag

2002-07-03 Thread Tim Myers

you just need as=array
and you will get a String[]

On Wed, Jul 03, 2002 at 11:42:56AM -0600, Matthew Hailstone wrote:
 I'm trying to access multiple values of a request parameter resulting
 from a multiple select HTML element.
 
 String stateString = CA;
 int iLengthStateString = 0;
 for( int i=0; i lt; xsp-request:get-parameter-values
 name=state/.getSize() ; i++ ){
   stateString += ((i0? :) +
 xsp-request:get-parameter-values name=state/.getElement(i));
 }
 iLengthStateString = stateString.length();
 xsp-session:set-attribute
 name=statexsp:exprstateString/xsp:expr/xsp-session:set-attribute
 
 field id=state label=State type=text enable=false
   sizexsp:expriLengthStateString/xsp:expr/size
   valuexsp:exprstateString/xsp:expr/value
 /field
 
 It looks like in the generated .java file that I'm using the
 xsp-request:get-parameter-values name=state/ tag incorrectly. I'm
 expecting it to return an ArrayList or Vector or something, but it's
 not. I've looked in the online documentation
 (http://xml.apache.org/cocoon/userdocs/xsp/request.html) but I'm not
 understanding the as attribute and/or how to use it in an example of
 code. Any thoughts on this would be extremely helpful.
 
 Environment:  Tomcat 4.1.3, Cocoon 2.1-dev
 
 Thanks,
 
 Matthew
 
 P.S. Here is the compile exception:
 
   XSPRequestHelper.getParameterValues(objectModel,
 this.contentHandler,
   state,
   null,
   null);
 
 // start error (lines 783-783)  illegal start of expression
 .getSize() ; i++ ){
 
 // end error
   stateString += ((i0? :) + 
   XSPRequestHelper.getParameterValues(objectModel,
 this.contentHandler,
   state,
   null,
 
 ...
 ERROR 2 (D:\apps\Tomcat
 4.1\work\Standalone\localhost\cocoon\cocoon-files\org/apache/cocoon/www/
 eval/logic\form_xsp.java):
 ...
   XSPRequestHelper.getParameterValues(objectModel,
 this.contentHandler,
   state,
   null,
   null);
 
 // start error (lines 783-783)  ';' expected
 .getSize() ; i++ ){
 
 // end error
   stateString += ((i0? :) + 
   XSPRequestHelper.getParameterValues(objectModel,
 this.contentHandler,
   state,
   null,
 
 ...
 ERROR 3 (D:\apps\Tomcat
 4.1\work\Standalone\localhost\cocoon\cocoon-files\org/apache/cocoon/www/
 eval/logic\form_xsp.java):
 ...
   else{
 String stateString = UT;
 int iLengthStateString = 0;
 for( int i=0; i  
 
 // start error (lines 779-779)  'void' type not allowed here
   XSPRequestHelper.getParameterValues(objectModel,
 this.contentHandler,
 
 // end error
   state,
   null,
   null);
 .getSize() ; i++ ){
 
 ...
 ERROR 4 (D:\apps\Tomcat
 4.1\work\Standalone\localhost\cocoon\cocoon-files\org/apache/cocoon/www/
 eval/logic\form_xsp.java):
 ...
   XSPRequestHelper.getParameterValues(objectModel,
 this.contentHandler,
   state,
   null,
   null);
 
 // start error (lines 783-783)  variable i not found in class
 org.apache.cocoon.www.eval.logic.form_xsp
 .getSize() ; i++ ){
 
 // end error
   stateString += ((i0? :) + 
   XSPRequestHelper.getParameterValues(objectModel,
 this.contentHandler,
   state,
   null,
 
 -
 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: Aargh: Installation under Linux failed... no idea?

2002-07-03 Thread Stephan Michels



On Wed, 3 Jul 2002, Alexander Schatten wrote:

 installation of Cocoon 2 under linux failed. I managed to install it on
 windows (JDK 1.3), but not on linux. details:

 -- ReadHat current distribution
 -- Sun JDK 1.4 current distribution
 -- tomcat 4.0.4

 (1) download cocoon sources and try to build them using ant, failed:
 some esql classes are missing?? why does a source distribution fail?

 (2) download from cvs.

 (3) follow precise instructions from documention:

 -- setting java_home var
 -- follow the 1.4 instructions: create endorsed lib; but there is no
 xerces-XXX.jar I copy the xercesimpl.jar. correct??
 -- exporting export CATALINA_OPTS='-Djava.awt.headless=true'
 -- build of cocoon: ./build.sh  -Dinclude.webapp.libs=yes webapp
   now works with cvs data
 -- copy the war to tomcat (which runs with no problems standalone)

 (4) start tomcat. tomcat runs on xxx:8080 and responds correctly.
 (5) when trying to access cocoon with xxx:8080/cocoon I receive the
 error message:

 _
 type resource-not-found

 message Resource not found

 description The requested URI /cocoon/ was not found.


The samples in the CVS were restructured. Try /cocoon/samples/.

Stephan Michels.


-
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: User Authentication - HOW ?

2002-07-03 Thread Bert Van Kets

There's a full authentication in sunSpot that is very easy to implement.
Check out http://xml.apache.org/cocoon/developing/sunrise.html and 
http://www.need-a-cake.com/stories/2002/02/28/usingTheSunriseComponents.html
Try it step by step and you'll see that it's not really difficult, yet very 
flexible.  You can use every datastore you can use in Cocoon as a user 
database. This includes any JDBC databse, text files, xml files and LDAP.
Bert

At 15:23 2/07/2002 +0200, you wrote:

Hello,

Im just dealing with Cocoon for a while and have coded a forum in xsp. 
Currently ive no idea, how to implement a user authentication in cocoon, 
havent found any idea on the net.

It's also possible to write a servlet and so on or use turbine, but i just 
wantet to use much xsp as possible without around-coding.

Also it's really hard to understand the sunspot example without 
documentation - it seems also a little bit hard to implement.

How could this be done ?
Is it possible to use some kind of session-variables in xsp to implement 
the logging feature ?
The login could then also be done by using a form and an interpreting xsp 
page.
Any suggestions ?

Thanks much 4 help,
greetings,

Sascha


-
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: How to use xsp-request:get-parameters-values logicsheet tag

2002-07-03 Thread Matthew Hailstone

Tim,
  Thank you for your help.

String[] stateParamsList = xsp-request:get-parameter-values
as=array name=state/;
for( int i=0; i lt; stateParamsList.length ; i++ ){
  stateString += ((i0? :) + stateParamsList[i]);
}

Works.

Matthew

 -Original Message-
 From: Tim Myers [mailto:[EMAIL PROTECTED]] 
 Sent: Wednesday, July 03, 2002 2:48 PM
 To: [EMAIL PROTECTED]
 Subject: Re: How to use xsp-request:get-parameters-values 
 logicsheet tag
 
 
 you just need as=array
 and you will get a String[]
 
 On Wed, Jul 03, 2002 at 11:42:56AM -0600, Matthew Hailstone wrote:
  I'm trying to access multiple values of a request parameter 
 resulting 
  from a multiple select HTML element.
  
  String stateString = CA;
  int iLengthStateString = 0;
  for( int i=0; i lt; xsp-request:get-parameter-values
  name=state/.getSize() ; i++ ){
stateString += ((i0? :) + 
  xsp-request:get-parameter-values name=state/.getElement(i));
  }
  iLengthStateString = stateString.length();
  xsp-session:set-attribute 
  
 name=statexsp:exprstateString/xsp:expr/xsp-session:set-attribu
  te
  
  field id=state label=State type=text 
 enable=false
sizexsp:expriLengthStateString/xsp:expr/size
valuexsp:exprstateString/xsp:expr/value
  /field
  
  It looks like in the generated .java file that I'm using the 
  xsp-request:get-parameter-values name=state/ tag 
 incorrectly. I'm 
  expecting it to return an ArrayList or Vector or something, 
 but it's 
  not. I've looked in the online documentation
  (http://xml.apache.org/cocoon/userdocs/xsp/request.html) 
 but I'm not 
  understanding the as attribute and/or how to use it in an 
 example of 
  code. Any thoughts on this would be extremely helpful.
  
  Environment:  Tomcat 4.1.3, Cocoon 2.1-dev
  
  Thanks,
  
  Matthew
  
  P.S. Here is the compile exception:
  
XSPRequestHelper.getParameterValues(objectModel,
  this.contentHandler,
state,
null,
null);
  
  // start error (lines 783-783)  illegal start of expression
  .getSize() ; i++ ){
  
  // end error
stateString += ((i0? :) + 
XSPRequestHelper.getParameterValues(objectModel,
  this.contentHandler,
state,
null,
  
  ...
  ERROR 2 (D:\apps\Tomcat 
  
 4.1\work\Standalone\localhost\cocoon\cocoon-files\org/apache/cocoon/ww
  w/
  eval/logic\form_xsp.java):
  ...
XSPRequestHelper.getParameterValues(objectModel,
  this.contentHandler,
state,
null,
null);
  
  // start error (lines 783-783)  ';' expected
  .getSize() ; i++ ){
  
  // end error
stateString += ((i0? :) + 
XSPRequestHelper.getParameterValues(objectModel,
  this.contentHandler,
state,
null,
  
  ...
  ERROR 3 (D:\apps\Tomcat 
  
 4.1\work\Standalone\localhost\cocoon\cocoon-files\org/apache/cocoon/ww
  w/
  eval/logic\form_xsp.java):
  ...
else{
  String stateString = UT;
  int iLengthStateString = 0;
  for( int i=0; i  
  
  // start error (lines 779-779)  'void' type not allowed here
XSPRequestHelper.getParameterValues(objectModel,
  this.contentHandler,
  
  // end error
state,
null,
null);
  .getSize() ; i++ ){
  
  ...
  ERROR 4 (D:\apps\Tomcat 
  
 4.1\work\Standalone\localhost\cocoon\cocoon-files\org/apache/cocoon/ww
  w/
  eval/logic\form_xsp.java):
  ...
XSPRequestHelper.getParameterValues(objectModel,
  this.contentHandler,
state,
null,
null);
  
  // start error (lines 783-783)  variable i not found in class 
  org.apache.cocoon.www.eval.logic.form_xsp
  .getSize() ; i++ ){
  
  // end error
stateString += ((i0? :) + 
XSPRequestHelper.getParameterValues(objectModel,
  this.contentHandler,
state,
null,
  
  
 -
  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 

PLEASE, PLEASE document the installation correctly!!

2002-07-03 Thread Alexander Schatten

Stephan Michels wrote:

 The samples in the CVS were restructured. Try /cocoon/samples/.


thank you very much for this fast hint. in fact, it did not work, but 
brought me to the idea, that the sitemap is structured in an other way, 
than in the normal distribution.

browsing the sitemap file, I found, that there are obviously NO samples, 
only the standard documentation. so trying to connect to

:8080/cocoon/documents/index

works.

CONCLUSION:

There was such a long thread about the cocoon documentation a few days 
ago. I think the MOST important thing, I repeat the MOST important thing 
is, that the installation is documented properly. because if a new user 
is not even able to install cocoon, he or she will quit immediately!!

again:

-- the xerces lib is not named as described in the docs
-- the compilation of the source distribution does not work under linux 
J2SE 1.4
-- the CVS *download* works but
-- the CVS installtion does not work as described. when I have installed 
all the stuff, I need a test page. and the usual :8080/cocoon does not 
work any longer. o.k. but DESCRIBE THIS.


thank you--fortunately this mailing list is extremely useful and fast, 
thank you for hints again to all!!


Alex


-
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: Advice re: Stylesheet Parameters

2002-07-03 Thread Luca Morandini

Jason,

if I were you, I'd use the RequestGenerator. You will get a nice XML with all the form 
parameters ready for further processing.

Best regards,

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

 -Original Message-
 From: Jason Foster [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, July 03, 2002 10:15 PM
 To: [EMAIL PROTECTED]
 Subject: Advice re: Stylesheet Parameters
 
 
 I was hoping to get some advice from the group on the proper way to 
 acquire stylesheet parameters from a user and to use them in a 
 transformation.
 
 My plan is to have an HTML form (an XForm can come later) that collects the 
 values for all sorts of parameters, such as...
 
 xsl:param name=generate.index select=1/
 xsl:param name=toc.section.depth2/xsl:param
 
 ... and to collect these parameters once the form is submitted.
 
 I realize that there are a number of ways that I could do this, but I was 
 hoping that the list could help me enumerate my choices and provide 
 information on the strengths and weaknesses of each choice.  One thing to 
 keep in mind is that a number of these parameters are best represented as 
 checkboxes, so I will have to deal with the usual problem of HTML form 
 encoding :(
 
 This information is likely to be of use to other Cocoon users, so I will 
 volunteer to collate and submit the results to the list.
 
 Thanks for any help.
 
 Jason Foster
 
 P.S.  For those of you who are wondering, I'm trying to create a Test Your 
 DocBook web page where you can upload your source file and have a PDF file 
 returned.  Thanks to Saxon and the new ability to specify a custom 
 TransformerFactory on a per-pipeline basis, I've already got this partially 
 working.
 
 
 -
 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: DTD comments in xinclude/cinclude transformer output

2002-07-03 Thread Sven Kitschke


Stephan Michels wrote:

 
 On Tue, 2 Jul 2002, Sven Kitschke wrote:
 
Ok, I've a patch against an actual cvs copy (cocoon_2_0_3_branch).
Should i create a patch entry at bugzilla?


[snip]

 
 I also noticed the bug, thanks for the patch.
 Patch is applied, please cross-check.
 
 Stephan Michels.
 
I can see the changes only in the HEAD branch. cocoon_2_0_3_branch

tag is at version 1.6.

Ciao and (HTH or TIA), Sven.




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




Website documention problem with page widths

2002-07-03 Thread Scott Bussinger

As a newbie to the Cocoon world, I've been struggling to get up to speed. I
can certainly sympathize with some of the comments about Cocoon's
documentation issues as I'm struggling with them myself right now.

I do have one suggestion for whoever is responsible for maintaining the
xml.apache.org/cocoon websites:

Many of the pages have severe issues with page widths. For example, if you
go to http://xml.apache.org/cocoon/developing/sunspot.html, you'll find the
the pages are much wider than the browser screen width (same problem in both
IE and Netscape). It's _very_ hard to read these pages and you can't really
print them at all (half the text is missing off of the side of the page).
There are many of these pages scattered throughout the site.

This is sounds like a small thing, but this information isn't available
anywhere else and it's extremely hard to get it from the one place it is
available. I finally resorted to cutting and pasting the text into Word so I
could print it.

Also making these pages available as PDF files for easy printing would be
wonderful as well. I've read messages that seem to discuss a new
documentation method coming in the future and maybe that will solve the
problem, but simply fixing the webpages would be much appreciated.

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]




Re: Website documention problem with page widths

2002-07-03 Thread Diana Shannon


On Wednesday, July 3, 2002, at 06:55  PM, Scott Bussinger wrote:

 Many of the pages have severe issues with page widths. For example, if 
 you
 go to http://xml.apache.org/cocoon/developing/sunspot.html, you'll find 
 the
 the pages are much wider than the browser screen width (same problem in 
 both
 IE and Netscape). It's _very_ hard to read these pages and you can't 
 really
 print them at all (half the text is missing off of the side of the 
 page).
 There are many of these pages scattered throughout the site.

This is a known problem with source snippets that are made up of CDATA 
sections running longer than the designed screen width. We're addressing 
this in Forrest. Right now, the only solution is to manually break these 
snippets in the source XML file for pretty printing in docs. I always 
fix this when I encounter such problems in the existing files I edit, 
and I screen these problems out of all new submissions, but I simply 
haven't had time to fix *all* problematic files, yet. Volunteers?

 This is sounds like a small thing, but this information isn't available
 anywhere else and it's extremely hard to get it from the one place it is
 available. I finally resorted to cutting and pasting the text into Word 
 so I
 could print it.

Sorry you had to go to this trouble.

 Also making these pages available as PDF files for easy printing would 
 be
 wonderful as well. I've read messages that seem to discuss a new
 documentation method coming in the future and maybe that will solve the
 problem, but simply fixing the webpages would be much appreciated.

Also a Forrest goal.

Thanks for your input.

Diana


-
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: Website documention problem with page widths

2002-07-03 Thread Dean McGowan

I would like to offer the services of kangax to handle documentation
publishing, I am sure we can solve many of the problems you are currently
experiencing.

Kangax is a simple publishing tool which leverages cocoon technology.

Please contact Dean McGowan to discuss, this would be a free service to the
community, however editors and contributors are still necessary.

If you are using a win 32 operating system with ie6.0 installed please
download and trial Kangax from

http://www.kangax.com/client/kangax/downloads/setup.exe


Regards,

Dean McGowan




-Original Message-
From: Diana Shannon [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 04, 2002 9:10 AM
To: [EMAIL PROTECTED]
Subject: Re: Website documention problem with page widths



On Wednesday, July 3, 2002, at 06:55  PM, Scott Bussinger wrote:

 Many of the pages have severe issues with page widths. For example, if
 you
 go to http://xml.apache.org/cocoon/developing/sunspot.html, you'll find
 the
 the pages are much wider than the browser screen width (same problem in
 both
 IE and Netscape). It's _very_ hard to read these pages and you can't
 really
 print them at all (half the text is missing off of the side of the
 page).
 There are many of these pages scattered throughout the site.

This is a known problem with source snippets that are made up of CDATA
sections running longer than the designed screen width. We're addressing
this in Forrest. Right now, the only solution is to manually break these
snippets in the source XML file for pretty printing in docs. I always
fix this when I encounter such problems in the existing files I edit,
and I screen these problems out of all new submissions, but I simply
haven't had time to fix *all* problematic files, yet. Volunteers?

 This is sounds like a small thing, but this information isn't available
 anywhere else and it's extremely hard to get it from the one place it is
 available. I finally resorted to cutting and pasting the text into Word
 so I
 could print it.

Sorry you had to go to this trouble.

 Also making these pages available as PDF files for easy printing would
 be
 wonderful as well. I've read messages that seem to discuss a new
 documentation method coming in the future and maybe that will solve the
 problem, but simply fixing the webpages would be much appreciated.

Also a Forrest goal.

Thanks for your input.

Diana


-
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: Website documention problem with page widths

2002-07-03 Thread Evan Scott

Houston, it appears we have achieved synergy.

Dean McGowan wrote:

I would like to offer the services of kangax to handle documentation
publishing, I am sure we can solve many of the problems you are currently
experiencing.

Kangax is a simple publishing tool which leverages cocoon technology.

Please contact Dean McGowan to discuss, this would be a free service to the
community, however editors and contributors are still necessary.

If you are using a win 32 operating system with ie6.0 installed please
download and trial Kangax from

http://www.kangax.com/client/kangax/downloads/setup.exe


Regards,

Dean McGowan




-Original Message-
From: Diana Shannon [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 04, 2002 9:10 AM
To: [EMAIL PROTECTED]
Subject: Re: Website documention problem with page widths



On Wednesday, July 3, 2002, at 06:55  PM, Scott Bussinger wrote:

Many of the pages have severe issues with page widths. For example, if
you
go to http://xml.apache.org/cocoon/developing/sunspot.html, you'll find
the
the pages are much wider than the browser screen width (same problem in
both
IE and Netscape). It's _very_ hard to read these pages and you can't
really
print them at all (half the text is missing off of the side of the
page).
There are many of these pages scattered throughout the site.


This is a known problem with source snippets that are made up of CDATA
sections running longer than the designed screen width. We're addressing
this in Forrest. Right now, the only solution is to manually break these
snippets in the source XML file for pretty printing in docs. I always
fix this when I encounter such problems in the existing files I edit,
and I screen these problems out of all new submissions, but I simply
haven't had time to fix *all* problematic files, yet. Volunteers?

This is sounds like a small thing, but this information isn't available
anywhere else and it's extremely hard to get it from the one place it is
available. I finally resorted to cutting and pasting the text into Word
so I
could print it.


Sorry you had to go to this trouble.

Also making these pages available as PDF files for easy printing would
be
wonderful as well. I've read messages that seem to discuss a new
documentation method coming in the future and maybe that will solve the
problem, but simply fixing the webpages would be much appreciated.


Also a Forrest goal.

Thanks for your input.

Diana


-
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: Clean Cocoon

2002-07-03 Thread Ryan Hoegg

Whats the ant build target?  Either it's not included at 
http://xml.apache.org/cocoon/installing/index.html or it is mislabelled.

Ryan Hoegg
ISIS Networks

Ricardo Trindade wrote:

Hi,

   I agree, I started a thread with exactly the same content a while ago, some
people were against, some were for it.

   I thinks this is essential to simplify cocoon deployment, and to guarantee
that most installations are out of the box.

   A lot of people answered that a ant build target existed which did
something like that. If it does, why not release the built release as a
binary ? There are a lot of users that don't want to compile cocoon, and
shouldn't be forced to do it. I think the ability to use binaries most of
the time is a sign of stability...

-Original Message-
From: Alexander Schatten [mailto:[EMAIL PROTECTED]]
Sent: terca-feira, 2 de Julho de 2002 23:29
To: [EMAIL PROTECTED]
Subject: Clean Cocoon


As there was a long discussion about Cocoon problems, I want to adress
another one:

It is fine to have examples in the Cocoon installation, but in
production use, you need a clean cocoon installation.

this is not SO easy, as you have to remove all unnecessary sitemap
entries, as well as example data...


So it should be possible to download a clean cocoon version for
production use, containing only the necessary sitemap entries for the
standard serializers, generators...


this would be extremely useful.


the second best version would be a documentation how to remove the
unecessary stuff.




Alex


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




OT: You're a brick

2002-07-03 Thread Alex McLintock

At 07:52 01/07/02, you wrote:

Anthony Aldridge wrote:
 
  Hurrah! You're a brick!
 

Sorry, but my english is not good enough to figure out
what you exactly mean by this. Can you enlighten me?
PS: I hope it's a compliment!


I assume it is an English idiom because I see nothing unusual about it.

To me it means you are really great because you are reliable, helpful,
and solid.

What you need to think of here is a house made of brick. The brick is
tough, and supports the house

Sorry for continuing this off topic thread

There is a similar sounding word which is a lot ruder, but it doesn't have 
a b in it.


Alex




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


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

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




[UPDATE] SourceWritingTransformer Samples

2002-07-03 Thread Jeremy Quinn

Dear All,

The SourceWritingTransformer in HEAD has just been updated 
(along with the samples and tests in scratchpad).

There were two main tags in SWT, source:write and source:insert, 
each of them was configured in a completely different way, this 
update has unified the two tags so that they both follow the 
same scheme:

source:write
source:sourcepath/to/source/source:source
source:fragmentthing to=write//source:fragment
/source:write

source:insert
source:pathwhere/to/insert/source:path
source:sourcepath/to/source/source:source
source:fragmentthing to=write//source:fragment
/source:insert

This means that you will need to change your projects if you are 
using the source:write tag in your work, as this change is 
backwards incompatible. Sorry for any inconvenience.

Other changes were made:

both tags now output a report on their activities
both tags buffer the fragment to a DOM, before writing


Known Problems:

Namespaces are not handled correctly! (NS declaration not 
written to Source)
source:reinsert/ tag not acting correctly.


Expect more sample editors in slash-edit/ in the near future.



regards Jeremy


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




[HELP]Could not read resource file:/opt/jakarta/webapps/cocoon/i18n/simple.xml

2002-07-03 Thread Markus Alin

Hi!!

By trying to display the i18n sample page I get the following error. In the
stacktrace it looks like the error occurs in the FileGenerator, but im doing
nothing else than trying to generate the file
(/opt/jakarta/webapps/cocoon/i18n/simple.xml -  which came with the cocoon
download)

Thanks for your help!!

/Markus

Description:org.apache.cocoon.ProcessingException: Could not read resource
file:/opt/jakarta/webapps/cocoon/i18n/simple.xml:
java.lang.NullPointerException

Stacktrace:

org.apache.cocoon.ProcessingException: Could not read resource
file:/opt/jakarta/webapps/cocoon/i18n/simple.xml:
java.lang.NullPointerException
at
org.apache.cocoon.generation.FileGenerator.generate(FileGenerator.java:155)
at
org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEv
entPipeline.java:251)
at
org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingS
treamPipeline.java:399)
at
org.apache.cocoon.www.i18n.sitemap_xmap.matchN10021(/opt/jakarta/work/localh
ost_8080%2Fcocoon/cocoon-files/org/apache/cocoon/www/i18n/sitemap_xmap.java:
487)
at
org.apache.cocoon.www.i18n.sitemap_xmap.process(/opt/jakarta/work/localhost_
8080%2Fcocoon/cocoon-files/org/apache/cocoon/www/i18n/sitemap_xmap.java:366)
at
org.apache.cocoon.www.i18n.sitemap_xmap.process(/opt/jakarta/work/localhost_
8080%2Fcocoon/cocoon-files/org/apache/cocoon/www/i18n/sitemap_xmap.java:312)
at org.apache.cocoon.sitemap.Handler.process(Handler.java:222)
at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:179)
at
org.apache.cocoon.www.sitemap_xmap.matchN1063A(/opt/jakarta/work/localhost_8
080%2Fcocoon/cocoon-files/org/apache/cocoon/www/sitemap_xmap.java:7438)
at
org.apache.cocoon.www.sitemap_xmap.process(/opt/jakarta/work/localhost_8080%
2Fcocoon/cocoon-files/org/apache/cocoon/www/sitemap_xmap.java:3537)
at
org.apache.cocoon.www.sitemap_xmap.process(/opt/jakarta/work/localhost_8080%
2Fcocoon/cocoon-files/org/apache/cocoon/www/sitemap_xmap.java:3133)
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)
at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java)
at org.apache.tomcat.core.Handler.service(Handler.java)
at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java)
at
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection
(Ajp12ConnectionHandler.java)
at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java)
at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java)
at java.lang.Thread.run(Thread.java:479)
java.lang.NullPointerException
at org.xml.sax.helpers.AttributesImpl.getIndex(AttributesImpl.java:222)
at
org.apache.cocoon.transformation.I18nTransformer.translateAttributes(I18nTra
nsformer.java:1154)
at
org.apache.cocoon.transformation.I18nTransformer.startElement(I18nTransforme
r.java:871)
at
org.apache.cocoon.components.sax.XMLTeePipe.startElement(XMLTeePipe.java:118
)
at org.apache.xerces.parsers.SAXParser.startElement(SAXParser.java:1376)
at
org.apache.xerces.validators.common.XMLValidator.callStartElement(XMLValidat
or.java:965)
at
org.apache.xerces.framework.XMLDocumentScanner.scanElement(XMLDocumentScanne
r.java:1858)
at
org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XM
LDocumentScanner.java:1234)
at
org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.
java:381)
at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:952)
at org.apache.avalon.excalibur.xml.JaxpParser.parse(JaxpParser.java:241)
at
org.apache.cocoon.components.source.AbstractStreamSource.toSAX(AbstractStrea
mSource.java:206)
at
org.apache.cocoon.generation.FileGenerator.generate(FileGenerator.java:142)
at
org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEv
entPipeline.java:251)
at
org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingS
treamPipeline.java:399)
at
org.apache.cocoon.www.i18n.sitemap_xmap.matchN10021(/opt/jakarta/work/localh
ost_8080%2Fcocoon/cocoon-files/org/apache/cocoon/www/i18n/sitemap_xmap.java:
487)
at
org.apache.cocoon.www.i18n.sitemap_xmap.process(/opt/jakarta/work/localhost_
8080%2Fcocoon/cocoon-files/org/apache/cocoon/www/i18n/sitemap_xmap.java:366)
at
org.apache.cocoon.www.i18n.sitemap_xmap.process(/opt/jakarta/work/localhost_
8080%2Fcocoon/cocoon-files/org/apache/cocoon/www/i18n/sitemap_xmap.java:312)
at org.apache.cocoon.sitemap.Handler.process(Handler.java:222)
at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:179)
at

Re: [COCOON] New cocoon-docs mailing list

2002-07-03 Thread Sam Ruby

Nicola Ken Barozzi wrote:

 Dear PMC, Dear root,

 The Cocoon project asks for the creation of a new mailing list to aid 
 the new Cocoon Documentation project.

  [EMAIL PROTECTED]


List created, Initial moderator is [EMAIL PROTECTED]

- Sam Ruby

P.S.  No need to bother root for mail requests, [EMAIL PROTECTED] will do.


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

2002-07-03 Thread Bobby Mitchell

Christian Haul wrote:

On 28.Jun.2002 -- 09:19 AM, Bobby Mitchell wrote:

I'm using Cocoon 2.1-dev, IBM JDK 1.3, running on RedHat 7.2, and using 
Sybase 11.9.2.

Now I'm using Cocoon 2.0.3-dev, Sun J2SDK 1.4.0, Tomcat 4.0.2.



I can't add or update users in the DB. I can only delete them. I tried 
this with both Sybase and Hsqldb and the results are the same.


AFAIK there's a pending bug that the treeprocssor (which interpretes
the sitemap for 2.1-dev per default) does not allow to nest actions in
an action-set. Hence using db-add inside form-val does not work with
that release and the tutorial is broken.

With 2.0.2 and 2.0.3 (not released, yet, available from CVS, branch
cocoon_2_0_3_branch) it should work.


I cownloaded 2.0.3 from cvs using the installation documentation. I had 
to make the following changes (unix):

   1. Enter cvs -d :pserver:[EMAIL PROTECTED]:/home/cvspublic -z3
  checkout -r HEAD xml-cocoon2. This will create a directory called
  xml-cocoon2 where the Cocoon2 source will be stored.


  to

   1. Enter cvs -d :pserver:[EMAIL PROTECTED]:/home/cvspublic -z3
  checkout -r cocoon_2_0_3_branch xml-cocoon2. This will create a
  directory called xml-cocoon2 where the Cocoon2 source will be
  stored.


All of the database functions work properly, but ...


While using Sybase I had to remove the esql:parameter begin and end 
tags in order to actually edit the entry, otherwise I get an sql error 
stating that SELECT name, department_id FROM employee WHERE id = ?  is 
an error. The id is being passed as a ? so it causes an error. When 
using Hsqldb I made no changes to the code.

This behaviour is the same as before. Here is the error message:


org.apache.cocoon.ProcessingException: Exception in 
ServerPagesGenerator.generate(): java.lang.RuntimeException: Error 
executing statement: SELECT name, department_id FROM employee WHERE id = 
? : com.sybase.jdbc2.jdbc.SybSQLException: Implicit conversion from 
datatype 'CHAR' to 'INT' is not allowed. Use the CONVERT function to run 
this query.

Original exception : java.lang.RuntimeException: Error executing 
statement: SELECT name, department_id FROM employee WHERE id = ? : 
com.sybase.jdbc2.jdbc.SybSQLException: Implicit conversion from datatype 
'CHAR' to 'INT' is not allowed. Use the CONVERT function to run this 
query. at 
org.apache.cocoon.www.tutorial.docs.edit_empl_xsp.generate(/var/tomcat4/work/localhost/cocoon/cocoon-files/org/apache/cocoon/www/tutorial/docs/edit_empl_xsp.java:991)
 
at 
org.apache.cocoon.generation.ServerPagesGenerator.generate(ServerPagesGenerator.java:258)
 
at 
org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEventPipeline.java:250)
 
at 
org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingStreamPipeline.java:399)
 
at 
org.apache.cocoon.www.tutorial.sitemap_xmap.matchN100BC(/var/tomcat4/work/localhost/cocoon/cocoon-files/org/apache/cocoon/www/tutorial/sitemap_xmap.java:1271)
 
at 
org.apache.cocoon.www.tutorial.sitemap_xmap.process(/var/tomcat4/work/localhost/cocoon/cocoon-files/org/apache/cocoon/www/tutorial/sitemap_xmap.java:757)
 
at 
org.apache.cocoon.www.tutorial.sitemap_xmap.process(/var/tomcat4/work/localhost/cocoon/cocoon-files/org/apache/cocoon/www/tutorial/sitemap_xmap.java:684)
 
at org.apache.cocoon.sitemap.Handler.process(Handler.java:224) at 
org.apache.cocoon.sitemap.Manager.invoke(Manager.java:179) at 
org.apache.cocoon.www.sitemap_xmap.matchN102F1(/var/tomcat4/work/localhost/cocoon/cocoon-files/org/apache/cocoon/www/sitemap_xmap.java:3411)
 
at 
org.apache.cocoon.www.sitemap_xmap.process(/var/tomcat4/work/localhost/cocoon/cocoon-files/org/apache/cocoon/www/sitemap_xmap.java:2640)
 
at 
org.apache.cocoon.www.sitemap_xmap.process(/var/tomcat4/work/localhost/cocoon/cocoon-files/org/apache/cocoon/www/sitemap_xmap.java:2538)
 
at org.apache.cocoon.sitemap.Handler.process(Handler.java:224) 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:999) 
at javax.servlet.http.HttpServlet.service(HttpServlet.java) at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
 
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
 
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243) 
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) 
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) 
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) 
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190) 
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) 
at 

Re: Search hits in new page

2002-07-03 Thread Jeremy Quinn


On Wednesday, July 3, 2002, at 01:54 PM, M Al-yahya wrote:

 Hello,
  I'm doing XML Search using the SearchGenerator. I have the 
 following in
 the sitemap pipeline:
   map:match pattern=**findIt
   map:generate type=search/
   map:transform type=log/
   map:transform src=stylesheets/search2html.xsl/
   map:serialize/
/map:match
 the stylesheet I'm using is the one in cocoon/search/stylesheets. This
 stylesheet displays the  search form and the results in one page. Does
 anyone know how to display the results in a new browser page.


Read up on forms at 
http://www.w3.org/TR/html4/interact/forms.html#h-17.3 ;)

Put a 'target' attribute in your 'form' tag, with the name of 
the new window as the value.

form action=findIt target=results

!-- your form fields --

/form


regards Jeremy


-
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: User Authentication - HOW ?

2002-07-03 Thread Carsten Ziegeler

And have a look at http://ziegeler.bei.t-online.de/c2auth.html

Carsten

 -Original Message-
 From: Bert Van Kets [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, July 03, 2002 11:18 PM
 To: [EMAIL PROTECTED]
 Subject: Re: User Authentication - HOW ?


 There's a full authentication in sunSpot that is very easy to implement.
 Check out http://xml.apache.org/cocoon/developing/sunrise.html and
 http://www.need-a-cake.com/stories/2002/02/28/usingTheSunriseCompo
 nents.html
 Try it step by step and you'll see that it's not really
 difficult, yet very
 flexible.  You can use every datastore you can use in Cocoon as a user
 database. This includes any JDBC databse, text files, xml files and LDAP.
 Bert

 At 15:23 2/07/2002 +0200, you wrote:

 Hello,
 
 Im just dealing with Cocoon for a while and have coded a forum in xsp.
 Currently ive no idea, how to implement a user authentication in cocoon,
 havent found any idea on the net.
 
 It's also possible to write a servlet and so on or use turbine,
 but i just
 wantet to use much xsp as possible without around-coding.
 
 Also it's really hard to understand the sunspot example without
 documentation - it seems also a little bit hard to implement.
 
 How could this be done ?
 Is it possible to use some kind of session-variables in xsp to
 implement
 the logging feature ?
 The login could then also be done by using a form and an
 interpreting xsp
 page.
 Any suggestions ?
 
 Thanks much 4 help,
 greetings,
 
 Sascha


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