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>
<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>
<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="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>
<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/
org.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 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>
<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