RE: Cocoon2 Cookie Recipe?

2001-12-07 Thread Chris Newland
Hi Liam, Yes you can write an action to set a cookie and have the sitemap determine when to call the action. I use an action that sets a cookie according to request parameters. This code should do the trick, just fill in the blanks: --- import ja

RE: File mode cause of "sitemap not available" problems?

2002-02-04 Thread Chris Newland
Hi Peter, Are you using any of the Cocoon 2 functionality that requires an X server (SVG for example)? If not then you can run Cocoon 2 without any X server running (although you will need to comment out the SVG serializer from the sitemap so that it does not get loaded). If you do need an X ser

RE: What is happening to {1} in this case?

2002-02-25 Thread Chris Newland
Hi Raul, When you use wildcard parameters with actions, the parameters are treated like they are on a stack so that for each action you execute, your original parameters are pushed down the stack. You must then specify which level of the stack you want to retrieve the parameters from. Your param

RE: SVG Transparency

2002-03-18 Thread Chris Newland
http://www.w3.org/TR/SVG/masking.html HTH, Chris > -Original Message- > From: Michael Zehrer [mailto:[EMAIL PROTECTED]] > Sent: 18 March 2002 15:24 > To: Cocoon-Users (E-Mail) > Subject: SVG Transparency > > > Hi list, > > maybe a little offtopic, but how can I have svg images with t

RE: Src vs bin download

2002-03-27 Thread Chris Newland
Hi Peter, As far as I know, the .tar.gz and the .zip files have exactly the same content. I always choose the .tar.gz and Cocoon works fine in Linux and Windows. The reason why the .tar.gz is smaller is that the files are tarred together first to create one large file which is then gzipped. In t

RE: Update on my problem

2002-03-28 Thread Chris Newland
the driver > name. i don't > know if this means it failed or it loaded ok. is there any way to > tell if it > is loaded ok? and if it is loaded ok does the pool know to use that driver > by default? > > thanks for your help. > > Jeremy > > - Original

RE: Update on my problem

2002-03-28 Thread Chris Newland
> > > > > > > > > > > > > > For some reason when using the pool it will throw that exception, but if i > just instantiate a con

RE: multiple submit button on a form

2002-04-03 Thread Chris Newland
Hi Raul, The HTML input type submit supports the "name" attribute so you can just name your buttons differently: The button that was pressed will have the button text as its value so you can test in this way. variable "one" will have value "option1" if it was pressed variable "two" will have

OT: ESQL, MySQL, and the GPL

2001-08-14 Thread Chris Newland
this configuration listed: Cocoon2b2 (distribution) working on Tomcat 4.0-b6 (distribution) on SuSE 7.2 with Sun JDK 1.3.1-b24 (using -classic workaround for the VM seg fault bug) -- Chris Newland Software Research Engineer Emorphia Ltd Registered in England. 4133002 Mill House, Station Approach, Harlow

RE: Cocoon2: ant problem

2001-08-14 Thread Chris Newland
Hi, I had this problem too running the build script from the Cocoon2.0b2 distribution on SuSE 7.2, Sun JDK1.3.1 A solution that works for me is to edit the /bin/ant script and resave it and then it works fine. #! /bin/sh echo in ant script <--- Line that I added if [ -f "$H

Possible to assign SQL query result to XSP variable?

2001-08-20 Thread Chris Newland
Hi All, I'm trying to test for the presence of a key in an SQL table by performing an SQL query and having the result (or null) set in an XSP variable: checking for username = username String got_uname = "dummy"; my_jdbc select id from end

RE: Possible to assign SQL query result to XSP variable?

2001-08-20 Thread Chris Newland
gt; > got_uname = ; > > > > ... > > Max > > > -Ursprngliche Nachricht- > > Von: Chris Newland [mailto:[EMAIL PROTECTED]] > > Gesendet: Montag, 20. August 2001 13:21 > > An: Co

C2: Create session conditionally in XSP page?

2001-08-21 Thread Chris Newland
a way to create the session programatically (I can't see it in the logicsheet but maybe using raw Java) ? Thanks for your help, Best Regards, Chris -- Chris Newland Software Research Engineer Emorphia Ltd Registered in England. 4133002 Mill House, Station Approach, Harlow Mill, Harlow,

C2: can't match images in sitemap

2001-08-22 Thread Chris Newland
ing wrong. Any help would be appreciated. Thanks, Chris -- Chris Newland Software Research Engineer Emorphia Ltd Registered in England. 4133002 Mill House, Station Approach, Harlow Mill, Harlow, Essex, CM20 2EL, UK Email: [EMAIL PROTECTED] Tel: +44 (0)1279 450100 Fax: +44 (0)1279 450102 Check

RE: can't match images in sitemap

2001-08-22 Thread Chris Newland
mage.jpg"> > After all, the URL of the page is > > /pages/my_page.html, > > right? > > Hope this helps. > > > - Original Message - > From: "Chris Newland" <[EMAIL PROTECTED]> > To: "Cocoon-Users" <[EMAIL PROTECTED]> > Sent

RE: can't match images in sitemap

2001-08-22 Thread Chris Newland
and > if u have match saying " > pattern="images/*.jpg"..obviously the requested uri > doesnt match with the specified pattern.. > > 7. This has nothing to do with abstraction between uri > and actual file..This has to do with the way url are > handled by brows

RE: Out of memory with JDK

2001-08-24 Thread Chris Newland
Hi Stephan, java -Xms128m -Xmx128m Would set the starting and maximum heap to 128MB. Just change the values to suit your machine. Which JVM version are you using? Some of the earlier VMs used a different switch. Best Regards, Chris > -Original Message- > From: Stephan Kassanke [mail

RE: Out of memory with JDK

2001-08-28 Thread Chris Newland
e > cocoon servlet? > > eg. java -Xms128m -Xmx128m > > > best regards, > Stephan > - Original Message - > From: "Chris Newland" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Friday, August 24, 2001 5:41 PM > Subject: RE: Out o

RE: DB-password clear text - what alternatives?

2001-08-29 Thread Chris Newland
Hi Derek, The cocoon.xconf file is the main cocoon 2 configuration file and it is located in the /webapp directory. I use connection pooling to access my database and I describe the connection in my cocoon.xconf file: jdbc:mysql://localhost:3306/my_database_name

RE: DB-password clear text - what alternatives?

2001-08-29 Thread Chris Newland
Hi Derek, I didn't get as far as ESQL when I used to use Cocoon 1 but I'm almost certain that it supports connection pooling. I think there is an option in cocoon.properties but I'd recommend you check the Cocoon 1 FAQ and the mailing list archive. Regards, Chris -Original Message- Fro

RE: Requesting multiple selection lists

2001-08-30 Thread Chris Newland
Hi Andrei, Its hard to diagnose the problem without an example from your code :) This works for me by selecting the values from 1 column in the table and putting them into a combo box: ...

C2: ESQL how to encode NOW() function

2001-08-30 Thread Chris Newland
he insert statement works fine when I use the MySQL client. Any ideas? -- Chris Newland Software Research Engineer Emorphia Ltd Registered in England. 4133002 Mill House, Station Approach, Harlow Mill, Harlow, Essex, CM20 2EL, UK Email: [EMAIL PROTECTED] Tel: +44 (0)1279 450100 Fax: +44 (0)127

C2: Adding XML in String into document

2001-09-03 Thread Chris Newland
a really obvious one) Thanks, Chris -- Chris Newland Software Research Engineer Emorphia Ltd Registered in England. 4133002 Mill House, Station Approach, Harlow Mill, Harlow, Essex, CM20 2EL, UK Email: [EMAIL PROTECTED] Tel: +44 (0)1279 450100 Fax: +44 (0)1279 450102 Check out FI

C2: Action to modify request parameters

2001-09-04 Thread Chris Newland
param = (String)request.getParameter("my_param"); // process parameter here But there is no request.setParameter() to return the updated value to the request. Is this possible? (I hope so) Thanks, Chris -- Chris Newland Software Research Engineer Emorphia Ltd Registered in England. 413

RE: C2: Action to modify request parameters

2001-09-05 Thread Chris Newland
C2: Action to modify request parameters > > > I think not. But you can use sitemap params (that's the preferred way for > actions). And this works with the sitemap, other actions, xslt... > > -----Ursprngliche Nachricht- > Von: Chris Newland [mailto:[EMAIL PROTECTED]] >

RE: C2: Action to modify request parameters

2001-09-05 Thread Chris Newland
; > > No. There are two maps. > > -Ursprngliche Nachricht- > Von: Chris Newland [mailto:[EMAIL PROTECTED]] > Gesendet: Mittwoch, 5. September 2001 11:14 > An: [EMAIL PROTECTED] > Betreff: RE: C2: Action to modify request parameters > > > Does this mean th

RE: C2: Action to modify request parameters

2001-09-05 Thread Chris Newland
IL PROTECTED] > Subject: Re: C2: Action to modify request parameters > > > Why you don't want to use request attributes? They are the right place of > holding this kind of information and passing between different processing > layers: actions, pages, etc. > > > -

RE: DatabaseXActions

2001-09-05 Thread Chris Newland
Hi Andrew, I'm currently modifying the DatabaseAction actions to allow request parameters to be overriden with request attributes. This will allow me to pass my form data through another action which manipulates the values and sets them in request attributes before the DatabaseAddAction adds the

RE: xmlns:util

2001-09-06 Thread Chris Newland
Hi All, The util logicsheet still doesn't work in Cocoon2b2 (from CVS). Is this still a valid way to insert a String containing XML into the document as SAX events? i.e. should I try and fix it or is there a better way to do this? (I'm using namespace xmlns:util="http://apache.org/xsp/util/2.0";

RE: DatabaseXActions

2001-09-06 Thread Chris Newland
validation descriptor for the > Nullable and Default validations? This is, what it has been created for, > or not? > > Regards, Mario > > > Chris Newland wrote: > > >Hi Mario, > > > >I can't see how this conflicts. I would imagine that people >

RE: DatabaseXActions

2001-09-06 Thread Chris Newland
Hi Mario, I am using 3 nested actions in my sitemap: action1: form validation and substitution of default value for missing non-nullable parameters action2: request parameter manipulation (new values are saved into request attributes since there is no setParameter() method on the Request object

RE: Re[2]: DatabaseXActions

2001-09-06 Thread Chris Newland
diffs I can send you the patched classes. Regards, Chris > -Original Message- > From: Andrew Answer [mailto:[EMAIL PROTECTED]] > Sent: 06 September 2001 11:43 > To: Chris Newland > Subject: Re[2]: DatabaseXActions > > > Hello Chris, > > if you can send me your sour

RE: DatabaseXActions

2001-09-06 Thread Chris Newland
Hi Mario, I can't see how this conflicts. I would imagine that people would be using different descriptor files for form validation and database manipulation wouldn't they? A form validation descriptor is about parameter constraint validation, the database action descriptor is about manipulating

Re: Uploads

2001-09-11 Thread Chris Newland
Hi Mohit, Look in WEB-INF/web.xml: upload-directory upload_location_relative_to_cocoon_webapp_dir Hope this helps, Regards, Chris On Tuesday 11 September 2001 09:48, you wrote: > How does one configure where exactly the uploaded files are stored? In the > xsp fi

programatically examine columns in a row

2001-09-17 Thread Chris Newland
Hi All, I'm looking for a generic way to examine the columns in a row retrieved using esql: int cols = ; String colname; for (int i = 0; i < cols; i++) {

Re: programatically examine columns in a row

2001-09-17 Thread Chris Newland
e > > Klaus > > > -Original Message- > > From: Chris Newland [mailto:[EMAIL PROTECTED]] > > Sent: Monday, September 17, 2001 8:43 PM > > To: [EMAIL PROTECTED] > > Subject: programatically examine columns in a row > > > > > > Hi All

Re: programatically examine columns in a row

2001-09-17 Thread Chris Newland
Hi Klaus Realised this is not sensible thing to do so I passed the whole result set to the stylesheet and used XSL to filter the output. Thanks for the suggestion, Chris On Monday 17 September 2001 19:06, Chris Newland wrote: > Hi Klaus, > > Sorry, I should have explained it bette

Re: redirect

2001-09-27 Thread Chris Newland
Hi Luda, You don't need to use redirects in Cocoon 2, you can do username and password authentication using actions. This way you don't even need to write esql tags yourself. The DatabaseAuthenticatorAction is the best one to use. Make sure it is mapped in your sitemap's section: