Trouble with actions
Title: Message Hi, I have some trouble using actions. It's most likely i don't understand something but perhaps someone can help. I'm trying to insert some actions to my pages. Some combinations work and some don't. map:match pattern="search.html"map:generate src="/search/search2.xml" type="serverpages"/ map:transform src="/search/SearchLayout.xml"/ map:serialize type="html"//map:match This works perfectly map:match pattern="search.html" map:act type="LogOn"/map:generate src="/search/search2.xml" type="serverpages"/ map:transform src="/search/SearchLayout.xml"/ map:serialize type="html"/ /map:match This works fine too 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 pageorg.apache.cocoon.ResourceNotFoundException: Resource not found file:/F:/Webserver/tomcat/webapps/cocoon/creon/ 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? Thnx in advance
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]