Re: Post automatically

2004-08-19 Thread Derek Hohls
This is a non-sequitur: "In handle_page.xsp i will read the parameters and pass it to another url" XSP is a generator at the start of a pipeline - it handles parameters coming in; it does not generate URIs. My example shows that, if you have a http://xxx?x=3&y=4 call you can handle it in a pipe

Re: how to get nodevalue in javascript

2004-08-19 Thread magic
Sorry, I miss "getFirstChild()". When I wrote "var a1 = document.getFirstChild().getChildNodes().item(1).getFirstChild().getNodeValu e();", it works. - Original Message - From: "magic" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, August 20, 2004 2:15 PM Subject: how to get nod

Re: xml frm XSP

2004-08-19 Thread Derek Hohls
Smith Unless you can make this question more specific, the general answer is "the same way any other XML is generated" or, to put in another way, the XML for a form can be generated from a pipeline which can be as flexible as you like. With XSP as the starting generator, you could have various

Re: xml frm XSP

2004-08-19 Thread Antonio Gallardo
Adriano Smith dijo: > How can dynamic xml forms be generated using xsp? You can use a xsp pipeline as the input of another pipeline where you build the form. Best Regards, Antonio Gallardo - To unsubscribe, e-mail: [EMAIL PROT

how to get nodevalue in javascript

2004-08-19 Thread magic
hi, everyone When I wrote "var a1 = document.getFirstChild().getChildNodes().item(1).getNodeValue();", a1 = null. How can I get nodevalue in javascript? Someone help me? Thanks! function obm1(form) { var documentURI = cocoon.parameters["documentURI"]; var document = loadDocumen

Re: Samples Calendar Broken in Cocoon Dist?

2004-08-19 Thread Derek Hohls
Mine works (English locale on Windows XP) - I assume this Cocoon 2.1.5 >>> [EMAIL PROTECTED] 2004/08/20 03:31:31 AM >>> Checking the calendar in http://localhost:8080/cocoon/samples/cal Show a broken calendar, with JULY (instead of August) and the days all messed starting with july 31. Could i

xml frm XSP

2004-08-19 Thread Adriano Smith
How can dynamic xml forms be generated using xsp?

RE: Portal Actions

2004-08-19 Thread Carsten Ziegeler
> From: JACOB, ERIC [mailto:[EMAIL PROTECTED] > > Hi, > > In the portal sitemap, I found these actions: > >src="org.apache.cocoon.portal.acting.LoginAction"/> >src="org.apache.cocoon.portal.acting.LogoutAction"/> >src="org.apache.cocoon.portal.acting.ObjectModelAction"/

Re: Post automatically

2004-08-19 Thread Adriano Smith
In handle_page.xsp i will read the parameters and pass it to another url.How can this be specified in handle_pag.xsp ie redirecting to another url, which will have a pipeline match pattern (containing my_next_page.xsp as generator). Also why have you given transform as page2html.xsl? Can it be som

Installation xindice and cocoon 2.1.4

2004-08-19 Thread Andres Taborda
Hello list, Some user can help me with steps for the integration of xindice and cocoon 2.1.4 Thanks very much. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Samples Calendar Broken in Cocoon Dist?

2004-08-19 Thread Ernesto Echeverría
Checking the calendar in http://localhost:8080/cocoon/samples/cal Show a broken calendar, with JULY (instead of August) and the days all messed starting with july 31. Could it be a problem of locales (I'm working a spanish version of Windows XP) or is it a general problems for other users as wel

RE: [cocoon] SQLTransformer and stored procedures

2004-08-19 Thread Ernesto Echeverría
YES. It's all explained in: http://cocoon.apache.org/2.1/userdocs/transformers/sql-transformer.html José Ernesto Echeverría -Original Message- From: Stephan Coboos [mailto:[EMAIL PROTECTED] Sent: Jueves, 19 de Agosto de 2004 12:00 p.m. To: [EMAIL PROTECTED] Subject: [cocoon] SQLT

Re: cocoon lib searchpath

2004-08-19 Thread Scott Yeadon
Matthias, You could try editting cocoon's web.xml file (in cocoon_dir/WEB-INF) and adding the jars to the "extra-classpath" init-param. This didn't work for me but you could give it a go. Not sure if there's another way, I lost patience and ended up using Cocoon's lib directory (your [1]) Scott

Re[2]: Handle Non-HTML Files

2004-08-19 Thread g[R]eK
<. Hi Kirk! .> Thursday, August 19, 2004, 4:39:31 PM, you wrote: KS> To clarify, I am refering to serving files that have KS> been uploaded. I am not trying to generate these KS> documents. KS> --- Kirk Storer <[EMAIL PROTECTED]> wrote: >> I was wondering if there was an easy way to handle >> n

dynamcically altering a global variable

2004-08-19 Thread Paul Joseph
Hi, I am wondering how best to do this in Cocoon: When a user logs in, the user has to check if they are the first person to login for the day and if so, do some tasks. To do this, I though of setting a global variable say FIRST_LOGIN=true at midnight every night - using the Quartz scheduler.

cocoon lib searchpath

2004-08-19 Thread Matthias Pekny
I want to put some application specific jar files in the application's WEB-INF/lib directory. So I've created the following structure: cocoon_dir/WEB_INF/lib [1] /myapplication/WEB-INF/lib [2] [1] this is cocoon's default lib dir [2] this is where my jar are when using the default buil

AW: SQLTransformer and stored procedures

2004-08-19 Thread Stephan Coboos
I'm sorry I mean prepared statements. Is it possible to use it within a SQL sheet of the SQLTransformer? Thank you. Regards Stephan > -Ursprüngliche Nachricht- > Von: Stephan Coboos [mailto:[EMAIL PROTECTED] > Gesendet: Donnerstag, 19. August 2004 20:00 > An: [EMAIL PROTECTED] > Betref

SQLTransformer and stored procedures

2004-08-19 Thread Stephan Coboos
Hello, is it possible to use stored procedures within a SQL sheet of the SQLTransformer? Thank you. Regards Stephan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

How do I prevent elements being re-ordered when calling Form.save()

2004-08-19 Thread will . durrant
I'm binding a schema validated xml document to a cocoon form and then re-saving and sending it back to the database. However, at some point the xml elements are being re-ordered in alphabetical order which causes the schema validation to fail. I'm assuming that this alphabetical re-ordering occurs

Portal Actions

2004-08-19 Thread JACOB, ERIC
Hi, In the portal sitemap, I found these actions: The portal-login, portal-logout and portal-save-profile actions are quite obvious, but what they others two actually do and how to use them? Are there more actions available (adding a column, a tab and a user f

Re: CForms: Bind Onload upload widget???

2004-08-19 Thread oceatoon
Thanks Bruno Indeed , the multiPart type isn't the same , This doesn't work. well as anybody else would do in this case , I changed the idea :) Anyhow thanks for he help T. Bruno Dumon wrote: > On Thu, 2004-08-19 at 11:54, oceatoon wrote: >> Hello >> >> I am trying to declare a Java Pacakge i

Re: Handle Non-HTML Files

2004-08-19 Thread Kirk Storer
To clarify, I am refering to serving files that have been uploaded. I am not trying to generate these documents. --- Kirk Storer <[EMAIL PROTECTED]> wrote: > I was wondering if there was an easy way to handle > non-html files. I have a few entries in my sitemap > such as this. > > >

Handle Non-HTML Files

2004-08-19 Thread Kirk Storer
I was wondering if there was an easy way to handle non-html files. I have a few entries in my sitemap such as this. However, trying to guess all the different files types people will use ahead of time is nearly impossible (.doc .xsl .mov .mpg .whoknowswhatelse) Is there an easy

Re: Post automatically

2004-08-19 Thread Derek Hohls
Smith In Cocoon, its the role of the pipeline to handle requests... Assuming I type http://xxx?x=3&y=4 into my browser, or that this URI results from another form somewhere in the system, why not just have a pipeline match for this: true (Obvi

Re: Difference between Actions

2004-08-19 Thread Sebastian Gnoyke
Very big thanks :) On Thu, 19 Aug 2004 15:44:29 +0200, Carsten Ziegeler <[EMAIL PROTECTED]> wrote: The portal-logout logs the user out of the portal which means all information in the session about the portal are removed. But not the session itself. The auth-logout action logs the user out of the

Re: how to use roles in web application

2004-08-19 Thread Paul Joseph
Thank you Ralph, this is most helpful. -Paul --- Ralph Goers <[EMAIL PROTECTED]> wrote: > Not that I'm aware of. I can tell you that it isn't > very hard to write > your own. We have our own authentication framework > that returns the user's > permissions after being authenticated. I then wr

RE: CachingURICoplet versus URICoplet and Refresh

2004-08-19 Thread Carsten Ziegeler
> > Question1: > I'd like to know if there is another way to refresh > CachingURICoplet than setting bookmarks or cl:link evrywhere, > or even invalidate the cache. Maybe for that purpose i should > use URICoplets ? > You can invalidate the cache "manually" from within flow or any component us

RE: Difference between Actions

2004-08-19 Thread Carsten Ziegeler
The portal-logout logs the user out of the portal which means all information in the session about the portal are removed. But not the session itself. The auth-logout action logs the user out of the authentication handler and eventually terminates the session. This is a result of the different fr

Post automatically

2004-08-19 Thread Adriano Smith
I retrieve 2 parameters from a url using xsp request. is there any way to post these 2 parameters to the next url automatically without having a submit button ? ie the url http://xxx?x=3&y=4 should automatically direct to a page where the values of x and y will be posted.

Difference between Actions

2004-08-19 Thread Sebastian Gnoyke
Hi to all, i have a question about the cocoon portal and the actions, which are used. There are 2 actions: auth-logout and portal-logout. Can anyone tell me, whats the difference between the actions? Thanks :) Seb -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ --

Re: how to use roles in web application

2004-08-19 Thread Ralph Goers
Not that I'm aware of. I can tell you that it isn't very hard to write your own. We have our own authentication framework that returns the user's permissions after being authenticated. I then wrote a selector that checks the permission specified in the sitemap against the map containing all t

Re: newby Q: how to aggregate source in resource

2004-08-19 Thread [EMAIL PROTECTED]
qMax wrote: [...] Oh! Thanks! This solution has slept from my view. But actually included content is not ready-to-use HTML, but is XML to integrate into final HTML via XSLT. In particular - block "meta" has additional xml-info about current site node ("page"), and is dependant on current request UR

Fw: Configuration problem 2.1.5.1 - Element.getLocalName() - NoSuchMethod Error

2004-08-19 Thread Laurent Rorive \(EDPNET\)
  - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, August 19, 2004 1:55 PM Subject: Fw: Configuration problem 2.1.5.1 - Element.getLocalName() - NoSuchMethod Error - Forwarded by Laurent Rorive/MARINEPOWER on 19/08/2004 13:50 -

Re: CForms: Bind Onload upload widget???

2004-08-19 Thread Bruno Dumon
On Thu, 2004-08-19 at 11:54, oceatoon wrote: > Hello > > I am trying to declare a Java Pacakge in the binding javascript/onload tag > but I can't seem to get this to work??? > is it possible to import Java Packages like in flow in the binding > javascript / onload tag ? > > > > var path

UTF-8 encoding and VelocityGenerator

2004-08-19 Thread Björn Voigt
Hello cocooners, I use the velocity-generator to load an utf-8 encoded XML-File and fill in a UTF-8 encoded sitemap-parameter. OK the is parameter filled in correctly but the file seems to be decoded in ISO-8859. Is it possible or how is it possible to configure the generator to decode the sour

Re: how to use roles in web application

2004-08-19 Thread Paul Joseph
Thank you Ralph. I also found from a web search the following thread that was quite helpful. http://archives.real-time.com/pipermail/cocoon-users/2004-January/044588.html Also, at the bottom of this thread Stefan writes: >For that I wrote a transformer. My pages contain >statements of the form

Re[2]: newby Q: how to aggregate source in resource

2004-08-19 Thread qMax
Thursday, August 19, 2004, 4:11:31 PM, [EMAIL PROTECTED] wrote: Vr> qMax wrote: >> [...] >> More general: >> I need main page template (currently i use XSLT) which uses (and slightly >> transforms) >> original HTML content and content from some other sources (currently i >> use map:aggregate as i

Creating matches in lenya pipeline

2004-08-19 Thread Pratik
I managed to solve the template problem. I have created multiple templates deriving from a single base template. Now my problem is using different templates based on different urls. I am defining my pipelines in publication- sitemap giving match as **/RFI*.* as given below. By this I want all doc

Re: CForms: Bind Onload upload widget???

2004-08-19 Thread oceatoon
Hello I am trying to declare a Java Pacakge in the binding javascript/onload tag but I can't seem to get this to work???  is it possible to import Java Packages like in flow in the binding javascript / onload tag ?  var path = jxpathContext.getValue("@path");  var uploadFile = new java.io.

Re[2]: authentication-manager and application load

2004-08-19 Thread szefu18
Hello Jan, Thursday, August 19, 2004, 8:43:21 AM, you wrote: JH> JH> JH> JH> JH> JH> JH> JH> value="AuthenticationHandler"/> JH> JH>

Re[2]: authentication-manager and application load

2004-08-19 Thread g[R]eK
<. Hi Jan! .> Thursday, August 19, 2004, 8:43:21 AM, you wrote: JH> I've just tried a little test (I never worked with applications in JH> authentication before) JH> This does work fine: JH> Inside the protected area I used an xsp to quickly get the session content: JH> String test = path="/

Re: newby Q: how to aggregate source in resource

2004-08-19 Thread [EMAIL PROTECTED]
qMax wrote: [...] More general: I need main page template (currently i use XSLT) which uses (and slightly transforms) original HTML content and content from some other sources (currently i use map:aggregate as input to this XSLT) and should produce final HTML with menu and all that stuff. What abou

Re: Request decoding problem

2004-08-19 Thread Antonio Gallardo
Jyri P dijo: > Hi, > We are having trouble with request parameters that have special characters > (scandinavian letters) not decoding correctly. These parameters are passed > from a form in the request to be displayed on another form, but they are > not decoded properly from the uri (for example th

RE: Request decoding problem

2004-08-19 Thread robby . pelssers
I too had some problem with encoding formparameters i used the java.net.URLEncoder public String getRequestElementEncodedValue() throws Exception { return this.field.hasValue() ? "&" + this.parametername + "=" + URLEncoder.encode(this.fie

Using the Command Line Interface

2004-08-19 Thread floris . tjoen
Hi,With the CLI(Cocoon-2.1.5) I want to generate a xml-file with a xsp , connecting a postgres database.when I start up cocoon as a servlet and enter in my browser http://127.0.0.1:/testcli/client-list.xml , the correct file is shown.But when using the CLI it doesn't work :First I composed my c

Request decoding problem

2004-08-19 Thread Jyri P
Hi, We are having trouble with request parameters that have special characters (scandinavian letters) not decoding correctly. These parameters are passed from a form in the request to be displayed on another form, but they are not decoded properly from the uri (for example the letter ä becomes Ã

RE: loops in XSP

2004-08-19 Thread robby . pelssers
Well, you maybe right... Sometimes i get confused of when i should use the xsp:content tag... I think only when you want to write a tag with a xsp:expr in between, is that right? -Original Message- From: Perez Carmona, David [mailto:[EMAIL PROTECTED] Sent: 19 August, 2004 10:07 To: [EMA

RE: loops in XSP

2004-08-19 Thread Perez Carmona, David
Robby, I would change this for (int teller = 1; teller <= numberoflinestotal; teller++) { } to this: for (int teller = 1; teller <= numberoflinestotal; teller++) {

RE: Memory leaks in Cocoon?

2004-08-19 Thread Perez Carmona, David
Hi, Finally here is my conclusions about memory usage with an 46Mb XML input file, depending on how I do the transform: Xalan interpreted: 130 Mb Xalan compiled (XSLTC): 90 Mb with the same stylesheet Custom one pass SAX transformer: 4 Mb !! So XSLTC does a better job in memory usage than

CachingURICoplet versus URICoplet and Refresh

2004-08-19 Thread Philippe Guillard
Hi, Question1: I'd like to know if there is another way to refresh CachingURICoplet than setting bookmarks or cl:link evrywhere, or even invalidate the cache. Maybe for that purpose i should use URICoplets ? Question2: Until now i adopted this rule : if i need CForms + Flow (continuation) or inte

Re[2]: Authentication - passing user info to non-protected match?

2004-08-19 Thread qMax
Thursday, July 15, 2004, 10:24:22 PM, [EMAIL PROTECTED] wrote: OB> The user informations are given by the "auth-protect" action. OB> So you can't access these infos the same way without using the action. OB> A workaround is to store these infos in session with the OB> SessionPropagatorAction, jus

RE: submit from xsp

2004-08-19 Thread Derek Hohls
No, you will need to post the values as usual from a normal HTML form; the transform should take care of this part. >>> [EMAIL PROTECTED] 2004/08/19 06:21:48 AM >>> Is it possible to submit using pseudo html?? i want to post the values and then do the transform as usual. Quoting [EMAIL PROTECTED

Really urgent - Configuration problem 2.1.5.1 - Element.getLocalName() - NoSuchMethod Error

2004-08-19 Thread laurent_rorive
- Forwarded by Laurent Rorive/MARINEPOWER on 19/08/2004 09:16 - [EMAIL PROTECTED] 13/08/2004 18:40 Please respond to users                 To:        [EMAIL PROTECTED]         cc:                 Subject:        Configuration problem 2.1.5.1 - Element.getLocalName() - NoSuchMethod Err