Re: Trouble with if
Group your data by date/, anything else won't work. http://www.jenitennison.com/xslt/grouping/muenchian.xml http://www.dpawson.co.uk/xsl/sect2/N4486.html Joerg Tim Bachta wrote: I am having trouble with an xsl:if condition. I am testing to see if the date value is the same as the previous date value. If it is I want to skip over the code otherwise I want it to execute the code, simple, here is my code: (the xsl:variable is declared under the stylesheet element as xsl:variable name=oldGroup/ Xml coming in is - XML and XSLT stripped ... and my output is showing up with each productivity-line showing. Thanks for the help Tim Bachta - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Trouble with if
If you just want to ignore the subsequent productivity-line records with the same date, i.e. you are only concerned about the first record for a given date, AND records with the same date are ordered, you could use something like: xsl:for-each select=productivity-line xsl:if test=position() = 1 or preceding-sibling::productivity-line[1]/date != date ... /xsl:if /xsl:for-each This is much lighter that grouping. -Erik Joerg Heinicke wrote: Group your data by date/, anything else won't work. http://www.jenitennison.com/xslt/grouping/muenchian.xml http://www.dpawson.co.uk/xsl/sect2/N4486.html Joerg Tim Bachta wrote: I am having trouble with an xsl:if condition. I am testing to see if the date value is the same as the previous date value. If it is I want to skip over the code otherwise I want it to execute the code, simple, here is my code: (the xsl:variable is declared under the stylesheet element as xsl:variable name=oldGroup/ Xml coming in is - XML and XSLT stripped ... and my output is showing up with each productivity-line showing. Thanks for the help Tim Bachta - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Trouble with if
Can you give me an example of what you are referring to? Tim Bachta -Original Message- From: Joerg Heinicke [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 01, 2003 2:12 PM To: [EMAIL PROTECTED] Subject: Re: Trouble with if Group your data by date/, anything else won't work. http://www.jenitennison.com/xslt/grouping/muenchian.xml http://www.dpawson.co.uk/xsl/sect2/N4486.html Joerg Tim Bachta wrote: I am having trouble with an xsl:if condition. I am testing to see if the date value is the same as the previous date value. If it is I want to skip over the code otherwise I want it to execute the code, simple, here is my code: (the xsl:variable is declared under the stylesheet element as xsl:variable name=oldGroup/ Xml coming in is - XML and XSLT stripped ... and my output is showing up with each productivity-line showing. Thanks for the help Tim Bachta - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: trouble using xsp input logicsheet in cocoon 2.0.4
On 09.Jan.2003 -- 10:02 AM, Timothy Larson wrote: Thanks Chris, I got it mostly working with your information. A couple of issues, though: The first issue is that while this works fine: input:get-attribute module=session-attr as=string name=attr1 default=(Does not exist)/ this: input:get-attribute-names module=session-attr as=string/ produces this for me: org.apache.cocoon.components.modules.input.IteratorHelper@b1406b Yes - this is not nice but I'm not sure what the best solution would be, eg. like a map { one two three } ? What do you think? and: input:get-attribute-names module=session-attr as=xml/ produces an error. Right. There has been a mixup in XSPModuleHelper. Please update. http://cvs.apache.org/viewcvs.cgi/xml-cocoon2/src/java/org/apache/cocoon/components/language/markup/xsp/?only_with_tag=cocoon_2_0_3_branch BTW there have been more fixes to 2.0.4 so I strongly suggest to get a complete version from CVS. Thanks for reporting! Chris. -- C h r i s t i a n H a u l [EMAIL PROTECTED] fingerprint: 99B0 1D9D 7919 644A 4837 7D73 FEF9 6856 335A 9E08 - 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: trouble using xsp input logicsheet in cocoon 2.0.4
Thanks, I found and solved the XSPModuleHelper mixup earlier today. I did not report it yet because I was fixing the the as=string issue. What is the as=string option used for any way? The only reason I looked at it was the broken as=xml option. If it has an actual use, that may help decide the output format. You mention: BTW there have been more fixes to 2.0.4 so I strongly suggest to get a complete version from CVS. I cannot use CVS because I have not found a way to get it through our firewall. If I am not alone with this problem, is there any chance that downloadable snapshots could made for the cocoon_2_0_3_branch like we already have for HEAD: http://cvs.apache.org/snapshots/xml-cocoon2/ Tim [EMAIL PROTECTED] 01/10/03 11:48AM On 09.Jan.2003 -- 10:02 AM, Timothy Larson wrote: Thanks Chris, I got it mostly working with your information. A couple of issues, though: The first issue is that while this works fine: input:get-attribute module=session-attr as=string name=attr1 default=(Does not exist)/ this: input:get-attribute-names module=session-attr as=string/ produces this for me: org.apache.cocoon.components.modules.input.IteratorHelper@b1406b Yes - this is not nice but I'm not sure what the best solution would be, eg. like a map { one two three } ? What do you think? and: input:get-attribute-names module=session-attr as=xml/ produces an error. Right. There has been a mixup in XSPModuleHelper. Please update. http://cvs.apache.org/viewcvs.cgi/xml-cocoon2/src/java/org/apache/cocoon/components/language/markup/xsp/?only_with_tag=cocoon_2_0_3_branch BTW there have been more fixes to 2.0.4 so I strongly suggest to get a complete version from CVS. Thanks for reporting! Chris. -- C h r i s t i a n H a u l [EMAIL PROTECTED] fingerprint: 99B0 1D9D 7919 644A 4837 7D73 FEF9 6856 335A 9E08 - 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: trouble using xsp input logicsheet in cocoon 2.0.4
On 08.Jan.2003 -- 04:19 PM, Timothy Larson wrote: When I try to use the XSP Input logicsheet in cocoon-2.0.4 I get this error: /org/apache/cocoon/components/language/markup/xsp/java/input.xsl; Line 199; Column 54; Could not find template named: get-string-attribute Looking in the cocoon source, get-string-attribute is only mentioned in this input.xsl file, but no template with this name is ever defined. What am I missing? Nothing. The logicsheet is broken in 2.0.4 :-( but the CVS version is already fixed. Get yourself a fresh checkout of the cocoon_2_0_3_branch (yes, this is the current 2.0.x bugfix branch): cvs -d :pserver:[EMAIL PROTECTED]:/home/cvspublic login cvs -d :pserver:[EMAIL PROTECTED]:/home/cvspublic checkout -r cocoon_2_0_3_branch xml-cocoon2 Chris. -- C h r i s t i a n H a u l [EMAIL PROTECTED] fingerprint: 99B0 1D9D 7919 644A 4837 7D73 FEF9 6856 335A 9E08 - 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: trouble using xsp input logicsheet in cocoon 2.0.4
Thanks Chris, I got it mostly working with your information. A couple of issues, though: The first issue is that while this works fine: input:get-attribute module=session-attr as=string name=attr1 default=(Does not exist)/ this: input:get-attribute-names module=session-attr as=string/ produces this for me: org.apache.cocoon.components.modules.input.IteratorHelper@b1406b and: input:get-attribute-names module=session-attr as=xml/ produces an error. The second issue may not be important, but it is strange. Due to our network setup, I cannot use CVS directly, so I got the updated file from the Code Repository link on http://xml.apache.org/cocoon/;. Strangly the file input.xsl is not listed on this page: http://cvs.apache.org/viewcvs.cgi/xml-cocoon2/src/java/org/apache/cocoon/components/language/markup/xsp/java/?only_with_tag=cocoon_2_0_3_branch But I did manage to get the file from this link: http://cvs.apache.org/viewcvs.cgi/xml-cocoon2/src/java/org/apache/cocoon/components/language/markup/xsp/java/input.xsl?only_with_tag=cocoon_2_0_3_branch Tim [EMAIL PROTECTED] 01/09/03 03:15AM ... Nothing. The logicsheet is broken in 2.0.4 :-( but the CVS version is already fixed. Get yourself a fresh checkout of the cocoon_2_0_3_branch (yes, this is the current 2.0.x bugfix branch): cvs -d :pserver:[EMAIL PROTECTED]:/home/cvspublic login cvs -d :pserver:[EMAIL PROTECTED]:/home/cvspublic checkout -r cocoon_2_0_3_branch xml-cocoon2 Chris. -- C h r i s t i a n H a u l [EMAIL PROTECTED] fingerprint: 99B0 1D9D 7919 644A 4837 7D73 FEF9 6856 335A 9E08 - 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: Trouble Passing Parameters
Jacob Arnold wrote: I'm having difficulty passing parameters to my XSP. I'm using the following in my sitemap: map:match pattern=*/test.html map:generate src=docs/test.xsp type=serverpages map:parameter name=id value={1}/ /map:generate map:transform src=stylesheets/encode-html.xsl/ map:serialize/ /map:match And this in my XSP xsp-request:get-parameter name=id/ But the value is not showing up. When I try the code suggested in the matchers and selectors doc, xsp:exprparameters.getParameter(id)/xsp:expr I get this error: Try something like xsp:page my_root_element xsp:logic String my_param=parameters.getParameter(id,default_value); /xsp:logic /my_root_element /xsp:page HTH Michael org.apache.cocoon.ProcessingException: Language Exception: org.apache.cocoon.components.language.LanguageException: Error compiling test_xsp: Line 373, column 71: unreported exception: org.apache.avalon.framework.parameters.ParameterException; must be caught or declared to be thrown Line 0, column 0: 1 error Any ideas? I'm using Cocoon 2.0.4 and Tomcat 4.1.12. I tried putting the map:parameter element within my transform, but that didn't seem to work either. Thanks, J - 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: Trouble Passing Parameters
That worked. Thanks for the help. J -Original Message- From: Michael Wechner [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 07, 2003 9:44 AM To: [EMAIL PROTECTED] Subject: Re: Trouble Passing Parameters Jacob Arnold wrote: I'm having difficulty passing parameters to my XSP. I'm using the following in my sitemap: map:match pattern=*/test.html map:generate src=docs/test.xsp type=serverpages map:parameter name=id value={1}/ /map:generate map:transform src=stylesheets/encode-html.xsl/ map:serialize/ /map:match And this in my XSP xsp-request:get-parameter name=id/ But the value is not showing up. When I try the code suggested in the matchers and selectors doc, xsp:exprparameters.getParameter(id)/xsp:expr I get this error: Try something like xsp:page my_root_element xsp:logic String my_param=parameters.getParameter(id,default_value); /xsp:logic /my_root_element /xsp:page HTH Michael org.apache.cocoon.ProcessingException: Language Exception: org.apache.cocoon.components.language.LanguageException: Error compiling test_xsp: Line 373, column 71: unreported exception: org.apache.avalon.framework.parameters.ParameterException; must be caught or declared to be thrown Line 0, column 0: 1 error Any ideas? I'm using Cocoon 2.0.4 and Tomcat 4.1.12. I tried putting the map:parameter element within my transform, but that didn't seem to work either. Thanks, J - 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] - 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]
Action and sunRise context(s) [was : Re: trouble passing a parameter to my action ]
Hi Elmar, yes I did so. Got NullPointerException. I extended ComposerAction, am I wrong with that ? Have another question now : how can my action put something in a sunrise context (mycontext), or else will use parameter associated with redirect-to :-/ Thanks, gotta dig for it. Barbara - Original Message - From: Sternath Elmar [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, July 25, 2002 10:41 AM Subject: AW: trouble passing a parameter to my action Are you sure that you put your mydate param into a HashMap and that you also return this HashMap inside your act method. If you don't return at least an empty HashMap, nothing will be done inside the action tags. Your pipeline entries seem to be correct, it should work with {1}. Regards, Elmar -Ursprüngliche Nachricht- - 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]
AW: Action and sunRise context(s) [was : Re: trouble passing a parameter to my action ]
Hi Barbara, extending ComposerAction is correct, maybe you should take a look into your cocoon/Web-Inf/logs/error.log to check where exactly the null pointer exception occurs. Perhaps something else is wrong inside your action code. Sorry, I'm not familiar with sunrise. -Ursprüngliche Nachricht- Von: Barbara Post [mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag, 25. Juli 2002 11:18 An: [EMAIL PROTECTED] Betreff: Action and sunRise context(s) [was : Re: trouble passing a parameter to my action ] Hi Elmar, yes I did so. Got NullPointerException. I extended ComposerAction, am I wrong with that ? Have another question now : how can my action put something in a sunrise context (mycontext), or else will use parameter associated with redirect-to :-/ Thanks, gotta dig for it. Barbara - Original Message - From: Sternath Elmar [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, July 25, 2002 10:41 AM Subject: AW: trouble passing a parameter to my action Are you sure that you put your mydate param into a HashMap and that you also return this HashMap inside your act method. If you don't return at least an empty HashMap, nothing will be done inside the action tags. Your pipeline entries seem to be correct, it should work with {1}. Regards, Elmar -Ursprüngliche Nachricht- - 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: trouble getting return values from an Action Map
Ah, that makes sense now. Thanks, Chris! Harry -Original Message- From: Christian Haul [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 10, 2002 2:18 AM To: [EMAIL PROTECTED] Subject: Re: trouble getting return values from an Action Map On 09.Jul.2002 -- 05:39 PM, Lai, Harry wrote: If you're planning to pass multiple parameters, though, I think someone posted something about a bug with escaping the ampersand (http://marc.theaimsgroup.com/?l=xml-cocoon-usersm=101828372801806w=2) Harry, this bug stems from the fact that a sitemap is XML and is used to start an XML entity. Just like s are not usable in XML as characters. However, using the XML entity amp; and lt; instead works fine. E.g. map:redirect-to uri=some_page?foo=abcamp;bar=def/ Chris. -- C h r i s t i a n H a u l [EMAIL PROTECTED] fingerprint: 99B0 1D9D 7919 644A 4837 7D73 FEF9 6856 335A 9E08 - 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: trouble getting return values from an Action Map
Thanks to both of you. It is working now. Leona - Original Message - From: Lai, Harry [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, July 09, 2002 5:39 PM Subject: RE: trouble getting return values from an Action Map Hi Leona, I think there was some discussion about changing how the redirect-to works, but I believe that in Cocoon 2.0.2, you can't provide parameters via a map:parameter sub-element. That is, when you redirect to summary, your playerID parameter is being ignored. One possible workaround I've seen mentioned on this list is: map:act type=gs-login map:redirect-to uri=summary?playerID={playerID}/ ... If you're planning to pass multiple parameters, though, I think someone posted something about a bug with escaping the ampersand (http://marc.theaimsgroup.com/?l=xml-cocoon-usersm=101828372801806w=2) Anyway, hope that helps! Harry -Original Message- From: Christian Haul [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 09, 2002 5:09 PM To: [EMAIL PROTECTED] Subject: Re: trouble getting return values from an Action Map On 09.Jul.2002 -- 03:13 PM, Leona Slepetis wrote: Hi All, I've gone through the samples and archives and still am having trouble getting return values from an Action. map:act type=gs-login map:redirect-to uri=summary map:parameter name=playerID value={playerID}/ map:match pattern=summary map:parameter name=playerID value={1}/ Leona, I've deleted all but the relevant lines. Since you send a redirect response to the browser, processing ends. The browser requests a new page. For this (second) request, no action is run, thus no values are set. client cocoon -gs-login- (action) ---redirect-to-summary summary--- ---summary If you need to keep the value, you could a) use cocoon: protocol in a generator b) put summary in a resource and call it c) store value e.g. in session Chris. Please follow up summarizing your problem and which suggested solution / information worked for you when you consider your problem solved. Add SUMMARY: to the subject line. This will make FAQ generation and searching the list easier. In addition, it makes helping you more fun. Thank you. -- C h r i s t i a n H a u l [EMAIL PROTECTED] fingerprint: 99B0 1D9D 7919 644A 4837 7D73 FEF9 6856 335A 9E08 - 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] - 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: trouble getting return values from an Action Map
On 12.Jul.2002 -- 11:46 AM, Leona Slepetis wrote: Thanks to both of you. It is working now. Leona Please follow up summarizing your problem and which suggested solution / information worked for you when you consider your problem solved. Add SUMMARY: to the subject line. This will make FAQ generation and searching the list easier. In addition, it makes helping you more fun. Thank you. -- C h r i s t i a n H a u l [EMAIL PROTECTED] fingerprint: 99B0 1D9D 7919 644A 4837 7D73 FEF9 6856 335A 9E08 - 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: trouble getting return values from an Action Map
On 09.Jul.2002 -- 05:39 PM, Lai, Harry wrote: If you're planning to pass multiple parameters, though, I think someone posted something about a bug with escaping the ampersand (http://marc.theaimsgroup.com/?l=xml-cocoon-usersm=101828372801806w=2) Harry, this bug stems from the fact that a sitemap is XML and is used to start an XML entity. Just like s are not usable in XML as characters. However, using the XML entity amp; and lt; instead works fine. E.g. map:redirect-to uri=some_page?foo=abcamp;bar=def/ Chris. -- C h r i s t i a n H a u l [EMAIL PROTECTED] fingerprint: 99B0 1D9D 7919 644A 4837 7D73 FEF9 6856 335A 9E08 - 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: trouble getting return values from an Action Map
On 09.Jul.2002 -- 03:13 PM, Leona Slepetis wrote: Hi All, I've gone through the samples and archives and still am having trouble getting return values from an Action. map:act type=gs-login map:redirect-to uri=summary map:parameter name=playerID value={playerID}/ map:match pattern=summary map:parameter name=playerID value={1}/ Leona, I've deleted all but the relevant lines. Since you send a redirect response to the browser, processing ends. The browser requests a new page. For this (second) request, no action is run, thus no values are set. client cocoon -gs-login- (action) ---redirect-to-summary summary--- ---summary If you need to keep the value, you could a) use cocoon: protocol in a generator b) put summary in a resource and call it c) store value e.g. in session Chris. Please follow up summarizing your problem and which suggested solution / information worked for you when you consider your problem solved. Add SUMMARY: to the subject line. This will make FAQ generation and searching the list easier. In addition, it makes helping you more fun. Thank you. -- C h r i s t i a n H a u l [EMAIL PROTECTED] fingerprint: 99B0 1D9D 7919 644A 4837 7D73 FEF9 6856 335A 9E08 - 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: trouble getting return values from an Action Map
Hi Leona, I think there was some discussion about changing how the redirect-to works, but I believe that in Cocoon 2.0.2, you can't provide parameters via a map:parameter sub-element. That is, when you redirect to summary, your playerID parameter is being ignored. One possible workaround I've seen mentioned on this list is: map:act type=gs-login map:redirect-to uri=summary?playerID={playerID}/ ... If you're planning to pass multiple parameters, though, I think someone posted something about a bug with escaping the ampersand (http://marc.theaimsgroup.com/?l=xml-cocoon-usersm=101828372801806w=2) Anyway, hope that helps! Harry -Original Message- From: Christian Haul [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 09, 2002 5:09 PM To: [EMAIL PROTECTED] Subject: Re: trouble getting return values from an Action Map On 09.Jul.2002 -- 03:13 PM, Leona Slepetis wrote: Hi All, I've gone through the samples and archives and still am having trouble getting return values from an Action. map:act type=gs-login map:redirect-to uri=summary map:parameter name=playerID value={playerID}/ map:match pattern=summary map:parameter name=playerID value={1}/ Leona, I've deleted all but the relevant lines. Since you send a redirect response to the browser, processing ends. The browser requests a new page. For this (second) request, no action is run, thus no values are set. client cocoon -gs-login- (action) ---redirect-to-summary summary--- ---summary If you need to keep the value, you could a) use cocoon: protocol in a generator b) put summary in a resource and call it c) store value e.g. in session Chris. Please follow up summarizing your problem and which suggested solution / information worked for you when you consider your problem solved. Add SUMMARY: to the subject line. This will make FAQ generation and searching the list easier. In addition, it makes helping you more fun. Thank you. -- C h r i s t i a n H a u l [EMAIL PROTECTED] fingerprint: 99B0 1D9D 7919 644A 4837 7D73 FEF9 6856 335A 9E08 - 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: Trouble with actions
map:match pattern=search.html map:act type=LogOn/ map:act type=CheckLogon map:generate src=/search/search2.xml type=serverpages/ map:transform src=/search/SearchLayout.xml/ map:serialize type=html/ map:act /map:match This gives me an error message when i want to call the page WARN(2002-05-18) 11:15.04:125 [cocoon ] (/cocoon/creon/search.html) Thread-12/sitemap_xmap: 404, try to process the error page org.apache.cocoon.ResourceNotFoundException: Resource not found file:/F:/Webserver/tomcat/webapps/cocoon/creon/ Remember if an action returns null (no Map at all) all child processing inside a pipeline is skipped and you are back matching the request. ...so since you have no other match for the request inside you pipelines you get a resource not found I also have a minor problem. map:match pattern=search.html map:act set=EnablerSession/ map:act type=CheckLogon map:generate src=/search/search2.xml type=serverpages/ map:transform src=/search/SearchLayout.xml/ map:serialize type=html/ map:act /map:match When I wnat to use this he tells me I'm usign deprecated API. But isn't this the way to use action sets? Where does he tell? -- Torsten - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Trouble with actions
-Original Message- From: Torsten Curdt [mailto:[EMAIL PROTECTED]] Sent: Montag, 18. Februar 2002 11:43 To: [EMAIL PROTECTED] Subject: Re: Trouble with actions map:match pattern=search.html map:act type=LogOn/ map:act type=CheckLogon map:generate src=/search/search2.xml type=serverpages/ map:transform src=/search/SearchLayout.xml/ map:serialize type=html/ map:act /map:match This gives me an error message when i want to call the page WARN(2002-05-18) 11:15.04:125 [cocoon ] (/cocoon/creon/search.html) Thread-12/sitemap_xmap: 404, try to process the error page org.apache.cocoon.ResourceNotFoundException: Resource not found file:/F:/Webserver/tomcat/webapps/cocoon/creon/ Remember if an action returns null (no Map at all) all child processing inside a pipeline is skipped and you are back matching the request. ...so since you have no other match for the request inside you pipelines you get a resource not found Yes I know this. Nut this isn't the problem. The action is working fine and doesn't return null. The problem is he doesn't find the stylesheets when it's inside the action. I copied the wrong error message. org.apache.cocoon.ResourceNotFoundException: Resource not found file:/search/search2.xml When I use it without the action it works fine. I also have a minor problem. map:match pattern=search.html map:act set=EnablerSession/ map:act type=CheckLogon map:generate src=/search/search2.xml type=serverpages/ map:transform src=/search/SearchLayout.xml/ map:serialize type=html/ map:act /map:match When I wnat to use this he tells me I'm usign deprecated API. But isn't this the way to use action sets? Where does he tell? It told me that I#m using deprectaed api, and that he can't compile the sitempat because of this. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Trouble with actions
This gives me an error message when i want to call the page WARN(2002-05-18) 11:15.04:125 [cocoon ] (/cocoon/creon/search.html) Thread-12/sitemap_xmap: 404, try to process the error page org.apache.cocoon.ResourceNotFoundException: Resource not found file:/F:/Webserver/tomcat/webapps/cocoon/creon/ Remember if an action returns null (no Map at all) all child processing inside a pipeline is skipped and you are back matching the request. ...so since you have no other match for the request inside you pipelines you get a resource not found Yes I know this. Nut this isn't the problem. The action is working fine and doesn't return null. The problem is he doesn't find the stylesheets when it's inside the action. I copied the wrong error message. org.apache.cocoon.ResourceNotFoundException: Resource not found file:/search/search2.xml When I use it without the action it works fine. Hm... why don't you use search/search2.xml (without slash) anyway? I also have a minor problem. map:match pattern=search.html map:act set=EnablerSession/ map:act type=CheckLogon map:generate src=/search/search2.xml type=serverpages/ map:transform src=/search/SearchLayout.xml/ map:serialize type=html/ map:act /map:match When I wnat to use this he tells me I'm usign deprecated API. But isn't this the way to use action sets? Where does he tell? It told me that I#m using deprectaed api, and that he can't compile the sitempat because of this. Could you please post the exact message / exception? Try to close the action set just before the close of match... -- Torsten - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Trouble getting Cocoon2 to work...
Dave Smith, John Peters, Java Guru, et al., Thanks for your help! I eventally got Cocoon to work. Seems like I had the wrong JDK specified. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Trouble with request parameter encoding
I resolved the problem by explicitly setting the character encoding to iso-8859-1 for the HTML-Formatter in cocoon.properties. The default encoding scheme has obviously changed in version 1.8.3-devel Thanks anyway. Juergen Sonnauer Am Samstag, 28. Juli 2001 um 17:50 schrieb Uli Mayring: On Sat, 28 Jul 2001 [EMAIL PROTECTED] (=?iso-8859-1?Q?J=FCrgen_Sonnauer?=) wrote: Hi! i was using Cocoon 1.8.2 and want to use the improvements from 1.8.3-dev. After building the java archive from a recent development snapshot, i have a problem with special characters in request parameters. If you could try out the following XSP page and type Jürgen in the text input field you get something like this: http://localhost:8080/cocoon/DumpRequestParameter.xml?test=J%C3%BCrgen What i'm doing wrong? The parameter is url-encoded, you need to read it out with URLDecoder.decode Ulrich -- Ulrich Mayring DENIC eG, Softwareentwicklung - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.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/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Trouble with request parameter encoding
On Sat, 28 Jul 2001 [EMAIL PROTECTED] (=?iso-8859-1?Q?J=FCrgen_Sonnauer?=) wrote: Hi! i was using Cocoon 1.8.2 and want to use the improvements from 1.8.3-dev. After building the java archive from a recent development snapshot, i have a problem with special characters in request parameters. If you could try out the following XSP page and type Jürgen in the text input field you get something like this: http://localhost:8080/cocoon/DumpRequestParameter.xml?test=J%C3%BCrgen What i'm doing wrong? The parameter is url-encoded, you need to read it out with URLDecoder.decode Ulrich -- Ulrich Mayring DENIC eG, Softwareentwicklung - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Trouble getting Cocoon2 to work...
I think it has to be first in tomcat's classpath. Change the name of the jar file that contains Xerces so it starts with a. Then it will be loaded into your classpath first Hewko, Doug wrote: Help! I think I have Tomcat working... I get the default page when I type http://localhost:8080/;. But http://localhost:8080/cocoon; is giving me the exception org.apache.avalon.framework.configuration.ConfigurationException: Error trying to load configurations and embedded exception org.xml.sax.SAXException: Could not get valid parserNamespace not supported by SAXParser. I understand that this means I need Xerces loaded first. How do I do that? Xerces does not come with documentation. I am using Tomcat 3.2.3, Cocoon 2, Xalan 2.2.6D (even though I do not know how to install or use it), and Xerces 1.4.2. I am not a system admin by trade, so setting up the server is quite confusing. I just want to be able to use Cocoon2 to run server-side XML. Help! - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.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/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Trouble starting cocoon2
On Mon, 25 Jun 2001, RAO,YENUGANTI (Non-HP-Cupertino,ex1) wrote: Please could you clear the Bugzilla bug #2319 concerning this issue here? TIA Giacomo Thank you dims, now it is working!! -Rao -Original Message- From: Davanum Srinivas [SMTP:[EMAIL PROTECTED]] Sent: Monday, June 25, 2001 5:20 PM To: [EMAIL PROTECTED] Subject:Re: Trouble starting cocoon2 Please use JDK1.3.1 and see if the problem persists. Thanks, dims --- RAO,YENUGANTI (Non-HP-Cupertino,ex1) [EMAIL PROTECTED] wrote: Hi, I am having trouble in getting started with cocoon2 . My environment is as follows. OS : Windows NT, Java : JDK 1.2.2, Servlet engine : Tomcat 3.2.2. I followed the steps listed in the Installing cocoon2 page. Finally when I tried invoking The cocoon servlet I got DR.Watson error. I have cocoon.log, cocoon.xconf attached. cocoon.xconf cocoon.log Any ideas what is wrong ?. -Rao ATTACHMENT part 2 application/octet-stream name=cocoon.xconf ATTACHMENT part 3 application/octet-stream name=cocoon.log - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] = Davanum Srinivas, JNI-FAQ Manager http://www.jGuru.com/faq/JNI __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/ - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.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/faqs.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/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Trouble starting cocoon2
Thank you dims, now it is working!! -Rao -Original Message- From: Davanum Srinivas [SMTP:[EMAIL PROTECTED]] Sent: Monday, June 25, 2001 5:20 PM To: [EMAIL PROTECTED] Subject:Re: Trouble starting cocoon2 Please use JDK1.3.1 and see if the problem persists. Thanks, dims --- RAO,YENUGANTI (Non-HP-Cupertino,ex1) [EMAIL PROTECTED] wrote: Hi, I am having trouble in getting started with cocoon2 . My environment is as follows. OS : Windows NT, Java : JDK 1.2.2, Servlet engine : Tomcat 3.2.2. I followed the steps listed in the Installing cocoon2 page. Finally when I tried invoking The cocoon servlet I got DR.Watson error. I have cocoon.log, cocoon.xconf attached. cocoon.xconf cocoon.log Any ideas what is wrong ?. -Rao ATTACHMENT part 2 application/octet-stream name=cocoon.xconf ATTACHMENT part 3 application/octet-stream name=cocoon.log - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] = Davanum Srinivas, JNI-FAQ Manager http://www.jGuru.com/faq/JNI __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/ - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.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/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]