Re: ServletException in JSPReader.generate()

2003-03-25 Thread Konstantin Piroumian
To make the JSP samples work try to copy jasper-compiler.jar to
cocoon/lib/optional directory and then rebuild Cocoon, so the optional JSP
block could become available. And then try again.

Hope this helps.

--
  Konstantin

From: "Bobby Mitchell" <[EMAIL PROTECTED]>

> Hi,
> I'm using RedHat 8.0, Cocoon-2.0.4 from cvs 3/25/03, Tomcat 4.1.21,
> Sun  j2sdk1.4.1_02.
>
> I tried to access "cocoon/samples/jsp/welcome.htm" and get errors.
> At first the error is "file not found," but I saw in the logs where the
> path for error2html.xsl in the file "cocoon/samples/sitemap.xmap" is
> "common/style/xsl/html/error2html.xsl." I changed this to
> "samples/common/style/xsl/html/error2html.xsl" and I now get the error
> "ServletException in JSPReader.generate()."
>
> The following is from the sitemap.log:
>
>   4473 DEBUG   (2003-03-25) 10:37.35:955   [sitemap.reader.jsp]
> (/cocoon/samples/jsp/welcome.htm) Thread-8/JSPReader: JSPReader
> executing JSP:/samples/jsp/welcome.jsp
>4474 DEBUG   (2003-03-25) 10:37.36:546   [sitemap.reader.jsp]
> (/cocoon/samples/jsp/welcome.htm) Thread-8/JSPReader: ServletException
> in JSPReader.generate()
>4475 org.apache.jasper.JasperException: Unable to compile class for JSP
>4476
>4477 An error occurred at line: -1 in the jsp file: null
>4478
>4479 Generated servlet error:
>4480 [javac] Since fork is true, ignoring compiler setting.
>4481 [javac] Compiling 1 source file
>4482 [javac] Since fork is true, ignoring compiler setting.
>4483
>
>   4559 DEBUG   (2003-03-25) 10:37.36:552   [sitemap.reader.jsp]
> (/cocoon/samples/jsp/welcome.htm) Thread-8/JSPReader: Embedded
> ServletException JSPReader.generate()
>4560 INFO(2003-03-25) 10:37.36:553   [sitemap]
> (/cocoon/samples/jsp/welcome.htm) Thread-8/PipelineNode: Error while
> processing pipeline at
> file:/var/tomcat4/webapps/cocoon/samples/jsp/sitemap.xmap:27:19
>4561 org.apache.cocoon.ProcessingException: ServletException in
> JSPReader.generate()
>
>   4625 DEBUG   (2003-03-25) 10:37.36:559   [sitemap]
> (/cocoon/samples/jsp/welcome.htm) Thread-8/ResourceLimitingPool: Put a
> org.apache.cocoon.reading.JSPReader back into the pool.
>4626 INFO(2003-03-25) 10:37.36:562   [sitemap]
> (/cocoon/samples/jsp/welcome.htm) Thread-8/PipelineNode: Error while
> processing pipeline at
> file:/var/tomcat4/webapps/cocoon/samples/sitemap.xmap:44:17
>4627 org.apache.cocoon.ProcessingException: ServletException in
> JSPReader.generate()
>
> Any ideas on how I can get my jsp samples to work?
>
> Thanks
>
> --
> Robert J. (Bobby) Mitchell
> Systems Administrator
> NASA Institute for Advanced Concepts
> 555A 14th St Atlanta, Ga. 30318
> Phone: (404)347-9633 Fax: (404)347-9638
>
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


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



AW: Xindice related query..

2003-03-25 Thread Stephan Meinl
Hi Gautam,
try 
http://www.schatten.info/software/xindice_browser/xindice_browser.html
It is much easier to debug your commands with that Xindice-GUI
Kind regards,
Stephan

> -Ursprüngliche Nachricht-
> Von: Gautam Ganguly [mailto:[EMAIL PROTECTED] 
> Gesendet: Mittwoch, 26. März 2003 00:29
> An: [EMAIL PROTECTED]
> Betreff: Xindice related query..
> 
> 
> hi all,
>I don't know wether this query is suitable for this site 
> or not..but hope someone might be able to help me out on this.
> 
> I just now installed Xindice1.0 binary release version.As per 
> the instruction for xindice docs,i started up the database 
> and i can see the 'db' instance also.
> 
> When i do a list of all collections that are present through 
> the DOS command line: c:\xindice>xindice lc -c /db i see 
> "system"..which is ok.
> 
> Going by the setup documents for setting up a new collection 
> under db instance..when i run these command...i just see this 
> getting thrown at me. c:\xindice> xindice ac -c /db -n Artist
> 
> ---
> Format: xindice action [switch] [parameter]
> 
> Where:  [switch]  implements:
> -c   Collection context (must always be specified)
> -e   File extension for multiple documents
> -f   File path for document retrieval and storage
> -i   Implementing Class for XMLObjects
> -n   Name
> -o   URI String for invocation of XMLObject
> -p   Index pattern
> -q   Query string
> -u   Database URI
> -y   Force Deletion process
> -t   Specify the data type in collection index
> --pagesize   Page size for file pages (default: 4096)
> --maxkeysize The maximum size for file keys (default: 0=none)
> 
> 
> Actions:
> 
> xindice [parameter], etc...
> 
> ad   Adds a document
> addmultiple  Adds multiple documents
> dd   Deletes a document
> lc   Retrieves a collection/nested collection list
> rd   Retrieves a document for storage elsewhere
> ld   Retrieves a list of documents in a particular
> collection
> invoke   Invokes an XML Object on a collection
> lo   Retrieves an XMLObject list from a collection
> xpathQueries a Collection using XPath
> export   Exports a collection/document from a directory tree
> 
> Examples:
> 
> xindice ad -c /db/test -f /tmp/xmldocument -n myxmldocument
> xindice dd -c /db/test -n myxmldocument
> xindice rd -c /db/test/ocs -f a:\file.xml -n file.xml
> xindice xpath -c /db/test/ocs -q test
> 
> For more information, please read the Xindice - Tools Reference Guide
> ---
> ...its as if xindice can't understand the action for "add_collection".
> 
> I did notice in the Xindice docs that the current binary 
> release might not work with JDK1.4...is it something to do 
> with that???I have also placed all the .jar files that came 
> in \xindice\java\lib dir in the CLASSPATH.
> 
> I am trying to test the Wiki Howto: 
> http://wiki.cocoondev.org/Wiki.jsp?> page=XMLFormXindice
> 
> any 
> help or suggestion would be very 
> much appreciated..
> 
> regards,
> Gautam
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 



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



Re: how instantiate an Action for each session?

2003-03-25 Thread Charles Yates
Component instantiation is handled by the underlying component 
framework, Avalon.  What you would like to do is _might_ be possible by 
mucking with Avalon (ComponentHandlers and such)  but there must be an 
easier way.  For example, your Action could use the Session object to 
keep an Object of your choice to handle the per-session functionality 
you want.  You get the Session from the objectModel Map object passed in 
the act() method:

HttpSession session = ObjectModelHelper.getRequest(objectModel).getSession();
MySessionObject obj = (MySessionObject) session.getAttribute("mySessionObj");
if ( null == obj )
   obj = new MySessionObject();
   session.setAttribute("mySessionObj", obj);
}
Charles



vupt vupt wrote:

Hi,

I am hoping someone can help me with this. I have created an Action 
and would like an instance of that Action to be instantiated for each 
new session that uses the Action.

For example, take this snippet from my sitemap.


  
   
   



   
  
  
  
   
   
 

I would like an instance of JukeBoxAction to be created for each 
person or session that matches the above pattern.

The behaviour right now is that one instance of the JukeBoxAction 
object is created and multiple sessions access the same object instance.

I would like each session to create and use its own  JukeBoxAction 
instance.

Any help with this problem would be most appreciated.
Thanks.


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


RE: Cocoon-2.1-dev build fails

2003-03-25 Thread Tony Collen
On Wed, 26 Mar 2003, neil wrote:

> 2. I had a look at build.xml and figured out that I need:
>
> ./build.sh \
>  -Dinclude.webapp.libs=yes \
>  -Dexclude.webapp.samples=yes \
>  -Dexclude.webapp.documenation=yes \
>  -Dexclude.webapp.javadocs=yes \
>  -Dexclude.scratchpad=yes \
>  -Dexclude.webapp.scratchpad=yes \
>  -Dexclude.webapp.idldocs=yes \
>  war


Also note that you can copy 'build.properties' to
'local.build.properties', and edit the settings in that file.  if you
always want to build a stripped down cocoon, this iseasier in the long-run
instead of using a long command line.

tony



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



RE: Cocoon-2.1-dev build fails

2003-03-25 Thread neil
Re: http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=104865067609362&w=2

1. Ok, lib/core/util.concurrent-1.3.1.jar has been added to fix this.
   (I'd added 1.3.2 locally and that also works).

2. I had a look at build.xml and figured out that I need:

./build.sh \
 -Dinclude.webapp.libs=yes \
 -Dexclude.webapp.samples=yes \
 -Dexclude.webapp.documenation=yes \
 -Dexclude.webapp.javadocs=yes \
 -Dexclude.scratchpad=yes \
 -Dexclude.webapp.scratchpad=yes \
 -Dexclude.webapp.idldocs=yes \
 war

to build a minimal cocoon.war. This works fine.
(got a runtime error (when running cocoon) when I also tried -Dexclude.deprecated=yes).

Cheers,
Neil Bacon

-Original Message-
From: Geoff Howard [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 26 March 2003 3:06 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: Cocoon-2.1-dev build fails


Neil, I can't reproduce this problem.  I did build clean and excluded xmldb
block via local.blocks.properties.  The build ran fine, and cocoon started
up with no error (in jetty, but still...).  After trying a fresh cvs update,
and a build clean if you still have this problem can you specify what other
blocks you're excluding if any and how to reproduce the no class def error
(like what samples page?).  Also, since you obviously have both tomcat and
jetty ready to go, can you try it in jetty (cocoon.bat servlet).

Geoff

> -Original Message-
> From: neil [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, March 25, 2003 5:22 PM
> To: Cocoon-Users (E-mail)
> Subject: Re: Cocoon-2.1-dev build fails
>
>
> Re: http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=104862608911688&w=2
>
> I like the way the build tries to let you include just what you
> want, but there
> are a few little problems with it. Yesterday I checked out the
> CVS HEAD and now
> using jdk-1.4.1, windows2000/cygwin ...
>
> 1.
> I tried excluding blocks I don't need by using
> local.blocks.properties, but when I ran
> cocoon (in tomcat-4.1.18) I got:
>
> java.lang.NoClassDefFoundError: EDU/oswego/cs/dl/util/concurrent/Executor
>   at org.apache.cocoon.Cocoon.contextualize(Cocoon.java:204)
>   at
> org.apache.cocoon.servlet.CocoonServlet.createCocoon(CocoonServlet
> .java:1304)
>   at
> org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:505)
>   at
> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapp
> er.java:934)
>
> It seems that src/blocks/xmldb/lib/xmldb-api-2001.jar
> includes the package
> EDU/oswego/cs/dl/util/concurrent which is referenced elsewhere.
> So the xmldb block
> cannot be excluded.
>
> 2.
> I tried to exclude samples and docs:
>
> ./build.sh  -Dinclude.webapp.libs=yes \
> -Dexclude.webapp.samples=yes \
> -Dexclude.webapp.documenation=yes \
> -Dexclude.webapp.javadocs=yes war
>
> and got:
>
> Writing: C:\cocoon-2.1\build\webapp\WEB-INF\cocoon.xconf
>
> scratchpad-samples:
> Copying 57 files to C:\cocoon-2.1\build\webapp\samples
> Copied 1 empty directory to C:\cocoon-2.1\build\webapp\samples
> Copying 87 files to C:\cocoon-2.1\build\webapp\samples
>
> BUILD FAILED
> file:///C:/cocoon-2.1/build.xml:637: IOException:
> java.io.FileNotFoundException:
>  C:\cocoon-2.1\build\webapp\samples\samples.xml (The system
> cannot find the file
>  specified)
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>



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



RE: Cocoon-2.1-dev build fails

2003-03-25 Thread Geoff Howard
Neil, I can't reproduce this problem.  I did build clean and excluded xmldb
block via local.blocks.properties.  The build ran fine, and cocoon started
up with no error (in jetty, but still...).  After trying a fresh cvs update,
and a build clean if you still have this problem can you specify what other
blocks you're excluding if any and how to reproduce the no class def error
(like what samples page?).  Also, since you obviously have both tomcat and
jetty ready to go, can you try it in jetty (cocoon.bat servlet).

Geoff

> -Original Message-
> From: neil [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, March 25, 2003 5:22 PM
> To: Cocoon-Users (E-mail)
> Subject: Re: Cocoon-2.1-dev build fails
>
>
> Re: http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=104862608911688&w=2
>
> I like the way the build tries to let you include just what you
> want, but there
> are a few little problems with it. Yesterday I checked out the
> CVS HEAD and now
> using jdk-1.4.1, windows2000/cygwin ...
>
> 1.
> I tried excluding blocks I don't need by using
> local.blocks.properties, but when I ran
> cocoon (in tomcat-4.1.18) I got:
>
> java.lang.NoClassDefFoundError: EDU/oswego/cs/dl/util/concurrent/Executor
>   at org.apache.cocoon.Cocoon.contextualize(Cocoon.java:204)
>   at
> org.apache.cocoon.servlet.CocoonServlet.createCocoon(CocoonServlet
> .java:1304)
>   at
> org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:505)
>   at
> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapp
> er.java:934)
>
> It seems that src/blocks/xmldb/lib/xmldb-api-2001.jar
> includes the package
> EDU/oswego/cs/dl/util/concurrent which is referenced elsewhere.
> So the xmldb block
> cannot be excluded.
>
> 2.
> I tried to exclude samples and docs:
>
> ./build.sh  -Dinclude.webapp.libs=yes \
> -Dexclude.webapp.samples=yes \
> -Dexclude.webapp.documenation=yes \
> -Dexclude.webapp.javadocs=yes war
>
> and got:
>
> Writing: C:\cocoon-2.1\build\webapp\WEB-INF\cocoon.xconf
>
> scratchpad-samples:
> Copying 57 files to C:\cocoon-2.1\build\webapp\samples
> Copied 1 empty directory to C:\cocoon-2.1\build\webapp\samples
> Copying 87 files to C:\cocoon-2.1\build\webapp\samples
>
> BUILD FAILED
> file:///C:/cocoon-2.1/build.xml:637: IOException:
> java.io.FileNotFoundException:
>  C:\cocoon-2.1\build\webapp\samples\samples.xml (The system
> cannot find the file
>  specified)
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>


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



RE: Source using Component via ECM

2003-03-25 Thread Geoff Howard
You can also skip the roles file and define the role in cocoon.xconf
directly in a component-instance element.  I did this some time ago, but
have lost the original config file after leaving that employer.  This email
exchange though should give enough of a clue if you want to go that way:

http://marc.theaimsgroup.com/?l=avalon-users&m=102457420520252&w=2

Geoff Howard

> -Original Message-
> From: Scott Warren [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, March 25, 2003 5:54 PM
> To: [EMAIL PROTECTED]
> Subject: RE: Source using Component via ECM
>
>
> For Cocoon 2.0.4 there is a file called users.role which is in the
> cocoon.jar You need to create your own and specify it's path using the
> root element of the cocoon.xconf file for example my file has this element
>
> 
>
> The user-roles attribute specifies my custom role which is loaded in
> addition to the original file.
>
> Hope this Helps
>
> Scott Warren
>
> -Original Message-
> From: Peter Klotz [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, 26 March 2003 2:27 AM
> To: [EMAIL PROTECTED]
> Subject: Source using Component via ECM
>
>
> Hi,
>
> I have a custom source that gets the component manager from the
> SourceFactory.
> So good so fine, but obviously when the source looks up its backend
> component it does not find it, although it is configured in cocoon.xconf
> as
> .
>
> How is this suposed to work? Am I missing something?
>
>
> Thanks, Peter
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>


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



RE: Cocoon-2.1-dev build fails

2003-03-25 Thread Geoff Howard
Here are two patches to do this.  One simply adds a new validate.jars
property to build.properties and sets it to false by default for now.  The
other uses this property to set up an unless property, and an unless
attribute on the validate-jars target.

I can submit these to bugzilla, but thought it'd be faster for now to send
them here since they're simple and the build is broken.

If anyone followed my temporary advice to modify the webapp target to remove
validate-jars, that is no longer necessary.

neil, I or someone else will have to look into the xmldb block later.

Geoff

> -Original Message-
> From: Geoff Howard [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, March 25, 2003 10:15 PM
> To: [EMAIL PROTECTED]
> Cc: [EMAIL PROTECTED]
> Subject: RE: Cocoon-2.1-dev build fails
>
>
>
> Unfortunately, when validate-jars was put back in, an override mechanism
> wasn't added so you're stuck manually editing the build file for now.
>
> I'll be submitting a patch to first of all add the override mechanism so
> that this won't trip people up until the target is fixed.
>


validate-exclude.diff
Description: Binary data


validate-exclude-properties.diff
Description: Binary data
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

RE: Cocoon-2.1-dev build fails

2003-03-25 Thread Geoff Howard
Ok, you're not crazy - the build is in fact broken.  Sort of.  What is
broken is
an old validation target that was recently put back in (validate-jars in
src/targets/validate-build.xml).  It appears that everything is actually
built correctly,
but this old target has not been correctly updated to deal with blocks (at
least on
windows).  By the way, sorry for accusing you of using the old build
method - I was looking at your second attempt using -D instead of
build.properties and leapt to conclusions.

For now, your quickest bet is to go to src/targets/webapp-build.xml and find
the line:

D:/eclipse/workspace/cocoon-2.1/src/blocks/batik/lib/batik-all-1.5b2.ja
r

On quick inspection, check-jars.xsl seems to be looking for literal string
matches from lib/jars.xml which will be impossible if fileset is returning
absolute paths.  I tried various combinations of relative paths with no
success.  Either some trick is needed to make

  
allow relative paths to match the absolute path (don't this this is
feasible?)

or

fileset needs to be made/configured to return relative paths (don't know ant
well enough myself)

or

some other means of checking jars needs to be devised (custom task?).

Is this broken only on windows, or does this affect *nix and mac?

Geoff

> -Original Message-
> From: Geoff Howard [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, March 25, 2003 8:12 PM
> To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: RE: Cocoon-2.1-dev build fails
>
>
> The build process for 2.1dev has very recently changed and is still
> stabilizing.  While
> these problems may in fact be real, it's difficult to tell because you
> appear to be following the old method for customizing the build
> (no surprise
> since the docs probably
> still instruct you to).
>
> If you haven't, read through INSTALL.txt for the new instructions.  First
> try what it
> says (which is to copy build.properties to local.build.properties
> and modify
> the
> values you're interested in).  But if that doesn't work, erase or
> hide that
> file
> and modify build.properties directly.  For individual blocks, the
> process is
> the same
> but you'll use blocks.properties instead.
>
> If all this still fails, make sure you do build clean and try again, as
> there are
> often at this stage files moving around the repository which
> necessitates a
> clean build.
>
> As this is under active development, please do report back with your
> findings and
> if no developers seem to answer, post on the dev list or file a report in
> bugzilla.  I'll try to keep track of what's happening.
>
> Geoff
>
>
> > -Original Message-
> > From: neil [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, March 25, 2003 5:22 PM
> > To: Cocoon-Users (E-mail)
> > Subject: Re: Cocoon-2.1-dev build fails
> >
> >
> > Re:
> http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=104862608911688&w=2
> >
> > I like the way the build tries to let you include just what you
> > want, but there
> > are a few little problems with it. Yesterday I checked out the
> > CVS HEAD and now
> > using jdk-1.4.1, windows2000/cygwin ...
> >
> > 1.
> > I tried excluding blocks I don't need by using
> > local.blocks.properties, but when I ran
> > cocoon (in tomcat-4.1.18) I got:
> >
> > java.lang.NoClassDefFoundError:
> EDU/oswego/cs/dl/util/concurrent/Executor
> > at org.apache.cocoon.Cocoon.contextualize(Cocoon.java:204)
> > at
> > org.apache.cocoon.servlet.CocoonServlet.createCocoon(CocoonServlet
> > .java:1304)
> > at
> > org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:505)
> > at
> > org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapp
> > er.java:934)
> >
> > It seems that src/blocks/xmldb/lib/xmldb-api-2001.jar
> > includes the package
> > EDU/oswego/cs/dl/util/concurrent which is referenced elsewhere.
> > So the xmldb block
> > cannot be excluded.
> >
> > 2.
> > I tried to exclude samples and docs:
> >
> > ./build.sh  -Dinclude.webapp.libs=yes \
> > -Dexclude.webapp.samples=yes \
> > -Dexclude.webapp.documenation=yes \
> > -Dexclude.webapp.javadocs=yes war
> >
> > and got:
> >
> > Writing: C:\cocoon-2.1\build\webapp\WEB-INF\cocoon.xconf
> >
> > scratchpad-samples:
> > Copying 57 files to C:\cocoon-2.1\build\webapp\samples
> > Copied 1 empty directory to C:\cocoon-2.1\build\webapp\samples
> > Copying 87 files to C:\cocoon-2.1\build\webapp\samples
> >
> > BUILD FAILED
> > file:///C:/cocoon-2.1/build.xml:637: IOException:
> > java.io.FileNotFoundException:
> >  C:\cocoon-2.1\build\webapp\samples\samples.xml (The system
> > cannot find the file
> >  specified)
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional co

how instantiate an Action for each session?

2003-03-25 Thread vupt vupt
Hi,

I am hoping someone can help me with this. I have created an Action and 
would like an instance of that Action to be instantiated for each new 
session that uses the Action.

For example, take this snippet from my sitemap.


  
   
   



   
  
  
  
   
   
 
I would like an instance of JukeBoxAction to be created for each person or 
session that matches the above pattern.

The behaviour right now is that one instance of the JukeBoxAction object is 
created and multiple sessions access the same object instance.

I would like each session to create and use its own  JukeBoxAction instance.

Any help with this problem would be most appreciated.
Thanks.




_
STOP MORE SPAM with the new MSN 8 and get 2 months FREE*   
http://join.msn.com/?page=features/junkmail

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


RE: Cocoon-2.1-dev build fails

2003-03-25 Thread Geoff Howard
I thought that was a problem that was fixed yesterday.  When (what time
about) was the checkout?

Geoff

> -Original Message-
> From: Bobby Mitchell [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, March 25, 2003 3:53 PM
> To: [EMAIL PROTECTED]
> Subject: Cocoon-2.1-dev build fails
>
>
> I'm trying to build Cocoon-2.1-dev from cvs  today, 3/24/03 on RedHat
> 8.0, Tomcat-4.1.21.
>
> The build fails with this error:
> root/java/cocoon-2.1/tools/src/check-jars.xsl:89:36: Warning!
>   File lib/optional/mail.jar is declared in lib/jars.xml, but doesn't
> appear in the lib/ directory.
>
> mail.jar is in the lib/optional directory.
>
> What can I do to make it work?
>
> --
> Robert J. (Bobby) Mitchell
> Systems Administrator
> NASA Institute for Advanced Concepts
> 555A 14th St Atlanta, Ga. 30318
> Phone: (404)347-9633 Fax: (404)347-9638
>
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>


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



RE: Cocoon-2.1-dev build fails

2003-03-25 Thread Geoff Howard
The build process for 2.1dev has very recently changed and is still
stabilizing.  While
these problems may in fact be real, it's difficult to tell because you
appear to be following the old method for customizing the build (no surprise
since the docs probably
still instruct you to).

If you haven't, read through INSTALL.txt for the new instructions.  First
try what it
says (which is to copy build.properties to local.build.properties and modify
the
values you're interested in).  But if that doesn't work, erase or hide that
file
and modify build.properties directly.  For individual blocks, the process is
the same
but you'll use blocks.properties instead.

If all this still fails, make sure you do build clean and try again, as
there are
often at this stage files moving around the repository which necessitates a
clean build.

As this is under active development, please do report back with your
findings and
if no developers seem to answer, post on the dev list or file a report in
bugzilla.  I'll try to keep track of what's happening.

Geoff


> -Original Message-
> From: neil [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, March 25, 2003 5:22 PM
> To: Cocoon-Users (E-mail)
> Subject: Re: Cocoon-2.1-dev build fails
>
>
> Re: http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=104862608911688&w=2
>
> I like the way the build tries to let you include just what you
> want, but there
> are a few little problems with it. Yesterday I checked out the
> CVS HEAD and now
> using jdk-1.4.1, windows2000/cygwin ...
>
> 1.
> I tried excluding blocks I don't need by using
> local.blocks.properties, but when I ran
> cocoon (in tomcat-4.1.18) I got:
>
> java.lang.NoClassDefFoundError: EDU/oswego/cs/dl/util/concurrent/Executor
>   at org.apache.cocoon.Cocoon.contextualize(Cocoon.java:204)
>   at
> org.apache.cocoon.servlet.CocoonServlet.createCocoon(CocoonServlet
> .java:1304)
>   at
> org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:505)
>   at
> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapp
> er.java:934)
>
> It seems that src/blocks/xmldb/lib/xmldb-api-2001.jar
> includes the package
> EDU/oswego/cs/dl/util/concurrent which is referenced elsewhere.
> So the xmldb block
> cannot be excluded.
>
> 2.
> I tried to exclude samples and docs:
>
> ./build.sh  -Dinclude.webapp.libs=yes \
> -Dexclude.webapp.samples=yes \
> -Dexclude.webapp.documenation=yes \
> -Dexclude.webapp.javadocs=yes war
>
> and got:
>
> Writing: C:\cocoon-2.1\build\webapp\WEB-INF\cocoon.xconf
>
> scratchpad-samples:
> Copying 57 files to C:\cocoon-2.1\build\webapp\samples
> Copied 1 empty directory to C:\cocoon-2.1\build\webapp\samples
> Copying 87 files to C:\cocoon-2.1\build\webapp\samples
>
> BUILD FAILED
> file:///C:/cocoon-2.1/build.xml:637: IOException:
> java.io.FileNotFoundException:
>  C:\cocoon-2.1\build\webapp\samples\samples.xml (The system
> cannot find the file
>  specified)
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>


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



Re: Xindice related query..

2003-03-25 Thread Gautam Ganguly
Thanks to both of you for your help...xindiceadmin it is!!


>>> [EMAIL PROTECTED] 03/25/03 06:34PM >>>

Hi,

On Tue, 25 Mar 2003, Gautam Ganguly wrote:

>I don't know wether this query is suitable for this site or
not..but
> hope someone might be able to help me out on this.

Probably better to ask on the xindice mailing list (see the xindice
web
site for details).

> Going by the setup documents for setting up a new collection under
db
> instance..when i run these command...i just see this getting thrown
at
> me.
> c:\xindice> xindice ac -c /db -n Artist

The documentation is out of step with the code. Try:

  c:\xindice> xindiceadmin ac -c /db -n Artist

For collection manipulation, 'xindiceadmin' seems to be the required
command. For data manipulation and querying, 'xindice' works.

Hope that helps,

Andrew.

-- 
Andrew SavoryEmail:
[EMAIL PROTECTED] 
Managing Director  Tel:  +44 (0)870 741
6658
Luminas Internet Applications  Fax:  +44 (0)700 598
1135
This is not an official statement or order.Web:   
www.luminas.co.uk 

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



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



Re: Xindice related query..

2003-03-25 Thread Josema Alonso
Hello.

Try:
xindiceadmin ac -c /db -n Artist

Anyway, I usually use some of the GUI tools available for Xindice. Take a
look at http://xml.apache.org/xindice/related.html

Btw, the wiki how-to was accepted as a official how-to some weeks ago, and I
polished it a bit before submitting it. See
http://xml.apache.org/cocoon/howto/howto-xindice-xmlform.html
Both should do the job anyway.

Hope it helps.


- Original Message -
From: "Gautam Ganguly" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, March 26, 2003 12:28 AM
Subject: Xindice related query..


> hi all,
>I don't know wether this query is suitable for this site or not..but
> hope someone might be able to help me out on this.
>
> I just now installed Xindice1.0 binary release version.As per the
> instruction for xindice docs,i started up the database and i can see the
> 'db' instance also.
>
> When i do a list of all collections that are present through the DOS
> command line:
> c:\xindice>xindice lc -c /db
> i see "system"..which is ok.
>
> Going by the setup documents for setting up a new collection under db
> instance..when i run these command...i just see this getting thrown at
> me.
> c:\xindice> xindice ac -c /db -n Artist
>
> ---
> Format: xindice action [switch] [parameter]
>
> Where:  [switch]  implements:
> -c   Collection context (must always be specified)
> -e   File extension for multiple documents
> -f   File path for document retrieval and storage
> -i   Implementing Class for XMLObjects
> -n   Name
> -o   URI String for invocation of XMLObject
> -p   Index pattern
> -q   Query string
> -u   Database URI
> -y   Force Deletion process
> -t   Specify the data type in collection index
> --pagesize   Page size for file pages (default: 4096)
> --maxkeysize The maximum size for file keys (default: 0=none)
>
>
> Actions:
>
> xindice [parameter], etc...
>
> ad   Adds a document
> addmultiple  Adds multiple documents
> dd   Deletes a document
> lc   Retrieves a collection/nested collection list
> rd   Retrieves a document for storage elsewhere
> ld   Retrieves a list of documents in a particular
> collection
> invoke   Invokes an XML Object on a collection
> lo   Retrieves an XMLObject list from a collection
> xpathQueries a Collection using XPath
> export   Exports a collection/document from a directory tree
>
> Examples:
>
> xindice ad -c /db/test -f /tmp/xmldocument -n myxmldocument
> xindice dd -c /db/test -n myxmldocument
> xindice rd -c /db/test/ocs -f a:\file.xml -n file.xml
> xindice xpath -c /db/test/ocs -q test
>
> For more information, please read the Xindice - Tools Reference Guide
> ---
> ...its as if xindice can't understand the action for "add_collection".
>
> I did notice in the Xindice docs that the current binary release might
> not work with JDK1.4...is it something to do with that???I have also
> placed all the .jar files that came in \xindice\java\lib dir in the
> CLASSPATH.
>
> I am trying to test the Wiki Howto:
> http://wiki.cocoondev.org/Wiki.jsp?page=XMLFormXindice
>
> any help or suggestion would be very much appreciated..
>
> regards,
> Gautam
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>



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



Re: Xindice related query..

2003-03-25 Thread Andrew Savory

Hi,

On Tue, 25 Mar 2003, Gautam Ganguly wrote:

>I don't know wether this query is suitable for this site or not..but
> hope someone might be able to help me out on this.

Probably better to ask on the xindice mailing list (see the xindice web
site for details).

> Going by the setup documents for setting up a new collection under db
> instance..when i run these command...i just see this getting thrown at
> me.
> c:\xindice> xindice ac -c /db -n Artist

The documentation is out of step with the code. Try:

  c:\xindice> xindiceadmin ac -c /db -n Artist

For collection manipulation, 'xindiceadmin' seems to be the required
command. For data manipulation and querying, 'xindice' works.

Hope that helps,

Andrew.

-- 
Andrew SavoryEmail: [EMAIL PROTECTED]
Managing Director  Tel:  +44 (0)870 741 6658
Luminas Internet Applications  Fax:  +44 (0)700 598 1135
This is not an official statement or order.Web:www.luminas.co.uk

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



Xindice related query..

2003-03-25 Thread Gautam Ganguly
hi all,
   I don't know wether this query is suitable for this site or not..but
hope someone might be able to help me out on this.

I just now installed Xindice1.0 binary release version.As per the
instruction for xindice docs,i started up the database and i can see the
'db' instance also.

When i do a list of all collections that are present through the DOS
command line:
c:\xindice>xindice lc -c /db
i see "system"..which is ok.

Going by the setup documents for setting up a new collection under db
instance..when i run these command...i just see this getting thrown at
me.
c:\xindice> xindice ac -c /db -n Artist

---
Format: xindice action [switch] [parameter]

Where:  [switch]  implements:
-c   Collection context (must always be specified)
-e   File extension for multiple documents
-f   File path for document retrieval and storage
-i   Implementing Class for XMLObjects
-n   Name
-o   URI String for invocation of XMLObject
-p   Index pattern
-q   Query string
-u   Database URI
-y   Force Deletion process
-t   Specify the data type in collection index
--pagesize   Page size for file pages (default: 4096)
--maxkeysize The maximum size for file keys (default: 0=none)


Actions:

xindice [parameter], etc...

ad   Adds a document
addmultiple  Adds multiple documents
dd   Deletes a document
lc   Retrieves a collection/nested collection list
rd   Retrieves a document for storage elsewhere
ld   Retrieves a list of documents in a particular
collection
invoke   Invokes an XML Object on a collection
lo   Retrieves an XMLObject list from a collection
xpathQueries a Collection using XPath
export   Exports a collection/document from a directory tree

Examples:

xindice ad -c /db/test -f /tmp/xmldocument -n myxmldocument
xindice dd -c /db/test -n myxmldocument
xindice rd -c /db/test/ocs -f a:\file.xml -n file.xml
xindice xpath -c /db/test/ocs -q test

For more information, please read the Xindice - Tools Reference Guide
---
...its as if xindice can't understand the action for "add_collection".

I did notice in the Xindice docs that the current binary release might
not work with JDK1.4...is it something to do with that???I have also
placed all the .jar files that came in \xindice\java\lib dir in the
CLASSPATH.

I am trying to test the Wiki Howto:
http://wiki.cocoondev.org/Wiki.jsp?page=XMLFormXindice

any help or suggestion would be very much appreciated..

regards,
Gautam


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



Re: Can I do this?

2003-03-25 Thread joaocesar
It's really working :) Thanks ! :)

I just have one problem, if I search for two terms it goes as term1+term2
and it produces no results, as well if i type them under quotes, like "term1
term2" :|

Can I parse the querystring on the fly ?

Thanks

- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, March 25, 2003 11:01 PM
Subject: Re: Can I do this?


> Oops... forget it I've changed the wrong cocoon.xconf (I'm working on the
> network, but have changed local file :| ), it's now error free:)
>
> Thanks
>
>
> - Original Message -
> From: "Reinhard Pötz" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, March 25, 2003 10:56 PM
> Subject: RE: Can I do this?
>
>
> Which cocoon version do you use?
>
> If you use 2.04 it seems to me that input modules are not supported by
> the compiled sitemap. But I'm not sure because I've been using Cocoon
> 2.1dev for month (interpreted sitemap and input modules work). But be
> warned - Cocoon 2.1 is still alpha!!! But I think this will change in
> the nearer future.
>
> Regards,
> Reinhard
>
> > -Original Message-
> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, March 25, 2003 11:48 PM
> > To: [EMAIL PROTECTED]
> > Subject: Re: Can I do this?
> >
> >
> > Thanks :)
> >
> > I've added them into cocoon.xconf, but know i'm having this:
> >
> > message Error while creating node 'generate' at
> > file:/C:/Program Files/Apache Group/Tomcat
> > 4.1/webapps/cocoon/pubmed/sitemap.xmap:45:147
> >
> > description
> > org.apache.avalon.framework.configuration.ConfigurationExcepti
> > on: Error while creating node 'generate' at file:/C:/Program
> > Files/Apache Group/Tomcat
> > 4.1/webapps/cocoon/pubmed/sitemap.xmap:45:147
> >
> > that's here:
> >
> >   
> >
> >  > src="http://http://www.ncbi.nlm.nih.gov/entrez/eutils/esearch.
> > fcgi?db=pubmed
> > &term={request:query}&retmax=200"/>
> > 
> > 
> > 
> >
> >
> > I'm doing anything wrong? Or do I need to use,  > name="request"/> ?
> >
> > TIA
> >
> > Joao Cesar
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > - Original Message -
> > From: "Reinhard Pötz" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Tuesday, March 25, 2003 10:29 PM
> > Subject: RE: Can I do this?
> >
> >
> > Checkout input modules - they should be available in 2.04.
> > They grant you easy access to the request parameters.
> >
> > http://blablabla?term={request:query}/>
> >
> > Regards,
> > Reinhard
> >
> >
> > -Original Message-
> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, March 25, 2003 10:54 PM
> > To: [EMAIL PROTECTED]
> > Subject: Can I do this?
> >
> >
> > Can I (?) do anything like this:
> >
> > 
> > http://blablabla?term={1}/>
> > 
> > 
> > 
> >
> > I've found that if I do (...) pattern="*.search"> (...)  it
> > works, and i can do for example "search phrase".search in the
> > address bar and it matches with the generate prototype.. but
> > i want to use that notation to match a GET form.
> >
> > Thanks
> >
> > João César
> > [EMAIL PROTECTED]
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



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



RE: Source using Component via ECM

2003-03-25 Thread Scott Warren
For Cocoon 2.0.4 there is a file called users.role which is in the
cocoon.jar You need to create your own and specify it's path using the
root element of the cocoon.xconf file for example my file has this element



The user-roles attribute specifies my custom role which is loaded in
addition to the original file.

Hope this Helps

Scott Warren

-Original Message-
From: Peter Klotz [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 26 March 2003 2:27 AM
To: [EMAIL PROTECTED]
Subject: Source using Component via ECM


Hi,

I have a custom source that gets the component manager from the
SourceFactory.
So good so fine, but obviously when the source looks up its backend
component it does not find it, although it is configured in cocoon.xconf
as
.

How is this suposed to work? Am I missing something?


Thanks, Peter



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



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



Re: Can I do this?

2003-03-25 Thread joaocesar
Oops... forget it I've changed the wrong cocoon.xconf (I'm working on the
network, but have changed local file :| ), it's now error free:)

Thanks


- Original Message -
From: "Reinhard Pötz" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, March 25, 2003 10:56 PM
Subject: RE: Can I do this?


Which cocoon version do you use?

If you use 2.04 it seems to me that input modules are not supported by
the compiled sitemap. But I'm not sure because I've been using Cocoon
2.1dev for month (interpreted sitemap and input modules work). But be
warned - Cocoon 2.1 is still alpha!!! But I think this will change in
the nearer future.

Regards,
Reinhard

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, March 25, 2003 11:48 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Can I do this?
>
>
> Thanks :)
>
> I've added them into cocoon.xconf, but know i'm having this:
>
> message Error while creating node 'generate' at
> file:/C:/Program Files/Apache Group/Tomcat
> 4.1/webapps/cocoon/pubmed/sitemap.xmap:45:147
>
> description
> org.apache.avalon.framework.configuration.ConfigurationExcepti
> on: Error while creating node 'generate' at file:/C:/Program
> Files/Apache Group/Tomcat
> 4.1/webapps/cocoon/pubmed/sitemap.xmap:45:147
>
> that's here:
>
>   
>
>  src="http://http://www.ncbi.nlm.nih.gov/entrez/eutils/esearch.
> fcgi?db=pubmed
> &term={request:query}&retmax=200"/>
> 
> 
> 
>
>
> I'm doing anything wrong? Or do I need to use,  name="request"/> ?
>
> TIA
>
> Joao Cesar
>
>
>
>
>
>
>
>
>
>
>
> - Original Message -
> From: "Reinhard Pötz" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, March 25, 2003 10:29 PM
> Subject: RE: Can I do this?
>
>
> Checkout input modules - they should be available in 2.04.
> They grant you easy access to the request parameters.
>
> http://blablabla?term={request:query}/>
>
> Regards,
> Reinhard
>
>
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, March 25, 2003 10:54 PM
> To: [EMAIL PROTECTED]
> Subject: Can I do this?
>
>
> Can I (?) do anything like this:
>
> 
> http://blablabla?term={1}/>
> 
> 
> 
>
> I've found that if I do (...) pattern="*.search"> (...)  it
> works, and i can do for example "search phrase".search in the
> address bar and it matches with the generate prototype.. but
> i want to use that notation to match a GET form.
>
> Thanks
>
> João César
> [EMAIL PROTECTED]
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


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




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



RE: Can I do this?

2003-03-25 Thread Reinhard Pötz
Which cocoon version do you use? 

If you use 2.04 it seems to me that input modules are not supported by
the compiled sitemap. But I'm not sure because I've been using Cocoon
2.1dev for month (interpreted sitemap and input modules work). But be
warned - Cocoon 2.1 is still alpha!!! But I think this will change in
the nearer future.

Regards,
Reinhard

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, March 25, 2003 11:48 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Can I do this?
> 
> 
> Thanks :)
> 
> I've added them into cocoon.xconf, but know i'm having this:
> 
> message Error while creating node 'generate' at 
> file:/C:/Program Files/Apache Group/Tomcat 
> 4.1/webapps/cocoon/pubmed/sitemap.xmap:45:147
> 
> description
> org.apache.avalon.framework.configuration.ConfigurationExcepti
> on: Error while creating node 'generate' at file:/C:/Program 
> Files/Apache Group/Tomcat 
> 4.1/webapps/cocoon/pubmed/sitemap.xmap:45:147
> 
> that's here:
> 
>   
> 
>  src="http://http://www.ncbi.nlm.nih.gov/entrez/eutils/esearch.
> fcgi?db=pubmed
> &term={request:query}&retmax=200"/>
> 
> 
> 
> 
> 
> I'm doing anything wrong? Or do I need to use,  name="request"/> ?
> 
> TIA
> 
> Joao Cesar
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> - Original Message -
> From: "Reinhard Pötz" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, March 25, 2003 10:29 PM
> Subject: RE: Can I do this?
> 
> 
> Checkout input modules - they should be available in 2.04. 
> They grant you easy access to the request parameters.
> 
> http://blablabla?term={request:query}/>
> 
> Regards,
> Reinhard
> 
> 
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, March 25, 2003 10:54 PM
> To: [EMAIL PROTECTED]
> Subject: Can I do this?
> 
> 
> Can I (?) do anything like this:
> 
> 
> http://blablabla?term={1}/>
> 
> 
> 
> 
> I've found that if I do (...) pattern="*.search"> (...)  it 
> works, and i can do for example "search phrase".search in the 
> address bar and it matches with the generate prototype.. but 
> i want to use that notation to match a GET form.
> 
> Thanks
> 
> João César
> [EMAIL PROTECTED]
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


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



Re: Can I do this?

2003-03-25 Thread joaocesar
Thanks :)

I've added them into cocoon.xconf, but know i'm having this:

message Error while creating node 'generate' at file:/C:/Program
Files/Apache Group/Tomcat 4.1/webapps/cocoon/pubmed/sitemap.xmap:45:147

description
org.apache.avalon.framework.configuration.ConfigurationException: Error
while creating node 'generate' at file:/C:/Program Files/Apache Group/Tomcat
4.1/webapps/cocoon/pubmed/sitemap.xmap:45:147

that's here:

  

http://http://www.ncbi.nlm.nih.gov/entrez/eutils/esearch.fcgi?db=pubmed
&term={request:query}&retmax=200"/>





I'm doing anything wrong? Or do I need to use,  ?

TIA

Joao Cesar











- Original Message -
From: "Reinhard Pötz" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, March 25, 2003 10:29 PM
Subject: RE: Can I do this?


Checkout input modules - they should be available in 2.04. They grant
you easy access to the request parameters.

http://blablabla?term={request:query}/>

Regards,
Reinhard


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 25, 2003 10:54 PM
To: [EMAIL PROTECTED]
Subject: Can I do this?


Can I (?) do anything like this:


http://blablabla?term={1}/>




I've found that if I do (...) pattern="*.search"> (...)  it works, and i
can do for example "search phrase".search in the address bar and it
matches with the generate prototype.. but i want to use that notation to
match a GET form.

Thanks

João César
[EMAIL PROTECTED]


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




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



RE: Can I do this?

2003-03-25 Thread Reinhard Pötz
Checkout input modules - they should be available in 2.04. They grant
you easy access to the request parameters.

http://blablabla?term={request:query}/>

Regards,
Reinhard


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 25, 2003 10:54 PM
To: [EMAIL PROTECTED]
Subject: Can I do this?


Can I (?) do anything like this:


http://blablabla?term={1}/>




I've found that if I do (...) pattern="*.search"> (...)  it works, and i
can do for example "search phrase".search in the address bar and it
matches with the generate prototype.. but i want to use that notation to
match a GET form.

Thanks

João César
[EMAIL PROTECTED]


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



Re: Can I do this?

2003-03-25 Thread Tony Collen
On Tue, 25 Mar 2003 [EMAIL PROTECTED] wrote:

> I'm new at cocoon, but it seems to me a little blurry where the right place
> to do something... And I don't know for example, what can I do with an
> action, so I was experimenting some "techniques" to have my objective done,
> but what I'm looking for, is:
>
> I've made a form to search for a term. When a user submit's the form, I
> merge that querystring (I know how to do it in XSP) with an URL, for
> instance:
>
> http://www.ncbi.nlm.nih.gov/entrez/eutils/esearch.fcgi?db=pubmed&term="trans
> genic"&retmax=200
>
>
> Can anyone give tips ?
> Thanks in advance for helping.
>


Check out the WebServiceProxyGenerator, I think it can do what you need it
to.


Tony


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



Re: Cocoon-2.1-dev build fails

2003-03-25 Thread neil
Re: http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=104862608911688&w=2

I like the way the build tries to let you include just what you want, but there
are a few little problems with it. Yesterday I checked out the CVS HEAD and now
using jdk-1.4.1, windows2000/cygwin ...

1.
I tried excluding blocks I don't need by using local.blocks.properties, but when I ran
cocoon (in tomcat-4.1.18) I got:

java.lang.NoClassDefFoundError: EDU/oswego/cs/dl/util/concurrent/Executor
at org.apache.cocoon.Cocoon.contextualize(Cocoon.java:204)
at 
org.apache.cocoon.servlet.CocoonServlet.createCocoon(CocoonServlet.java:1304)
at org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:505)
at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:934)

It seems that src/blocks/xmldb/lib/xmldb-api-2001.jar includes the package
EDU/oswego/cs/dl/util/concurrent which is referenced elsewhere. So the xmldb block
cannot be excluded.

2.
I tried to exclude samples and docs:

./build.sh  -Dinclude.webapp.libs=yes \
-Dexclude.webapp.samples=yes \
-Dexclude.webapp.documenation=yes \
-Dexclude.webapp.javadocs=yes war

and got:

Writing: C:\cocoon-2.1\build\webapp\WEB-INF\cocoon.xconf

scratchpad-samples:
Copying 57 files to C:\cocoon-2.1\build\webapp\samples
Copied 1 empty directory to C:\cocoon-2.1\build\webapp\samples
Copying 87 files to C:\cocoon-2.1\build\webapp\samples

BUILD FAILED
file:///C:/cocoon-2.1/build.xml:637: IOException: java.io.FileNotFoundException:
 C:\cocoon-2.1\build\webapp\samples\samples.xml (The system cannot find the file
 specified)


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



Re: Can I do this?

2003-03-25 Thread joaocesar
I'm new at cocoon, but it seems to me a little blurry where the right place
to do something... And I don't know for example, what can I do with an
action, so I was experimenting some "techniques" to have my objective done,
but what I'm looking for, is:

I've made a form to search for a term. When a user submit's the form, I
merge that querystring (I know how to do it in XSP) with an URL, for
instance:

http://www.ncbi.nlm.nih.gov/entrez/eutils/esearch.fcgi?db=pubmed&term="trans
genic"&retmax=200

In that example I've used "trangenic" as a search term.

Them that site will return me XML data (mainly id's of related articles),
and I must write it in a repository. Then I must build an harvester that
will go the repository and fetch the metadata of each article id.

I'm actually having trouble to understand, in what state of the pipeline
will I do every task I need, I know that I can use a serializer to write the
XML on disc, I can get querystring's in XSP, i can write XML on disc with a
XSL also, so there are many many ways, and for newbies it's a little bit
difficult to start with :|

Currently I have the form like this in my sitemap.xmap:


 
 
 


The form action is do-search and method POST. I wrote the next step like
this:





   
   

   

   here I don't know what's the best way to follow:
- a transformer?
- send the querystring (how to?) to a XSP that will do the rest







Another aproach i have is in the form, the action is "search.xsp" (I skip
the validation procedure)
and then I defined:







and in the XSP I can get the querystring (i've done it) but I don't know how
to grab the XML data :|

Can anyone give tips ?
Thanks in advance for helping.

João César
[EMAIL PROTECTED]







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



Re: Can I do this?

2003-03-25 Thread Marc Portier
you might want to look into the RequestParameterAction

http://xml.apache.org/cocoon/apidocs/org/apache/cocoon/matching/RequestParameterMatcher.html
http://cvs.apache.org/viewcvs.cgi/cocoon-2.0/src/java/org/apache/cocoon/matching/RequestParameterMatcher.java?rev=1.1&content-type=text/vnd.viewcvs-markup

  http://whatever/andsome?term={1}"; />

if you need more then one request parameter it might be easier to 
use the RequestParameterAction:
http://xml.apache.org/cocoon/apidocs/org/apache/cocoon/acting/RequestParamAction.html

-marc=

[EMAIL PROTECTED] wrote:
Can I (?) do anything like this:
 

http://blablabla?term={1}/>



 
I've found that if I do (...) pattern="*.search"> (...)  it works, and i 
can do for example "search phrase".search in the address bar and it 
matches with the generate prototype.. but i want to use that notation to 
match a GET form.
 
Thanks
 
João César
[EMAIL PROTECTED]
 
--
Marc Portierhttp://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
Read my weblog at  http://radio.weblogs.com/0116284/
[EMAIL PROTECTED]  [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Can I do this?

2003-03-25 Thread Ryan Hoegg
Have you considered doing this in an XSP or an Action?

--
Ryan Hoegg
ISIS Networks
http://www.isisnetworks.net
[EMAIL PROTECTED] wrote:

Can I (?) do anything like this:
 

http://blablabla?term={1} 
/>



 
I've found that if I do (...) pattern="*.search"> (...)  it works, and 
i can do for example "search phrase".search in the address bar and it 
matches with the generate prototype.. but i want to use that notation 
to match a GET form.
 
Thanks
 
João César
[EMAIL PROTECTED] 


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


Can I do this?

2003-03-25 Thread joaocesar



Can I (?) do anything like this:
 
    
http://blablabla?term={1}/>    
    

 
I've found that if I do (...) 
pattern="*.search"> (...)  it works, and i can do for example "search 
phrase".search in the address bar and it matches with the generate prototype.. 
but i want to use that notation to match a GET form.
 
Thanks
 
João César
[EMAIL PROTECTED]
 


Re: How to serialize a XML file to disk?

2003-03-25 Thread joaocesar
thanks :)

I'm trying to use sourcewrite with XSP here is the source:
( i'm getting to variable termo the query parameter from form, then I'll
merge the term with a search URL, fetch the XML data and put it into the
source:fragment down there)


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


  String termo = request.getParameter("query");


http://apache.org/cocoon/source/1.0";>
  teste.xml
  termo




message Language Exception

description org.apache.cocoon.ProcessingException: Language Exception:
org.apache.cocoon.components.language.LanguageException: Error while
instantiating org\apache\cocoon\www\pubmed\xsp\pa_xsp:
java.lang.NullPointerException


I'll try your sugestion, thanks



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



Re: Eclipse, Tomcat and Sysdeo Plugin

2003-03-25 Thread Helmut Tammen
Thank you Hussayn,

I compiled my sources, got no compiler errors and mostly everything inside 
cocoon worked fine. But when I started the portal application which I 
wanted to debug I´ve got the error that
org.appache.cocoon.webapps.authentication.components.AuthenticationManager 
could not be loaded in spite of being present under WEB-INF/classes.

I then copied the cocoon*.jar files that were build with the ant script 
back to WEB-INF/lib and deleted WEB-INF/classes and everything worked fine 
again, even the portal application.

Any ideas?

Thanks Helmut

On Tue, 25 Mar 2003 18:51:25 +0100, Hussayn Dabbous <[EMAIL PROTECTED]> 
wrote:

ok, here is what i did (briefly):

1.) Set up an eclipse java-project named "cocoon"
2.) Import all cocoon-2.0.4 sources into the
cocoon-project (i did this during project creation).
3.) Setup project environment to compile
cocoon from within eclipse. You need to add all
necessary libs by hand. I also had to
discard some classes due to unavailable
jars (i remeber about 5 classes only to be
deleted from the cocon distrib). Otherwise the
project would not compile ;-(
4.) create a launch config as already described on
default port 8000 (in fact you can use anything else too)
5.) place breakpoints into any point of the cocoon sources
I had no problems as you describe...
6.) Set the JAVA_OPTS as already described.
7.) Start tomcat with startup.sh
8.) Launch the launch config from 4.)
9.) Sit back and watch your appserver beeing fully
under your control...
no other tricks here ...

One question: Why would you prefer to set the JAVA_OPTS by hand?
And how are you starting the tomcat server, if you set the
JAVA_OPTS by hand ??? I think it is much easier to simply
cretae the JAVA_OPTS environment var possibly on a startup script
and never think about this again... Ok, remember about this, when
you go to production ;-)
regards, hussayn

ePost wrote:
Hi Hussayn,
I´m just coming back to the debug problem in eclipse (learning a lot of 
new stuff at the moment). I´ve set the startup option for tomcat as you 
adviced (but via command line not via JAVA_OPTS). In eclipse I start the 
remote debug session which successfully connects to port 8000. But I 
can´t set any breakpoints in the Cocoon Java Source. Do I have to adjust 
the source lookup path in eclipse? I´ve already tried some settings but 
nothing worked.
Thanks for your answer.
Helmut
On Thu, 20 Mar 2003 09:34:06 +0100, SAXESS - Hussayn Dabbous 
<[EMAIL PROTECTED]> wrote:
Hi,
I can't tell you why you get this error, but i can tell you
how we are debugging cocoon enabled web applications in a
similar environment as yours:
We are running eclipse, cocoon-2.0.4, tomcat-4.1.18 on solaris
and linux. We run eclipse on a PC-frontend and we always start
the tomcat server with the startup scripts. When debuging
whichever webapp (including cocoon) we set the JAVA_OPTS
as follows:
-server -Xdebug -Xnoagent -Djava.compiler=NONE - 
Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8000
Then we (re)start the tomcat server as usual with "startup.sh" or
"startup.bat". Please note, that we set the JAVA_OPTS, not the
CATALINA_OPTS for this, although the docs at the tomcat site
state something else (that does not work for us)
On eclipse we set up a remote debugging session on port 8000.
This works perfectly! It should also work, when the tomcat server
is running locally.
regards, hussayn

Helmut Tammen wrote:
Hi,
I try to use the combination of Eclipse, Tomcat and the Sysdeo Plugin to 
debug the cocoon source in Eclipse. This doesn´t work (error message 
when trying to access any Cocoon resource at the end). When I start 
Tomcat via the startup.bat everything works fine.
My environment:
Windows 2000
Eclipse 2.1 (Beta)
JDK 1.4.1_02
Tomcat 4.0.6
Sysdeo plugin for Eclipse 2.1 (Beta)
Cocoon 2.1-dev
I´ve also tried JDK 1.4.0, Tomcat 4.1.18 and Cocoon 2.0.4 in various 
combinations with no success.
All the Xerces and Xalan libs are replaced with the ones from Cocoon in 
the directories [JAVA_HOME]/jre/lib/
endorsed, [CATALINA_HOME]/common/endorsed and in 
[ECLIPSE_HOME]/plugins/org.apache.xerces_4.0.7 (probably not necessary 
because not in the classpath of my webapp)
Does anyone have an idea what´s going wrong here?
Thanks in advance
Helmut

ERROR   (2003-03-20) 08:33.54:103   [access] (Unknown-URI) Unknown- 
thread/CocoonServlet: Cocoon got an Exception while trying to close 
stream.
java.io.IOException: The stream has been closed
at 
org.apache.catalina.connector.ResponseStream.flush(ResponseStream.java:237)
at 
org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1145)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)


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



--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/

Re: Cocoon-2.1-dev build fails

2003-03-25 Thread Alex Romayev
Just a thought:
1. mail.jar has a different name, like
mail-timestamp.jar -- then change jars.xml file to the
right name.
2. mail.jar is not needed, remove it from jars.xml
3. mail.jar is somewhere else, put it into the lib
directory.

--- Bobby Mitchell <[EMAIL PROTECTED]> wrote:
> I'm trying to build Cocoon-2.1-dev from cvs  today,
> 3/24/03 on RedHat 
> 8.0, Tomcat-4.1.21.
> 
> The build fails with this error:
> root/java/cocoon-2.1/tools/src/check-jars.xsl:89:36:
> Warning!
>   File lib/optional/mail.jar is declared in
> lib/jars.xml, but doesn't 
> appear in the lib/ directory.
> 
> mail.jar is in the lib/optional directory.
> 
> What can I do to make it work?
> 
> -- 
> Robert J. (Bobby) Mitchell
> Systems Administrator
> NASA Institute for Advanced Concepts
> 555A 14th St Atlanta, Ga. 30318
> Phone: (404)347-9633 Fax: (404)347-9638
> 
> 
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 


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



Cocoon-2.1-dev build fails

2003-03-25 Thread Bobby Mitchell
I'm trying to build Cocoon-2.1-dev from cvs  today, 3/24/03 on RedHat 
8.0, Tomcat-4.1.21.

The build fails with this error:
root/java/cocoon-2.1/tools/src/check-jars.xsl:89:36: Warning!
 File lib/optional/mail.jar is declared in lib/jars.xml, but doesn't 
appear in the lib/ directory.

mail.jar is in the lib/optional directory.

What can I do to make it work?

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


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


Re: Eclipse, Tomcat and Sysdeo Plugin

2003-03-25 Thread Leszek Gawron
On wto, mar 25, 2003 at 06:51:25 +0100, Hussayn Dabbous wrote:
> ok, here is what i did (briefly):
> 
> 1.) Set up an eclipse java-project named "cocoon"
> 2.) Import all cocoon-2.0.4 sources into the
> cocoon-project (i did this during project creation).
> 3.) Setup project environment to compile
> cocoon from within eclipse. You need to add all
> necessary libs by hand. I also had to
> discard some classes due to unavailable
> jars (i remeber about 5 classes only to be
> deleted from the cocon distrib). Otherwise the
> project would not compile ;-(
> 4.) create a launch config as already described on
> default port 8000 (in fact you can use anything else too)
> 5.) place breakpoints into any point of the cocoon sources
> I had no problems as you describe...
> 6.) Set the JAVA_OPTS as already described.
> 7.) Start tomcat with startup.sh
> 8.) Launch the launch config from 4.)
> 9.) Sit back and watch your appserver beeing fully
> under your control...
Sure that works for cocoon _static_ sources, but have you tried the same with
dynamically generated .java from XSPs? I can set a breakpoint, the execution
stops but eclipse says it cannot find sources although they are in the
project. I can debug XSPs in jSwat but that is not even half as good as
eclipse
ouzo
-- 
__
 | /  \ |Leszek Gawron//  \\
\_\\  //_/  [EMAIL PROTECTED]  _\\()//_
 .'/()\'. Phone: +48(600)341118 / //  \\ \
  \\  //  recursive: adj; see recursive  | \__/ |


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



Re: ServletException in JSPReader.generate()

2003-03-25 Thread Bobby Mitchell
I found my problem in the ownership in the /var/tomcat4 directory. The 
catalina.out log file showed java.io.FileNotFoundException: 
/var/tomcat4/files-495187227 (Permission denied). I changed all files & 
directories in /var/tomcat4 to tomcat4:tomcat4 and it works now. The 
file permissions/ownership were originally set when I installed from the 
RPM.

Bobby Mitchell wrote:

Hi,
   I'm using RedHat 8.0, Cocoon-2.0.4 from cvs 3/25/03, Tomcat 4.1.21, 
Sun  j2sdk1.4.1_02.

   I tried to access "cocoon/samples/jsp/welcome.htm" and get errors. 
At first the error is "file not found," but I saw in the logs where 
the path for error2html.xsl in the file "cocoon/samples/sitemap.xmap" 
is "common/style/xsl/html/error2html.xsl." I changed this to 
"samples/common/style/xsl/html/error2html.xsl" and I now get the error 
"ServletException in JSPReader.generate()."

   The following is from the sitemap.log:

 4473 DEBUG   (2003-03-25) 10:37.35:955   [sitemap.reader.jsp] 
(/cocoon/samples/jsp/welcome.htm) Thread-8/JSPReader: JSPReader 
executing JSP:/samples/jsp/welcome.jsp
  4474 DEBUG   (2003-03-25) 10:37.36:546   [sitemap.reader.jsp] 
(/cocoon/samples/jsp/welcome.htm) Thread-8/JSPReader: ServletException 
in JSPReader.generate()
  4475 org.apache.jasper.JasperException: Unable to compile class for JSP
  4476
  4477 An error occurred at line: -1 in the jsp file: null
  4478
  4479 Generated servlet error:
  4480 [javac] Since fork is true, ignoring compiler setting.
  4481 [javac] Compiling 1 source file
  4482 [javac] Since fork is true, ignoring compiler setting.
  4483

 4559 DEBUG   (2003-03-25) 10:37.36:552   [sitemap.reader.jsp] 
(/cocoon/samples/jsp/welcome.htm) Thread-8/JSPReader: Embedded 
ServletException JSPReader.generate()
  4560 INFO(2003-03-25) 10:37.36:553   [sitemap] 
(/cocoon/samples/jsp/welcome.htm) Thread-8/PipelineNode: Error while 
processing pipeline at 
file:/var/tomcat4/webapps/cocoon/samples/jsp/sitemap.xmap:27:19
  4561 org.apache.cocoon.ProcessingException: ServletException in 
JSPReader.generate()

 4625 DEBUG   (2003-03-25) 10:37.36:559   [sitemap] 
(/cocoon/samples/jsp/welcome.htm) Thread-8/ResourceLimitingPool: Put a 
org.apache.cocoon.reading.JSPReader back into the pool.
  4626 INFO(2003-03-25) 10:37.36:562   [sitemap] 
(/cocoon/samples/jsp/welcome.htm) Thread-8/PipelineNode: Error while 
processing pipeline at 
file:/var/tomcat4/webapps/cocoon/samples/sitemap.xmap:44:17
  4627 org.apache.cocoon.ProcessingException: ServletException in 
JSPReader.generate()

Any ideas on how I can get my jsp samples to work?

Thanks

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




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


Logging in Cocoon Source

2003-03-25 Thread Peter Klotz
Hi,

If I want to log messages in a custom source the only way I could specify
a category would be on the SourceFactory, which I did. Then in the
getSource() I  check whether the source produced is LogEnabled and if so
pass on the Logger from the SourceFactory to the Source.

In cocoon.xconf the source' protocol is declared



And the category core.* is configured in logkit.xconf to log into core.log.

Well nice but I never never get any whatsoever log message?
It obviously seems to work and there is no error. What am I doing wrong

It is so damn hard to debug a problem when one doesn't see any log message
:-(
This must be something specifically Source/SourceFactory specific because
with Actions I had more luck.


Thanks, Peter




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



Re: Eclipse, Tomcat and Sysdeo Plugin

2003-03-25 Thread Hussayn Dabbous
ok, here is what i did (briefly):

1.) Set up an eclipse java-project named "cocoon"
2.) Import all cocoon-2.0.4 sources into the
cocoon-project (i did this during project creation).
3.) Setup project environment to compile
cocoon from within eclipse. You need to add all
necessary libs by hand. I also had to
discard some classes due to unavailable
jars (i remeber about 5 classes only to be
deleted from the cocon distrib). Otherwise the
project would not compile ;-(
4.) create a launch config as already described on
default port 8000 (in fact you can use anything else too)
5.) place breakpoints into any point of the cocoon sources
I had no problems as you describe...
6.) Set the JAVA_OPTS as already described.
7.) Start tomcat with startup.sh
8.) Launch the launch config from 4.)
9.) Sit back and watch your appserver beeing fully
under your control...
no other tricks here ...

One question: Why would you prefer to set the JAVA_OPTS by hand?
And how are you starting the tomcat server, if you set the
JAVA_OPTS by hand ??? I think it is much easier to simply
cretae the JAVA_OPTS environment var possibly on a startup script
and never think about this again... Ok, remember about this, when
you go to production ;-)
regards, hussayn

ePost wrote:
Hi Hussayn,
 
I´m just coming back to the debug problem in eclipse (learning a lot of 
new stuff at the moment). I´ve set the startup option for tomcat as you 
adviced (but via command line not via JAVA_OPTS). In eclipse I start the 
remote debug session which successfully connects to port 8000. But I 
can´t set any breakpoints in the Cocoon Java Source. Do I have to adjust 
the source lookup path in eclipse? I´ve already tried some settings but 
nothing worked.
 
Thanks for your answer.
 
Helmut
 
On Thu, 20 Mar 2003 09:34:06 +0100, SAXESS - Hussayn Dabbous 
<[EMAIL PROTECTED]> wrote:
 
Hi,
 
I can't tell you why you get this error, but i can tell you
how we are debugging cocoon enabled web applications in a
similar environment as yours:
 
We are running eclipse, cocoon-2.0.4, tomcat-4.1.18 on solaris
and linux. We run eclipse on a PC-frontend and we always start
the tomcat server with the startup scripts. When debuging
whichever webapp (including cocoon) we set the JAVA_OPTS
as follows:
 
-server -Xdebug -Xnoagent -Djava.compiler=NONE - 
Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8000
 
Then we (re)start the tomcat server as usual with "startup.sh" or
"startup.bat". Please note, that we set the JAVA_OPTS, not the
CATALINA_OPTS for this, although the docs at the tomcat site
state something else (that does not work for us)
 
On eclipse we set up a remote debugging session on port 8000.
This works perfectly! It should also work, when the tomcat server
is running locally.
 
regards, hussayn
 
 
Helmut Tammen wrote:
Hi,
 
I try to use the combination of Eclipse, Tomcat and the Sysdeo Plugin to 
debug the cocoon source in Eclipse. This doesn´t work (error message 
when trying to access any Cocoon resource at the end). When I start 
Tomcat via the startup.bat everything works fine.
My environment:
Windows 2000
Eclipse 2.1 (Beta)
JDK 1.4.1_02
Tomcat 4.0.6
Sysdeo plugin for Eclipse 2.1 (Beta)
Cocoon 2.1-dev
 
I´ve also tried JDK 1.4.0, Tomcat 4.1.18 and Cocoon 2.0.4 in various 
combinations with no success.
 
All the Xerces and Xalan libs are replaced with the ones from Cocoon in 
the directories [JAVA_HOME]/jre/lib/
endorsed, [CATALINA_HOME]/common/endorsed and in 
[ECLIPSE_HOME]/plugins/org.apache.xerces_4.0.7 (probably not necessary 
because not in the classpath of my webapp)
 
Does anyone have an idea what´s going wrong here?
 
Thanks in advance
Helmut
 
 
ERROR   (2003-03-20) 08:33.54:103   [access] (Unknown-URI) Unknown- 
thread/CocoonServlet: Cocoon got an Exception while trying to close stream.
java.io.IOException: The stream has been closed
at 
org.apache.catalina.connector.ResponseStream.flush(ResponseStream.java:237)
at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1145)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)


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


Re: Source using Component via ECM

2003-03-25 Thread Charles Yates
Hi Peter,
I think you need to provide more information, including the version 
of cocoon, the relevant part of cocoon.xconf, portions of you Source 
code, and any log error messages.

Charles

Peter Klotz wrote:

Hi,

I have a custom source that gets the component manager from the
SourceFactory.
So good so fine, but obviously when the source looks up its backend
component it does not find it, although it is configured in cocoon.xconf
as
.
How is this suposed to work? Am I missing something?

Thanks, Peter



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



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


Re: database forms

2003-03-25 Thread Stefan Klein
Hi Thorsten, Lorenzo

1. reply to Thorsten:

>>In your example you've only got textboxes. With listboxes ( in
HTML)
>>it gets a bit trickier, since you'll have to get the possible values from
a
>>different table first. Have you got an idea for that, too?
>>Maybing using XSP-ESQL?

>nested esql like that:
>[...]
I'm not sure we undertand each other right there. The problem was not to get
all the recordsets from a table (say books) that are related to another one
(say authors), but to implement listboxes in an easy way. (e.g. a column in
table books contains a foreign key from table authors, then in a form you'll
want a listbox to easily select one author). I've been thinking a bit myself
and came up with the following:

Define a XSP-logicsheet with namespace e.g. "dbf". Snippet:


  
dbfpool

  SELECT  FROM

  
 
  

  

  
   
  

  


note: dbfpool is a variable that might be set by a sitemap-parameter

Then use it in an xsp-page like:


That get's you in one line a  listbox filled with all the names in the
author-table. Defining another parameter like ref="authorid" you could then
bind it to a field in the book table.


2. Reply to Lorenzo
That is quite close to what I was talking about. However I don't like having
to write an extensive configuration file. For example, I don't like having
to define listboxes using a block of esql every time. I'd very much prefer
something like I outlined above.
Besides I don't need to use the same form elements again and again in
different contexts (which your system seems to be very useful for), it's
more about being able to write one single form really quickly and directly
without loads of support code (like the esql) around it.


3. More thoughts: XMLForms
I'd been looking into XMLForms before and reading Lorenzo's note at the end
of his last message I took another deeper look. I found a quite interesting
tutorial that describes how to replace the form model (currently
incorporated by a JavaBean) by a model defined by an XML-File that is linked
to an XIndice database:
http://wiki.cocoondev.org/Wiki.jsp?page=XMLFormXindice

I was wondering whether this would be worth a thought in this case as well,
since XML may be generated from any ordinary relational database, too.

You would generate an XML-Model from the database, use it to keep the form
data and in the end send the data back to the database. That would also have
the advantage that you could build multi-page forms to gather the data for
one table (for example one form to gather the book data and a separate one
to select the author from a long list) and then in the end send it to the
database altogether (otherwise you would have to store the book data without
the author being filled in which wouldn't be possible, cause the author
field can't be empty...)

So I am currently pondering about what to go for: an XSP logicsheet approach
as outlined above - that might be easier to implement right now - or try to
use XMLForms which would be a lot more flexible.

Any advice is highly appreciated.
Stefan



AGAINST THE WAR!


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



ServletException in JSPReader.generate()

2003-03-25 Thread Bobby Mitchell
Hi,
   I'm using RedHat 8.0, Cocoon-2.0.4 from cvs 3/25/03, Tomcat 4.1.21, 
Sun  j2sdk1.4.1_02.

   I tried to access "cocoon/samples/jsp/welcome.htm" and get errors. 
At first the error is "file not found," but I saw in the logs where the 
path for error2html.xsl in the file "cocoon/samples/sitemap.xmap" is 
"common/style/xsl/html/error2html.xsl." I changed this to 
"samples/common/style/xsl/html/error2html.xsl" and I now get the error 
"ServletException in JSPReader.generate()."

   The following is from the sitemap.log:

 4473 DEBUG   (2003-03-25) 10:37.35:955   [sitemap.reader.jsp] 
(/cocoon/samples/jsp/welcome.htm) Thread-8/JSPReader: JSPReader 
executing JSP:/samples/jsp/welcome.jsp
  4474 DEBUG   (2003-03-25) 10:37.36:546   [sitemap.reader.jsp] 
(/cocoon/samples/jsp/welcome.htm) Thread-8/JSPReader: ServletException 
in JSPReader.generate()
  4475 org.apache.jasper.JasperException: Unable to compile class for JSP
  4476
  4477 An error occurred at line: -1 in the jsp file: null
  4478
  4479 Generated servlet error:
  4480 [javac] Since fork is true, ignoring compiler setting.
  4481 [javac] Compiling 1 source file
  4482 [javac] Since fork is true, ignoring compiler setting.
  4483

 4559 DEBUG   (2003-03-25) 10:37.36:552   [sitemap.reader.jsp] 
(/cocoon/samples/jsp/welcome.htm) Thread-8/JSPReader: Embedded 
ServletException JSPReader.generate()
  4560 INFO(2003-03-25) 10:37.36:553   [sitemap] 
(/cocoon/samples/jsp/welcome.htm) Thread-8/PipelineNode: Error while 
processing pipeline at 
file:/var/tomcat4/webapps/cocoon/samples/jsp/sitemap.xmap:27:19
  4561 org.apache.cocoon.ProcessingException: ServletException in 
JSPReader.generate()

 4625 DEBUG   (2003-03-25) 10:37.36:559   [sitemap] 
(/cocoon/samples/jsp/welcome.htm) Thread-8/ResourceLimitingPool: Put a 
org.apache.cocoon.reading.JSPReader back into the pool.
  4626 INFO(2003-03-25) 10:37.36:562   [sitemap] 
(/cocoon/samples/jsp/welcome.htm) Thread-8/PipelineNode: Error while 
processing pipeline at 
file:/var/tomcat4/webapps/cocoon/samples/sitemap.xmap:44:17
  4627 org.apache.cocoon.ProcessingException: ServletException in 
JSPReader.generate()

Any ideas on how I can get my jsp samples to work?

Thanks

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


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


java classes in XSP

2003-03-25 Thread Maxime.Gheysen
Hi,
I want to call the funtion "subsitute" from class 
java.lang.Object
-org.apache.oro.text.regex.Util

how must I declare the class? I wrote

org.apache.oro.text.regex.Util


but I get the error
Class org.apache.cocoon.www.workflowmanager.documents.Util not found

thanks

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



Re: Eclipse, Tomcat and Sysdeo Plugin

2003-03-25 Thread ePost
Hi Hussayn,
 
I´m just coming back to the debug problem in eclipse (learning a lot of new 
stuff at the moment). I´ve set the startup option for tomcat as you adviced 
(but via command line not via JAVA_OPTS). In eclipse I start the remote 
debug session which successfully connects to port 8000. But I can´t set any 
breakpoints in the Cocoon Java Source. Do I have to adjust the source 
lookup path in eclipse? I´ve already tried some settings but nothing 
worked.
 
Thanks for your answer.
 
Helmut
 
On Thu, 20 Mar 2003 09:34:06 +0100, SAXESS - Hussayn Dabbous 
<[EMAIL PROTECTED]> wrote:
 
Hi,
 
I can't tell you why you get this error, but i can tell you
how we are debugging cocoon enabled web applications in a
similar environment as yours:
 
We are running eclipse, cocoon-2.0.4, tomcat-4.1.18 on solaris
and linux. We run eclipse on a PC-frontend and we always start
the tomcat server with the startup scripts. When debuging
whichever webapp (including cocoon) we set the JAVA_OPTS
as follows:
 
-server -Xdebug -Xnoagent -Djava.compiler=NONE - 
Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8000
 
Then we (re)start the tomcat server as usual with "startup.sh" or
"startup.bat". Please note, that we set the JAVA_OPTS, not the
CATALINA_OPTS for this, although the docs at the tomcat site
state something else (that does not work for us)
 
On eclipse we set up a remote debugging session on port 8000.
This works perfectly! It should also work, when the tomcat server
is running locally.
 
regards, hussayn
 
 
Helmut Tammen wrote:
Hi,
 
I try to use the combination of Eclipse, Tomcat and the Sysdeo Plugin to 
debug the cocoon source in Eclipse. This doesn´t work (error message when 
trying to access any Cocoon resource at the end). When I start Tomcat via 
the startup.bat everything works fine.
My environment:
Windows 2000
Eclipse 2.1 (Beta)
JDK 1.4.1_02
Tomcat 4.0.6
Sysdeo plugin for Eclipse 2.1 (Beta)
Cocoon 2.1-dev
 
I´ve also tried JDK 1.4.0, Tomcat 4.1.18 and Cocoon 2.0.4 in various 
combinations with no success.
 
All the Xerces and Xalan libs are replaced with the ones from Cocoon in the 
directories [JAVA_HOME]/jre/lib/
endorsed, [CATALINA_HOME]/common/endorsed and in 
[ECLIPSE_HOME]/plugins/org.apache.xerces_4.0.7 (probably not necessary 
because not in the classpath of my webapp)
 
Does anyone have an idea what´s going wrong here?
 
Thanks in advance
Helmut
 
 
ERROR   (2003-03-20) 08:33.54:103   [access] (Unknown-URI) Unknown- 
thread/CocoonServlet: Cocoon got an Exception while trying to close stream.
java.io.IOException: The stream has been closed
at 
org.apache.catalina.connector.ResponseStream.flush(ResponseStream.java:237)
at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1145)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

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


Re: Why can't a Action be Contextualizable??

2003-03-25 Thread Geoff Howard
Try both your questions on dev.

Geoff

At 10:24 AM 3/25/2003, you wrote:
Hi,

I wanted to make my custom action Contextualizable in order to get the
base directory of the action. But it looks like this is never called or I
get errors when trying to create the component.
Why? I inherit from ConfigurableComposerAction to be configurable and
Composable as well.
Principally any Avalon component should be able to be Contextualizable?
Also non-Pipeline backend components used by a action or source or a
action or source itself?
BTW, Cocoon 2.0.4



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


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


Re: Orcale-XML-Parser in Coccon2

2003-03-25 Thread Marc Portier


Uwe Gerger wrote:
it is the standard xml-parser in our company; so we have to use it
instead of xerces!
That's the only reason!
uh!
must feel great though :-p
maybe jdk 1.4 is also a standard in whoch case you have a serious 
conflict :-)

in coocon.xconf I found some parameter options for the XML-parser,
namely sax-parser-factory and document-builder-factory. Have I have to
specify them? In the original state they are comment out?
aha. you made me have a look myself now.
it's even better then I suggested (I should 've known though)
yes, use those and replace the ??? values with the factories 
provided by the oracle implementation.
It will need to be full qualified classnames you put in there.

For inspiration on the values open the 
oracle-jaxp-implementation-whatevername.jar (eg with winzip)
and copy the contents of the files in 
META-INF/services/javax.xml.parsers.* into the respective elements.

(if oracle parser is jaxp compliant those files should be in the 
jar, otherwise you'll need to go into the documentation)



for interest in 2 words the theory:
JAXP is an insulation layer for having xml docs parsed using the 
SAX or DOM API (forgetting about the XSLT support for ease of 
argument)

Rather then doing the parsing itself this layer just specifies 
how JAXP compliant parsers should work AND offers a transparent 
dynamic loading of the implementation class through the 
AbstractFactory pattern.

Which boils down to:
This last technique requires you to specify which is the full 
qualified class name of the implementation-factory to be used.

- cocoon lets you do that in the elms you mention there, and I 
would use that option in this case (since you want to hardwire 
the inhouse STANDARD) the bad thing about this approach is that 
newer versions might (unlikely) place their factories elsewhere

- jaxp itself 'detects' (see the directory /META-INF/services in 
the jar file of xerces and (should be oracle) parsers)  which 
implementation to use by probing for the files 
/META-INF/services/javax.xml.parsers.(SAXParserFactory or 
DocumentBuilderFactory) in its classpath... therefor the 'first' 
jaxp implementation jar in the classpath will get used.

since jdk 1.4 however this means you also have to outsmart the 
jre-classpath (since it already holds xerces) using the endorsed 
mechanism
(you will need to check out docos from your webcontainer I guess)

in this latter case I would very much opt for removing xercesImpl.jar



Thanks
Uwe
[EMAIL PROTECTED] schrieb:

Uwe,

have no experience with it, however if it is fully JAXP compliant
it _should_ be as easy as putting the jar in the classpath up
front of (better yet: and removing) the xerces impl jar.
for more detail and explanation: check the  elm in
your WEB-INF/cocoon.xconf (loads of comments there taking you by
the hand)
any particular reason why you like to switch it though?

-marc=

Uwe Gerger wrote:

Hello,
I would like to use the Oracle - XML-Parser (version xdk-9_2_0_1_0) in
Cocoon 2. Has anybody some experience in doing this!?
What I have to do?
Thanks in advance
 Uwe
--
Marc Portierhttp://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
Read my weblog at  http://radio.weblogs.com/0116284/
[EMAIL PROTECTED]  [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


--
Marc Portierhttp://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
Read my weblog at  http://radio.weblogs.com/0116284/
[EMAIL PROTECTED]  [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Source using Component via ECM

2003-03-25 Thread Peter Klotz
Hi,

I have a custom source that gets the component manager from the
SourceFactory.
So good so fine, but obviously when the source looks up its backend
component it does not find it, although it is configured in cocoon.xconf
as
.

How is this suposed to work? Am I missing something?


Thanks, Peter



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



Why can't a Action be Contextualizable??

2003-03-25 Thread Peter Klotz
Hi,

I wanted to make my custom action Contextualizable in order to get the
base directory of the action. But it looks like this is never called or I
get errors when trying to create the component.
Why? I inherit from ConfigurableComposerAction to be configurable and
Composable as well.

Principally any Avalon component should be able to be Contextualizable?
Also non-Pipeline backend components used by a action or source or a
action or source itself?

BTW, Cocoon 2.0.4



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



RE: [SUMMARY] : Encoding problems

2003-03-25 Thread Lionel Crine
THis error means that the eclaration of the sitemap is UTF-8 and you insert 
ISO character in it maybe in comment)
.At 15:44 25/03/2003 +0100, you wrote:
hello,

any one ever have this problem with the Webserviceproxy mode  ? :

org.apache.cocoon.ProcessingException : Failed to execute pipeline : 
java.io.UTFDataFormat Exception : Invalid byte 2 of 3 byte UTF-8 sequence

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


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


Re: [SUMMARY] : Encoding problems

2003-03-25 Thread Lionel Crine
This method works well.

But for me it's more complicated.
In my case, The URL should go from the xsp (which have the good encoding) 
through an xsl page in a  element as "src" attribute. But at this 
moment, characters are converted into UTF-8, which I don't want.

Does I reach the cocoon limits ?



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


RE: [SUMMARY] : Encoding problems

2003-03-25 Thread zze-MORY Nicolas FTRD/DMI/REN
hello,

any one ever have this problem with the Webserviceproxy mode  ? : 

org.apache.cocoon.ProcessingException : Failed to execute pipeline : 
java.io.UTFDataFormat Exception : Invalid byte 2 of 3 byte UTF-8 sequence

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



[SUMMARY] : Encoding problems

2003-03-25 Thread Maxime.Gheysen
to have the right caracter-set in sitamap.xmap write this :

  
iso-8859-1
  
  
iso-8859-1
  



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 25, 2003 3:25 PM
To: [EMAIL PROTECTED]
Subject: RE: Encoding problems


In the doc it's written about setting this in web.xml :


  form-encoding
  utf-8


But it doesn't change anything with cocoon 2.0!


-Original Message-
From: Konstantin Piroumian [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 25, 2003 2:55 PM
To: [EMAIL PROTECTED]
Subject: Re: Encoding problems


You can set container-encoding and form-encoding initialization parameters
in web.xml . Take a look at the web.xml from Cocoon distribution, there's a
comment about it.

- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, March 25, 2003 16:36
Subject: RE: Encoding problems


Is there no other way to keep my french caracter set from page to page
(because I have to many pages and some request are xsp-request)
Tanks

-Original Message-
From: Yury Mikhienko [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 25, 2003 2:20 PM
To: [EMAIL PROTECTED]
Subject: Re: Encoding problems


On Tue, 25 Mar 2003 14:12:59 +0100
<[EMAIL PROTECTED]> wrote:

> Hi,
> I have xsp pages, and all my parameters with accents (И, Х, Т,...) changes
into things like "ц╘",...
> I tried diferent encoding into my pages (like ), but nothing seems to work!
> how can I keep the accents?
>

Try form-encoding attribute in the xsp:request
or
construction like:

String myparam = new
String(request.getParameter("param").getBytes("ISO-8859-1"),"CP-1251");

--

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

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


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



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


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


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



Re: Encoding problems

2003-03-25 Thread Konstantin Piroumian
What about the container-encoding?

Btw, I never had problems with encoding in i18n samples, cause I always use
UTF-8 everywhere. Use Unicode and you'll have much less problems. In
cocoon/samples/i18n/simple.xsp there is an explicit conversion for UTF-8 to
container-encoding and it works for all the locales used there.

- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, March 25, 2003 17:24
Subject: RE: Encoding problems


In the doc it's written about setting this in web.xml :


  form-encoding
  utf-8


But it doesn't change anything with cocoon 2.0!


-Original Message-
From: Konstantin Piroumian [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 25, 2003 2:55 PM
To: [EMAIL PROTECTED]
Subject: Re: Encoding problems


You can set container-encoding and form-encoding initialization parameters
in web.xml . Take a look at the web.xml from Cocoon distribution, there's a
comment about it.

- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, March 25, 2003 16:36
Subject: RE: Encoding problems


Is there no other way to keep my french caracter set from page to page
(because I have to many pages and some request are xsp-request)
Tanks

-Original Message-
From: Yury Mikhienko [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 25, 2003 2:20 PM
To: [EMAIL PROTECTED]
Subject: Re: Encoding problems


On Tue, 25 Mar 2003 14:12:59 +0100
<[EMAIL PROTECTED]> wrote:

> Hi,
> I have xsp pages, and all my parameters with accents (И, Х, Т,...) changes
into things like "ц╘",...
> I tried diferent encoding into my pages (like ), but nothing seems to work!
> how can I keep the accents?
>

Try form-encoding attribute in the xsp:request
or
construction like:

String myparam = new
String(request.getParameter("param").getBytes("ISO-8859-1"),"CP-1251");

--

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

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


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



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


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



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



RE: Encoding problems

2003-03-25 Thread Maxime.Gheysen
In the doc it's written about setting this in web.xml :


  form-encoding
  utf-8


But it doesn't change anything with cocoon 2.0!


-Original Message-
From: Konstantin Piroumian [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 25, 2003 2:55 PM
To: [EMAIL PROTECTED]
Subject: Re: Encoding problems


You can set container-encoding and form-encoding initialization parameters
in web.xml . Take a look at the web.xml from Cocoon distribution, there's a
comment about it.

- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, March 25, 2003 16:36
Subject: RE: Encoding problems


Is there no other way to keep my french caracter set from page to page
(because I have to many pages and some request are xsp-request)
Tanks

-Original Message-
From: Yury Mikhienko [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 25, 2003 2:20 PM
To: [EMAIL PROTECTED]
Subject: Re: Encoding problems


On Tue, 25 Mar 2003 14:12:59 +0100
<[EMAIL PROTECTED]> wrote:

> Hi,
> I have xsp pages, and all my parameters with accents (И, Х, Т,...) changes
into things like "ц╘",...
> I tried diferent encoding into my pages (like ), but nothing seems to work!
> how can I keep the accents?
>

Try form-encoding attribute in the xsp:request
or
construction like:

String myparam = new
String(request.getParameter("param").getBytes("ISO-8859-1"),"CP-1251");

--

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

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


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



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


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



Re: Problem in converting umlaut characters..

2003-03-25 Thread Alex Romayev
Hi Jaya,

Have you looked in Wiki (Cocoon documentation site),
if not, try
http://wiki.cocoondev.org/Search.jsp?query=encoding. 
Let me know if this doesn't help.

Cheers,
-Alex

--- jaya <[EMAIL PROTECTED]> wrote:
> Hello,
> 
> I am using Cocoon latest version. When I am
> generating a text file from
> XML document using XSL, I got the following problem
> in Cocoon.
> 
> "Müller" is shown as "Müller"
> 
> I have given the encoding in XML and XSL file
> properly and I have
> generated the same text file in the Command line
> using Xalan XSLT
> processor. I got the text "Müller" properly.  I am
> not getting this
> while I am using Cocoon.
> 
> Could U please tell me whether I have to give any
> settings in Cocoon for
> 
> this Umlaut characters ?
> 
> Expecting reply,
> 
> Thanks a lot,
> 
> Jaya
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 


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



Re: Encoding problems

2003-03-25 Thread Konstantin Piroumian
You can set container-encoding and form-encoding initialization parameters
in web.xml . Take a look at the web.xml from Cocoon distribution, there's a
comment about it.

- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, March 25, 2003 16:36
Subject: RE: Encoding problems


Is there no other way to keep my french caracter set from page to page
(because I have to many pages and some request are xsp-request)
Tanks

-Original Message-
From: Yury Mikhienko [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 25, 2003 2:20 PM
To: [EMAIL PROTECTED]
Subject: Re: Encoding problems


On Tue, 25 Mar 2003 14:12:59 +0100
<[EMAIL PROTECTED]> wrote:

> Hi,
> I have xsp pages, and all my parameters with accents (И, Х, Т,...) changes
into things like "ц╘",...
> I tried diferent encoding into my pages (like ), but nothing seems to work!
> how can I keep the accents?
>

Try form-encoding attribute in the xsp:request
or
construction like:

String myparam = new
String(request.getParameter("param").getBytes("ISO-8859-1"),"CP-1251");

--

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

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


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



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



Re: Orcale-XML-Parser in Coccon2

2003-03-25 Thread Uwe Gerger
Geoff,
it would be very nice if you can give me some hints, like how to
integrate the parser in cocoon etc. !


Thanks in advance
Uwe


[EMAIL PROTECTED] schrieb:
> 
> I have some experience with it, but not yet within cocoon but would
> be interetested enough to lend a hand.  Not sure the below will
> get what you were looking for - if not, write back and cc me
> directly.
> 
> Geoff
> 
> > -Original Message-
> > From: Marc Portier [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, March 25, 2003 5:40 AM
> > To: [EMAIL PROTECTED]
> > Subject: Re: Orcale-XML-Parser in Coccon2
> >
> >
> > Uwe,
> >
> > have no experience with it, however if it is fully JAXP compliant
> > it _should_ be as easy as putting the jar in the classpath up
> > front of (better yet: and removing) the xerces impl jar.
> >
> > for more detail and explanation: check the  elm in
> > your WEB-INF/cocoon.xconf (loads of comments there taking you by
> > the hand)
> >
> > any particular reason why you like to switch it though?
> >
> > -marc=
> >
> > Uwe Gerger wrote:
> > > Hello,
> > > I would like to use the Oracle - XML-Parser (version xdk-9_2_0_1_0) in
> > > Cocoon 2. Has anybody some experience in doing this!?
> > > What I have to do?
> > >
> > > Thanks in advance
> > > Uwe
> > >
> >
> > --
> > Marc Portierhttp://outerthought.org/
> > Outerthought - Open Source, Java & XML Competence Support Center
> > Read my weblog at  http://radio.weblogs.com/0116284/
> > [EMAIL PROTECTED]  [EMAIL PROTECTED]
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

-- 
Uwe Gerger_/_/_/   _/_/  _/_/
BMW AG, TG-53 IT-Technologie _/   _/  _/_/_/_/  _/_/
80788 Muenchen  _/_/_/   _/ _/ _/  _/ _/ _/
Tel: +49 89 382 35687  _/   _/  _/_/  _/_/_/_/
Fax: +49 89 382 49040 _/_/_/   _/_/  _/_/
mailto:[EMAIL PROTECTED]

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



RE: Encoding problems

2003-03-25 Thread Maxime.Gheysen
Is there no other way to keep my french caracter set from page to page (because I have 
to many pages and some request are xsp-request)
Tanks

-Original Message-
From: Yury Mikhienko [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 25, 2003 2:20 PM
To: [EMAIL PROTECTED]
Subject: Re: Encoding problems


On Tue, 25 Mar 2003 14:12:59 +0100
<[EMAIL PROTECTED]> wrote:

> Hi,
> I have xsp pages, and all my parameters with accents (И, Х, Т,...) changes into 
> things like "ц╘",...
> I tried diferent encoding into my pages (like  encoding="ISO-8859-1"?>), but nothing seems to work! 
> how can I keep the accents?
> 

Try form-encoding attribute in the xsp:request
or
construction like:

String myparam = new 
String(request.getParameter("param").getBytes("ISO-8859-1"),"CP-1251");

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

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


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



Re: Encoding problems

2003-03-25 Thread Yury Mikhienko
On Tue, 25 Mar 2003 14:12:59 +0100
<[EMAIL PROTECTED]> wrote:

> Hi,
> I have xsp pages, and all my parameters with accents (И, Х, Т,...) changes into 
> things like "ц╘",...
> I tried diferent encoding into my pages (like  encoding="ISO-8859-1"?>), but nothing seems to work! 
> how can I keep the accents?
> 

Try form-encoding attribute in the xsp:request
or
construction like:

String myparam = new 
String(request.getParameter("param").getBytes("ISO-8859-1"),"CP-1251");

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

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



Encoding problems

2003-03-25 Thread Maxime.Gheysen
Hi,
I have xsp pages, and all my parameters with accents (é, è, ô,...) changes into things 
like "é",...
I tried diferent encoding into my pages (like ), but nothing seems to work! 
how can I keep the accents?

Thanks

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



Re: Orcale-XML-Parser in Coccon2

2003-03-25 Thread Uwe Gerger
it is the standard xml-parser in our company; so we have to use it
instead of xerces!
That's the only reason!

in coocon.xconf I found some parameter options for the XML-parser,
namely sax-parser-factory and document-builder-factory. Have I have to
specify them? In the original state they are comment out?

Thanks
Uwe

[EMAIL PROTECTED] schrieb:
> 
> Uwe,
> 
> have no experience with it, however if it is fully JAXP compliant
> it _should_ be as easy as putting the jar in the classpath up
> front of (better yet: and removing) the xerces impl jar.
> 
> for more detail and explanation: check the  elm in
> your WEB-INF/cocoon.xconf (loads of comments there taking you by
> the hand)
> 
> any particular reason why you like to switch it though?
> 
> -marc=
> 
> Uwe Gerger wrote:
> > Hello,
> > I would like to use the Oracle - XML-Parser (version xdk-9_2_0_1_0) in
> > Cocoon 2. Has anybody some experience in doing this!?
> > What I have to do?
> >
> > Thanks in advance
> >   Uwe
> >
> 
> --
> Marc Portierhttp://outerthought.org/
> Outerthought - Open Source, Java & XML Competence Support Center
> Read my weblog at  http://radio.weblogs.com/0116284/
> [EMAIL PROTECTED]  [EMAIL PROTECTED]
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

-- 
Uwe Gerger_/_/_/   _/_/  _/_/
BMW AG, TG-53 IT-Technologie _/   _/  _/_/_/_/  _/_/
80788 Muenchen  _/_/_/   _/ _/ _/  _/ _/ _/
Tel: +49 89 382 35687  _/   _/  _/_/  _/_/_/_/
Fax: +49 89 382 49040 _/_/_/   _/_/  _/_/
mailto:[EMAIL PROTECTED]

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



Re: [SUMMARY] XSLT does not maintain 'format' tags in XML??

2003-03-25 Thread Joerg Heinicke
Oh, thanks Ugo, a small but possibly painful mistake ...

Joerg

Ugo Cei wrote:
[EMAIL PROTECTED] wrote:

The solution:

change



to




I don't think this is a good solution. If your input is

first line  second line

the first instruction will produce

first line second line

but the second will produce

first line  second line

In order to produce:

first line  second line

you need to use


--

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


Re: XMLForm: how to display a text

2003-03-25 Thread Konstantin Piroumian
You can use whatever markup you want along with XMLForms, just use another
(default) namespace and then handle it in your formatting stylesheet. You
can mix several namespaces and use several trasnformers to handle them,
e.g.:
XMLFormTransformer -> i18nTransformer -> XSLTTransoformer.

Konstantin

- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Tuesday, March 25, 2003 15:28
Subject: RE: XMLForm: how to display a text


OK, thanks.

And about HTML link?
If I want to insert a HTML link (href) in my view?
Is there something that already exists?

Regards
Sylvain

-Message d'origine-
De: Stefan Klein [mailto:[EMAIL PROTECTED]
Date: mardi, 25. mars 2003 12:19
À: [EMAIL PROTECTED]
Objet: Re: XMLForm: how to display a text


No, what Richard says is just to include your own tag in the form, for
example my text o my text, just call it
how you like.

The XMLFormTransformer will ignore the element and just pass it through. You
can then catch it in your XSL (for example in xmlform2html.xsl, if you're
using that one) and transform it to whatever you like.
I think you can even use the "xf" prefix, is to say my
text and the transformer will still just pass it through.

A change in the tranformer is not required.
Stefan

--
AGAINST THE WAR!


- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, March 25, 2003 8:56 AM
Subject: RE: XMLForm: how to display a text


Yes, I think.

What you said is that I should modify the XMLFormTransformer to add my own
element?

I thought that maybe something already exists.

Regards
Sylvain


-Message d'origine-
De: Ryan Hoegg [mailto:[EMAIL PROTECTED]
Date: lundi, 24. mars 2003 14:09
À: [EMAIL PROTECTED]
Objet: Re: XMLForm: how to display a text


You could just include it in your own element like .  Then
the XMLFormTransformer will ignore it I think.

--
Ryan Hoegg
ISIS Networks
http://www.isisnetworks.net

[EMAIL PROTECTED] wrote:

>Hello,
>
>Is there a way to display a simple text in XMLForm views?
>
>Someting like my text...
>


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


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



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


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



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



RE: XMLForm: how to display a text

2003-03-25 Thread Sylvain.Thevoz
OK, thanks.

And about HTML link?
If I want to insert a HTML link (href) in my view? 
Is there something that already exists?

Regards
Sylvain

-Message d'origine-
De: Stefan Klein [mailto:[EMAIL PROTECTED]
Date: mardi, 25. mars 2003 12:19
À: [EMAIL PROTECTED]
Objet: Re: XMLForm: how to display a text


No, what Richard says is just to include your own tag in the form, for
example my text o my text, just call it
how you like.

The XMLFormTransformer will ignore the element and just pass it through. You
can then catch it in your XSL (for example in xmlform2html.xsl, if you're
using that one) and transform it to whatever you like.
I think you can even use the "xf" prefix, is to say my
text and the transformer will still just pass it through.

A change in the tranformer is not required.
Stefan

--
AGAINST THE WAR!


- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, March 25, 2003 8:56 AM
Subject: RE: XMLForm: how to display a text


Yes, I think.

What you said is that I should modify the XMLFormTransformer to add my own
element?

I thought that maybe something already exists.

Regards
Sylvain


-Message d'origine-
De: Ryan Hoegg [mailto:[EMAIL PROTECTED]
Date: lundi, 24. mars 2003 14:09
À: [EMAIL PROTECTED]
Objet: Re: XMLForm: how to display a text


You could just include it in your own element like .  Then
the XMLFormTransformer will ignore it I think.

--
Ryan Hoegg
ISIS Networks
http://www.isisnetworks.net

[EMAIL PROTECTED] wrote:

>Hello,
>
>Is there a way to display a simple text in XMLForm views?
>
>Someting like my text...
>


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


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



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


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



Re: [SUMMARY] XSLT does not maintain 'format' tags in XML??

2003-03-25 Thread Ugo Cei
[EMAIL PROTECTED] wrote:
The solution:
change



to


I don't think this is a good solution. If your input is

	first line  second line

the first instruction will produce

	first line second line

but the second will produce

	first line  second line

In order to produce:

	first line  second line

you need to use

	

--
Ugo Cei - Consorzio di Bioingegneria e Informatica Medica
P.le Volontari del Sangue, 2 - 27100 Pavia - Italy
Phone: +39.0382.525100 - E-mail: [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Orcale-XML-Parser in Coccon2

2003-03-25 Thread Geoff Howard
I have some experience with it, but not yet within cocoon but would 
be interetested enough to lend a hand.  Not sure the below will 
get what you were looking for - if not, write back and cc me 
directly.

Geoff

> -Original Message-
> From: Marc Portier [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, March 25, 2003 5:40 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Orcale-XML-Parser in Coccon2
> 
> 
> Uwe,
> 
> have no experience with it, however if it is fully JAXP compliant 
> it _should_ be as easy as putting the jar in the classpath up 
> front of (better yet: and removing) the xerces impl jar.
> 
> for more detail and explanation: check the  elm in 
> your WEB-INF/cocoon.xconf (loads of comments there taking you by 
> the hand)
> 
> any particular reason why you like to switch it though?
> 
> -marc=
> 
> Uwe Gerger wrote:
> > Hello,
> > I would like to use the Oracle - XML-Parser (version xdk-9_2_0_1_0) in
> > Cocoon 2. Has anybody some experience in doing this!?
> > What I have to do?
> > 
> > Thanks in advance
> > Uwe
> > 
> 
> -- 
> Marc Portierhttp://outerthought.org/
> Outerthought - Open Source, Java & XML Competence Support Center
> Read my weblog at  http://radio.weblogs.com/0116284/
> [EMAIL PROTECTED]  [EMAIL PROTECTED]
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

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



encoding problem and xsp

2003-03-25 Thread Lionel Crine
Hello,

I'm having trouble with my xsp page and ISO-8859-1 encoding. I use 
cocoon-2.0.4.

I have an xsp which get the request object of a form and create again a 
link for an xsl page which redirect all to frame.
All generators, transfomers and serializer have to  parameter.

the sitemap :



   
-->create a link from request parameters
   --> 
redirection to three pages (via frames).
  


frame.xsl :


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


  
   
  
   
   
   
 
 

 --> this frame the the 
link



   

   

  



I also put a piece of frame.xsp :


...
  
Prototype RLR

  top
  empty
  search?for(int i=0;i < 
values.size();i++){(String)tempVector.elementAt(i)=(String)values.elementAt(i)if(i 
< values.size()-1){&}}

  

When the sitemap is called the accentuated characters are not well displayed.
I tried different things.
1/ the "search"(in left tag) page is a request generator which display :

...

 
  école --> I should see "école" (without quote)
  
...
2/Furthermore I tried :



   
-->create a link from request parameters
  


This send an answer with good characters (é, â, etc, are well displayed).

Any clue ?

Lionel
  

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


Re: XMLForm: how to display a text

2003-03-25 Thread Stefan Klein
No, what Richard says is just to include your own tag in the form, for
example my text o my text, just call it
how you like.

The XMLFormTransformer will ignore the element and just pass it through. You
can then catch it in your XSL (for example in xmlform2html.xsl, if you're
using that one) and transform it to whatever you like.
I think you can even use the "xf" prefix, is to say my
text and the transformer will still just pass it through.

A change in the tranformer is not required.
Stefan

--
AGAINST THE WAR!


- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, March 25, 2003 8:56 AM
Subject: RE: XMLForm: how to display a text


Yes, I think.

What you said is that I should modify the XMLFormTransformer to add my own
element?

I thought that maybe something already exists.

Regards
Sylvain


-Message d'origine-
De: Ryan Hoegg [mailto:[EMAIL PROTECTED]
Date: lundi, 24. mars 2003 14:09
À: [EMAIL PROTECTED]
Objet: Re: XMLForm: how to display a text


You could just include it in your own element like .  Then
the XMLFormTransformer will ignore it I think.

--
Ryan Hoegg
ISIS Networks
http://www.isisnetworks.net

[EMAIL PROTECTED] wrote:

>Hello,
>
>Is there a way to display a simple text in XMLForm views?
>
>Someting like my text...
>


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


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



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



Re: Orcale-XML-Parser in Coccon2

2003-03-25 Thread Marc Portier
Uwe,

have no experience with it, however if it is fully JAXP compliant 
it _should_ be as easy as putting the jar in the classpath up 
front of (better yet: and removing) the xerces impl jar.

for more detail and explanation: check the  elm in 
your WEB-INF/cocoon.xconf (loads of comments there taking you by 
the hand)

any particular reason why you like to switch it though?

-marc=

Uwe Gerger wrote:
Hello,
I would like to use the Oracle - XML-Parser (version xdk-9_2_0_1_0) in
Cocoon 2. Has anybody some experience in doing this!?
What I have to do?
Thanks in advance
Uwe
--
Marc Portierhttp://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
Read my weblog at  http://radio.weblogs.com/0116284/
[EMAIL PROTECTED]  [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Problem in converting umlaut characters..

2003-03-25 Thread Marc Portier


jaya wrote:
Hello,

I am using Cocoon latest version. When I am generating a text file from
text or html file?
on-line or off-line?
XML document using XSL, I got the following problem in Cocoon.

"Müller" is shown as "Müller"

where do you see this come up? ('in cocoon' is a bit vague)
your browser?
can you check on which encoding the view-app (assuming browser) 
is using to render the text?

currently thinking setting content encoding on your serializer 
should do it (in html you could hack some meta tag in there, for 
txt you'll really need to change the latter)

how to do it is in the first part of this:
http://wiki.cocoondev.org/Wiki.jsp?page=RequestParameterEncoding
HTH
-marc=
I have given the encoding in XML and XSL file properly and I have
generated the same text file in the Command line using Xalan XSLT
processor. I got the text "Müller" properly.  I am not getting this
while I am using Cocoon.
Could U please tell me whether I have to give any settings in Cocoon for

this Umlaut characters ?

Expecting reply,

Thanks a lot,

Jaya

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Marc Portierhttp://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
Read my weblog at  http://radio.weblogs.com/0116284/
[EMAIL PROTECTED]  [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Orcale-XML-Parser in Coccon2

2003-03-25 Thread Uwe Gerger
Hello,
I would like to use the Oracle - XML-Parser (version xdk-9_2_0_1_0) in
Cocoon 2. Has anybody some experience in doing this!?
What I have to do?

Thanks in advance
Uwe

-- 
Uwe Gerger_/_/_/   _/_/  _/_/
BMW AG, TG-53 IT-Technologie _/   _/  _/_/_/_/  _/_/
80788 Muenchen  _/_/_/   _/ _/ _/  _/ _/ _/
Tel: +49 89 382 35687  _/   _/  _/_/  _/_/_/_/
Fax: +49 89 382 49040 _/_/_/   _/_/  _/_/
mailto:[EMAIL PROTECTED]

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