[sitemap] Passing parameters to XML

2002-10-29 Thread Dave Biggar
In Cocoon-1.8.2, I can handle parameters to XML
as follows:

http://b.c/Q/zzz.xml?color=red

and I can recover the value of 'color' in zzz.xml with:

xsp:logic 
   String colorParameter = request.getParameter(color);
/xsp:logic

But I have tried to duplicate the above with numerous incantations 
of sitemap (under cocoon/mount/MyProject) with no luck.

How can I handle the above in Cocoon 2?

(Windows XP, Apache 2, Tomcat 4.1.12(JK2:ajp13), Cocoon-2.0.3)

Dave Biggar

-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




Re: [sitemap] Passing parameters to XML

2002-10-29 Thread Markdelanoy
I'm not sure why that's not working as I use that concept all the time.  I typically 
create actions that pull from the request object ,e.g. getParameter but action vs XSP 
shouldn't matter.

???

MD

-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




Re: [sitemap] Passing parameters to XML

2002-10-29 Thread Eric Everman
Dave-

I believe you are having the same problem I was having.  Ilya's reply to me 
fixed the problem:  Implicit variables are not created until the content 
tag is reached, thus logic prior to content that references them will fail.

I'm *very* new to Cocoon so I have no experience with past versions.  If 
this worked previously for you and now doesn't, this must be the result of 
a change in the way xsp pages are processed (isn't this breaking all kinds 
of code?!!!).  I was going to report this as a bug, however, someone with 
more history (like yourself) should make that call.

Is this what is causing your problem?

Eric Everman



At 10/29/2002, you wrote:
In Cocoon-1.8.2, I can handle parameters to XML
as follows:

http://b.c/Q/zzz.xml?color=red

and I can recover the value of 'color' in zzz.xml with:

xsp:logic
   String colorParameter = request.getParameter(color);
/xsp:logic

But I have tried to duplicate the above with numerous incantations
of sitemap (under cocoon/mount/MyProject) with no luck.

How can I handle the above in Cocoon 2?

(Windows XP, Apache 2, Tomcat 4.1.12(JK2:ajp13), Cocoon-2.0.3)

Dave Biggar

-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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



-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




Re: [sitemap] Passing parameters to XML

2002-10-29 Thread Dave Biggar
Thanks Eric but unfortunately my problem is not the same
as yours. I have always had a root element page.

Dave

- Original Message -
From: Eric Everman [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, October 29, 2002 11:13 AM
Subject: Re: [sitemap] Passing parameters to XML


 Dave-

 I believe you are having the same problem I was having.  Ilya's reply to
me
 fixed the problem:  Implicit variables are not created until the content
 tag is reached, thus logic prior to content that references them will
fail.

 I'm *very* new to Cocoon so I have no experience with past versions.  If
 this worked previously for you and now doesn't, this must be the result of
 a change in the way xsp pages are processed (isn't this breaking all kinds
 of code?!!!).  I was going to report this as a bug, however, someone with
 more history (like yourself) should make that call.

 Is this what is causing your problem?

 Eric Everman


-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




Re: [sitemap] Passing parameters to XML

2002-10-29 Thread Dave Biggar
As I understand it, and that's not great, runtime parameters may be
manipulated by either an Action or by XSP.

I realize that my knowledge of Actions is not enough to get
anything working -- and it's back to the manual for me. I
haven't found a single example so far.

But I am still curious as to how the sitemap would handle
logic in XSP. As I recall, there's something explicit for
POST but nothing explicit for GET and a query string. For
what I want, I am  doubtful that the power of Actions is
necessary and I certainly wouldn't want to write a servlet
if I can avoid it.  I just want to get a couple of parameters
and use 'esql:query' to retrieve data from my database.

Dave



- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; Dave Biggar
[EMAIL PROTECTED]
Sent: Tuesday, October 29, 2002 9:47 AM
Subject: Re: [sitemap] Passing parameters to XML


 I'm not sure why that's not working as I use that concept all the time.
 I typically create actions that pull from the request object ,
 e.g. getParameter but action vs XSP shouldn't matter.

 ???

 MD

 -
 Please check that your question  has not already been answered in the
 FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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