RE: xsp-session : Bug with Cocoon? or Bug with programmer?

2002-11-12 Thread Tom Place
After searching the created Java file (apologies for my earlier mistake), the request helper is the only place it could be trying to set the variable. For example the following XSP (entire file) : +-+ ?xml version=1.0? xsp:page

Re: Cocoon Portal - User Roles

2002-11-12 Thread Wouter Scheele
ey, i am not totally aware of the ideas behind the authentication-fw but i think you could use xsp/esql to generate an xml file from your database conforming to the authentication-fw specs. HTH, wouter Hi Guys, I am trying to use the C2 portal application and would like to transfer the

Re: Cocoon Portal - User Roles

2002-11-12 Thread Richard Reyes
thanks for the input. - Original Message - From: Wouter Scheele [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, November 12, 2002 4:49 PM Subject: Re: Cocoon Portal - User Roles ey, i am not totally aware of the ideas behind the authentication-fw but i think you could use

Re: Installing: javax.servlet.ServletException: Servlet.init()

2002-11-12 Thread Murray Cumming
On Tue, 2002-11-12 at 05:17, Geoff Howard wrote: Yes, that was the specific error that people were getting when the older jars distributed with the jdk were not properly overridden. http://marc.theaimsgroup.com/?l=xml-cocoon-devm=103692889710176w=2 So do you see anything wrong in those

Re: Cocoon Portal - User Roles

2002-11-12 Thread Richard Reyes
Hi again guys, I have checked the source codes of the portal sample... I found out that if I am to add new user or to add new roles, both task will end up submitting forms with different parameters to this resource /cocoon/myportal/sunspotdemo-sunriseconf which inturn would exactly

RE: Cocoon Portal - User Roles

2002-11-12 Thread Matthew Langham
Hi, each function of the portal is mapped to a pipeline. So in order to change the storage - all you have to do is to modify the pipeline to use say the SQLGenerator etc. Read the documentation. http://xml.apache.org/cocoon/developing/webapps/authentication.html It explains this in

SourceWritingTransformer and sub-sitemap

2002-11-12 Thread Barbara Post
Hi, I use SourceWritingTransformer 3 times, and the XML stream that is processed by this transformer is produced by a sub-sitemap. So that my XML database queries are gathered there. The bug : my transformer wants to write in the ino folder, where is placed the sub-sitemap. Not the folder of the

Re: Using Cocoon from the command

2002-11-12 Thread Darren Petrie
I too had the same problems getting the command line to run. The jar files needed can be found in webapps/cocoon/WEB-INF/lib. I ran the class files from the build directory cocoon-2.0.3/build/cocoon/classes. The following worked for me. Maybe this will help. cd

RE: Dynamic models in XMLForms - was: Re: XMLForm - xf:repeat tag onDOM Nodes?

2002-11-12 Thread Josema Alonso
It needs further clarification before we can start design. Hopefully other people who asked for this feature will add a few more use cases. I know, thank you. Btw, what about filling a DOM node in the model from outside? For example, I'm using Xindice, and there's that nice pseudo protocol

RE: xsp-session : Bug with Cocoon? or Bug with programmer?

2002-11-12 Thread Antonio A. Gallardo Rivera
I dont make use of it. But I use XSP. :-D Try to change the order of the namespaces to: xsp:page xmlns:xsp-session=http://apache.org/xsp/session/2.0; create-session=true xmlns:xsp=http://apache.org/xsp; The check again the Java code. It is a interesting error. What version are you using?

Separation of concerns?

2002-11-12 Thread Andrew Watt
I have a (multi-part) question about the suggested separation of concerns that it is proposed that Cocoon achieves. I would like to ask how Cocoon is being used in a production environment, specifically how does separation of roles work out. Does it actually work in practice? How easy is it in

RE: enctype=multipart/form-data problem

2002-11-12 Thread Volker Schneider
Hi myself, this is a bug in MultipartParser.java in the readHeaders() method within Cocoon 2.0.2. When you define form name=form2 enctype=multipart/form-data method=post and you use a input name=uploadedfile type=file field, the header will contain: ...name=uploadedfile; filename= When

Re: Separation of concerns?

2002-11-12 Thread Emmanuil Batsis (Manos)
Hi Andrew, Andrew Watt wrote: I wonder if what has mostly been happening up to now is XSLT-coders dabbling with design? :) Yup. I would be interested in any stories about the reactions of pure graphics designers in a production setting when first faced with the Cocoon approach and how

Re: Using matchers, especially sessionstate...

2002-11-12 Thread Christian Haul
On 11.Nov.2002 -- 03:29 PM, Christian Joelly wrote: Hello! On Mon, Nov 11, 2002 at 11:17:15AM +0100, Christian Haul wrote: On 07.Nov.2002 -- 09:44 AM, Christian Joelly wrote: thanks for your answer. I'd prefer to use the version 2.0.1 for this application, because maybe there are

Re: Cocoon Portal - User Roles

2002-11-12 Thread Richard Reyes
Hi Matthew, Thanks for the reminder! Hi, each function of the portal is mapped to a pipeline. So in order to change the storage - all you have to do is to modify the pipeline to use say the SQLGenerator etc. Read the

RE: xsp-session : Bug with Cocoon? or Bug with programmer?

2002-11-12 Thread Tom Place
Unfortunately this makes no difference. The cocoon version is 2.03 Going to try downloading the 2.03 for JDK 1.4 binary - see if this makes any difference . . . -Original Message- From: Antonio A. Gallardo Rivera [mailto:agallardo;agsoftware.dnsalias.com] Sent: 12 November 2002 10:25

Re: link rel=

2002-11-12 Thread Jeremy Quinn
On Monday, Nov 11, 2002, at 18:21 Europe/London, Alessio Sangalli wrote: Hi I've a little problem because I want to automatically generate the link header (if you use Mozilla, it's very useful, if you want to show it: menu - view - show-hide - site navigation toolbar - show [as needed]).

Re: Problems with substitute-value in SQLTransformer

2002-11-12 Thread Jeremy Quinn
On Monday, Nov 11, 2002, at 19:41 Europe/London, Kjetil Kjernsmo wrote: I have problems with the SQLTransformer in a recent 2.1-dev, more specifically, I can't get the substitute-value element to work. Sorry, but this works fine for me in 2.1dev (I have different problems ;) regards Jeremy

Re: Cocoon Portal - User Roles

2002-11-12 Thread Richard Reyes
Hi Matthew / Guys, Just want to confirm some things Since the the "new role" function in the portal sample is mapped to new-role uri="cocoon:raw:/sunrise-newrole"/ uri, it is using this sitemap snippet right? map:match pattern="sunrise*" map:generate

RE: Cocoon Portal - User Roles

2002-11-12 Thread Richard Reyes
Hi Matthew / Guys, Just want to confirm some things Since the the "new role" function in the portal sample is mapped to new-role uri="cocoon:raw:/sunrise-newrole"/ uri, it is using this sitemap snippet right? map:match pattern="sunrise*" map:generate

XML manipulation

2002-11-12 Thread David Cahill
I am trying to manipulate an xml document i placedwithin the addressbook collection in Xindice. I'mattempting to match the value contained within the email attribute in the departmental-office element.When i run this script it compiles but I'm not getting any output. Can you see where I'm going

RE: Cocoon Portal - User Roles

2002-11-12 Thread Matthew Langham
Since the the "new role" function in the portal sample is mapped to new-role uri="cocoon:raw:/sunrise-newrole"/ uri, it is using this sitemap snippet right? map:match pattern="sunrise*" map:generate src="resources/sunrise{1}.xml"/ map:transform type="session"/ map:transform

cinclude and sitemap parameters

2002-11-12 Thread Jakob Praher
hi all, is it possible to access a sitemap parameter, within the cinclude tag in a page like this: sitemap: map:match pattern=composite/** map:generate src=aggreate.xml / map:transform type=cinclude map:parameter name=uri value=cocoon:/{1} / /map:transform map:serialize/

Re: cinclude and sitemap parameters

2002-11-12 Thread Yury Mikhienko
On Tue, 12 Nov 2002 13:43:42 +0100 (CET) Jakob Praher [EMAIL PROTECTED] wrote: hi all, is it possible to access a sitemap parameter, within the cinclude tag in a page like this: sitemap: map:match pattern=composite/** map:generate src=aggreate.xml / map:transform type=cinclude

Re: How to handle xml-fragment from db

2002-11-12 Thread Mohamed El-Refaey
Hi Robert mainly the returned XmlFragment that u retrieve from DB as String must be parsed before u can deal with it ... that is why u have the code string for the symbol --- lt; ... I faced this problem also but I didn't use XSP ...I implemeted a Transformer to get this String fragment and

R: How to handle xml-fragment from db

2002-11-12 Thread Lorenzo De Sio
Did you try: esql:get-columns/ coupled with xsl:value-of select=column_name disable-output-escapign=yes/ ? L. -Messaggio originale- Da: Robert Sösemann [mailto:robert.soesemann;gmx.de] Inviato: martedì 12 novembre 2002 13.44 A: [EMAIL PROTECTED] Oggetto: How to handle

R: Separation of concerns?

2002-11-12 Thread Luca Morandini
Lorenzo, to ease the burden on your graphic designers, you could even build a sort of taglib with XML elements to be expanded by an appropriate XSL. I've done a lib which allows me to specify smart HTML without the need of XSL (well, it works behind the scenes)... here's an example: img

Re: Using Cocoon from the command

2002-11-12 Thread Alessio Sangalli
Darren Petrie wrote: [alesan@valkyrie lib]$ pwd /home/alesan/java/jakarta-tomcat-4.1.12-LE-jdk14/webapps/cocoon/WEB-INF/lib [alesan@valkyrie lib]$ export CLASSPATH=.:/home/alesan/java/cocoon-2.0. .3/build/cocoon/classes/:avalon-framework-20020627.jar:avalon-excalibur-vm1 4-20020705.jar

Re: link rel=

2002-11-12 Thread Alessio Sangalli
Jeremy Quinn wrote: what I do to deal with this kind of thing is to have a menu.xml structure, that is imported into all my pages via CInclude, then xslt mh, I've never understood the difference between Xinclude and Cinclude... (having been provided with the 'id' of the page via the

XMLForm and dates

2002-11-12 Thread Sylvain.Thevoz
Hello, I use XMLForm and I want to put the today date in a form. The problem is that the today date has to be a String because the XMLForm simply display the value of the Bean class attribute. If this value is not a String, the date can't be read! But I want to store the today date in a Date

Re: cinclude and sitemap parameters

2002-11-12 Thread Jakob Praher
Try like: map:match pattern=composite/** map:generate src=aggreate.xml / map:transform src=sample.xsl map:parameter name=uri value=cocoon:/{1} / /map:transform map:transform type=cinclude/ map:serialize/ /map:match sample.xsl ?xml version=1.0?

Re: XMLForm and dates

2002-11-12 Thread Antonio Gallardo Rivera
hat database are you using? I am using PostgreSQL 7.2. I resolve this problem setting the requiered field in the database with default value today. Antonio Gallardo El Martes, 12 de Noviembre de 2002 08:00, [EMAIL PROTECTED] escribió: Hello, I use XMLForm and I want to put the today date

RE: Portal-fw tryout: IllegalStateException

2002-11-12 Thread Kenny Chow
Thanks for reply. In tomcat 4.1.12, however, it gets worse. Requesting http://localhost:8080/cocoon gives the following exception. I have been using a cvs 2.1-dev build of June 15; just wanna check out the new features, especially the portal framework, that may be added in latest cvs.

RE: XMLForm and dates

2002-11-12 Thread Sylvain.Thevoz
I'm using MS SQL Server 2000. It means that you don't insert the date with the form but your database insert it automatically!? Sylvain -Message d'origine- De: Antonio Gallardo Rivera [mailto:agallardo;agsoftware.dnsalias.com] Date: mardi, 12. novembre 2002 15:14 À: [EMAIL PROTECTED]

sending an xml document with POST

2002-11-12 Thread Barbara Post
Hi, Is there a way to get an XML document from somewhere (xml stream in a normal pipeline) and POST it through an html form ? Or another way ? My issue is POSTing something to an XML database (Tamino) with the value of _process request parameter being the document's content. I tried to use

Re: Installing: javax.servlet.ServletException: Servlet.init()

2002-11-12 Thread Geoff Howard
Check that the user tomcat _is running as_ has write permission to webapps and tomcat/work - but I don't know who serviceconf makes as the user. If it's not the same user that you're logged in as, the chmod you did didn't help even besides the work dir. Also, it doesn't look like you did

RE: enctype=multipart/form-data problem

2002-11-12 Thread Geoff Howard
It is already fixed in 2.0.3, the release version: private Hashtable readHeaders(TokenStream in) throws IOException { Hashtable headers = new Hashtable(); String hdrline = readln(in); while (!.equals(hdrline)) { StringTokenizer tokenizer = new

Re: XMLForm and dates

2002-11-12 Thread Antonio Gallardo Rivera
El Martes, 12 de Noviembre de 2002 08:43, [EMAIL PROTECTED] escribió: I'm using MS SQL Server 2000. It means that you don't insert the date with the form but your database insert it automatically!? Yes. I mean create a default value for this. Then in the insert I omit to send a value for

Re: cinclude and sitemap parameters

2002-11-12 Thread Jakob Praher
yeah the question is what is then more efficient: the map:aggregate mechanics or a compiled xsp page I am only wondering since Ovidiu, on his weblog, states that map:aggregate is harmful. given that you can do dyamic includes with map:aggregate it is the question what is more performant... --

RE: xsp-session : Bug with Cocoon? or Bug with programmer?

2002-11-12 Thread Geoff Howard
What version of cocoon are you using? Geoff --- Tom Place [EMAIL PROTECTED] wrote: After searching the created Java file (apologies for my earlier mistake), the request helper is the only place it could be trying to set the variable. For example the following XSP (entire file) :

null pointer exception in servlet

2002-11-12 Thread Jenny Brown
I'm having trouble with a recently set up cocoon instance, processing an example xml and xslt file. This seems to be happening inside Cocoon, so I am not sure how to fix it. org.apache.cocoon.ProcessingException: Exception during processing of

Re: Separation of concerns?

2002-11-12 Thread Andy Lewis
I have found it a great advantage to have someone who is a developer, not a designer, work with the designer to create the XSLT to produce a particular design. Most designers struggle with dynamic components and web-related efficiency concerns. The developer and designer working together

Re: Installing: javax.servlet.ServletException: Servlet.init()

2002-11-12 Thread Charles Brewster
Murray Cumming wrote: On Tue, 2002-11-12 at 05:17, Geoff Howard wrote: Yes, that was the specific error that people were getting when the older jars distributed with the jdk were not properly overridden. http://marc.theaimsgroup.com/?l=xml-cocoon-devm=103692889710176w=2

Re: [ PHPGenerator ] Inital draft of PHPGenerator docs on Wiki

2002-11-12 Thread Jose Borges Ferreira
Hi there ! I made all the steps you sugest on your page and i got the following error : HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception javax.servlet.ServletException: bailout

Re: Using Cocoon from the command

2002-11-12 Thread Alessio Sangalli
Darren Petrie wrote: unfortunately, I've talked too early. Althought an invocation with a simple --help parameter works, when I try it with all the arguments: $ java org.apache.cocoon.Main -c ~/java/jakarta-tomcat-4.1.12-LE-jdk14/webapps -d ~/lirc/cocoon/ -w /tmp/ -l ~/lirc/cocoon-log.txt

Re: [ PHPGenerator ] Inital draft of PHPGenerator docs on Wiki

2002-11-12 Thread Tony Collen
On 12 Nov 2002, Jose Borges Ferreira wrote: Hi there ! I made all the steps you sugest on your page and i got the following error : HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request.

Re: null pointer exception in servlet

2002-11-12 Thread Charles Brewster
Jenny Brown wrote: I'm having trouble with a recently set up cocoon instance, processing an example xml and xslt file. This seems to be happening inside Cocoon, so I am not sure how to fix it. org.apache.cocoon.ProcessingException: Exception during processing of

XSP from EJB?

2002-11-12 Thread EKasunic
Hello. I am new to Cocoon and XSP and was wondering if it is possible to use the XSP's on their own outside of the pipeline framework. More specifically would I be able to use a ServerPagesGenerator to process a XSP using ESQL to get an XML document from within a session bean? Currently we are

RE: Separation of concerns?

2002-11-12 Thread Lenz, Evan
I've taken this approach in the past. I've found that it involves heavy (or at least essential) use of the document() function. This approach has been documented in a couple articles on XML.com. http://www.xml.com/pub/a/2000/07/26/xslt/xsltstyle.html

Re: null pointer exception in servlet

2002-11-12 Thread Jenny Brown
On Tue, 12 Nov 2002, Charles Brewster wrote: Jenny Brown wrote: I'm having trouble with a recently set up cocoon instance, processing an example xml and xslt file. This seems to be happening inside Cocoon, so I am not sure how to fix it. Jenny I downloaded your two files simple.xsl to my

Re: null pointer exception in servlet

2002-11-12 Thread Charles Brewster
Jenny Brown wrote: On Tue, 12 Nov 2002, Charles Brewster wrote: I was pretty sure the XML was fine since it came from example code, but that doesn't help me much in solving my actual problem. I'm looking for why Cocoon is throwing a null pointer exception, as in, what do I even try to debug or

Re: null pointer exception in servlet

2002-11-12 Thread Jenny Brown
On Tue, 12 Nov 2002, Charles Brewster wrote: A trivial point, not to be insulting, :-) but did you install the vm14 download version of cocoon built for 1.4.0 Good question. I downloaded Cocoon-2.0.3 as a source tar/gzip. I then built it using the most recent version of ant. It built

Re: link rel=

2002-11-12 Thread Joerg Heinicke
Hello Alessio, Alessio Sangalli wrote: Joerg Heinicke wrote: Exactly the way I would do it. But beware: XSLTs are chached with their parameters. So it's interesting to know, how many pages you have or how big the XSLTs are. $ ls *.xml | wc -l 12 (to be honest two xml pages are only

Re: null pointer exception in servlet

2002-11-12 Thread Joerg Heinicke
Jenny Brown wrote: Good question. I downloaded Cocoon-2.0.3 as a source tar/gzip. I then built it using the most recent version of ant. It built successfully and told me during build that it was built for 1.4 and wouldn't work with other versions. So... Hopefully that answers your question,

RE: xsp-session : Bug with Cocoon? or Bug with programmer?

2002-11-12 Thread Tom Place
Thanks for everyone's help with this. I was using cocoon 2.03 and when I downloaded a new copy, this bug seemed to disappear. Thanks anyway! Tom -Original Message- From: Geoff Howard [mailto:cocoongeoff;yahoo.com] Sent: 12 November 2002 15:46 To: [EMAIL PROTECTED] Subject: RE:

Re: null pointer exception in servlet

2002-11-12 Thread Jenny Brown
I had indeed missed that step. I've done it now, but don't seem to be having any better results... same error. I'm not sure how to test that the /jre/lib/ changes actually took effect though. I did restart tomcat just in case. Here's the error I'm still getting: DEBUG 10371 [jendvsl ] ():

cocoon crashing

2002-11-12 Thread ilfrin
Hi , an hour ago I updated the sources from the cvs and now I run a build: build.bat -Dinclude.webapp.libs=yes -Dinclude.scratchpad.libs=yes webapp and after placing the war in the webapps dir and restarting Tomcat i get the following error while loading cocoon start page

sunShine resource via cinclude or aggregate

2002-11-12 Thread Steven Cummings
Hello all, I'm trying to build up a web-application interface by separating the header and sidebar (menu of options) into different pipelines. Those two pipelines are built from resources and transformed with sunShine (session) and look like this: !-- Site construction resources: --

Re: link rel=

2002-11-12 Thread Alessio Sangalli
Joerg Heinicke wrote: that's ok ;-) It was more a general statement than a need for the numbers. :) ok I wanted to be precise! Maybe it's an alternative to aggregate the XML source with the navigation XML. I don't understand this, could you explain? example of sitemap

Re: link rel=

2002-11-12 Thread Joerg Heinicke
I use Mozilla 1.2b. When I quote xml code it doesn't appear. Is this a know bug? Hmm, what exactly do you mean? You request an XML page, but you don't see anything? Mozilla has no built-in stylesheet by default like IE. But you can see the source of the document (Ctrl + u). Joerg

Cocoon and Cold Fusion

2002-11-12 Thread Chris Perrin
Is there a good way to integrate Cocoon and Cold Fusion or should I run Cocoon and its own and just have links from my Cold Fusion page to my XSLT pages? __ Christopher A Perrin, Chief Architect Office: 913-599-1600x231 / Fax: 913-599-2084 PS

Re: null pointer exception in servlet

2002-11-12 Thread Bobby Mitchell
Jenny Brown wrote: I had indeed missed that step. I've done it now, but don't seem to be having any better results... same error. I'm not sure how to test that the /jre/lib/ changes actually took effect though. I did restart tomcat just in case. snip Also, make sure to delete the contents

Tables in PDF

2002-11-12 Thread Carlos Marcelo Santos
Hi: Can somebody send me an example XLS-FO file (formating objects) that generate tables in .pdf file? Or a XSL-FO tutorial applied, with good examples... Thanks in advance. Carlos Marcelo Santos. [EMAIL PROTECTED] www.3pilares.com Buenos Aires. Argentina.

Re: Tables in PDF

2002-11-12 Thread Antonio Gallardo R.
Check this: http://www.xml.com/pub/a/2001/01/17/xsl-fo/index.html http://www.dpawson.co.uk/xsl/sect3/index.html http://www.ibiblio.org/xml/books/bible2/chapters/ch18.html It helps me to resolve my problems. :-D Antonio Gallardo Carlos Marcelo Santos dijo: Hi: Can somebody send me an

need example of modular db select at work

2002-11-12 Thread pwcml
Is there anyone that can provide a working example of the modular db select. An addtional bonus would be to see how to get at the values output from the action in the sitemap. Thanks, Phil - Please check that your question

need example of accessing request attributes in the sitemap

2002-11-12 Thread pwcml
Can anyone provide a working sample of accessing any request attributes in the sitemap? Thanks, Phil - Please check that your question has not already been answered in the FAQ before posting.

Re: XMLForm and dates

2002-11-12 Thread Ivelin Ivanov
Try the following: Use a Date property with its own getter and setter for the database access. Implement an extra property named dateString. Then write the getter of the property to convert the Date object into String when invoked. Also write a setter to convert a string to a date. The Java

Re: need example of modular db select at work

2002-11-12 Thread Antonio Gallardo R.
Check the examples of mod-db in your Cocoon installation. Antonio Gallardo Is there anyone that can provide a working example of the modular db select. An addtional bonus would be to see how to get at the values output from the action in the sitemap. Thanks, Phil

Re: need example of modular db select at work

2002-11-12 Thread Phil Craven
Right, those are great, but i need an example of the select at work and can't seem to find one. On Tuesday 12 November 2002 09:21 pm, Antonio Gallardo R. wrote: Check the examples of mod-db in your Cocoon installation. Antonio Gallardo Is there anyone that can provide a working example of

Re: Cocoon Portal - User Roles

2002-11-12 Thread Richard Reyes
Hi Matthew, If I understand it right, I have to change thesunrise-newrole.xml into something that the sql transformer would understand and remove the cinclude and writesource transformer on the pipeline? In this case... Whats the advantage of using transformer than an action? In the end