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
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
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
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
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
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
>
>
>
>
>
>
>
>
>
>
>
>
>
> For some reason when using the pool it will throw that exception, but if i
> just instantiate a con
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
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
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
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
gt;
> got_uname = ;
>
>
>
> ...
>
> Max
>
> > -Ursprngliche Nachricht-
> > Von: Chris Newland [mailto:[EMAIL PROTECTED]]
> > Gesendet: Montag, 20. August 2001 13:21
> > An: Co
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,
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
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
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
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
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
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
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
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:
...
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
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
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
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]]
>
;
>
> 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
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.
>
>
> -
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
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";
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
>
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
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
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
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
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++)
{
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
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
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:
38 matches
Mail list logo