cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matthew Langham" <mlang...@s-und-n.de>
Subject RE: Truble with actions 2
Date Mon, 18 Feb 2002 12:37:35 GMT
Hi Henrik,

I am not sure what exactly you are trying to do but you can use the
action-set in the pipeline as so;

            <map:act set="creon">
                <map:generate
src="f:/webserver/tomcat/webapps/cocoon/creon/search/search2.xml"
type="serverpages"/>
                <map:transform
src="f:/webserver/tomcat/webapps/cocoon/creon/search/SearchLayout.xml"/>
                <map:serialize type="html"/>
            </map:act>

And then use the "cocoon-action" in your form with a value of "LogOn" etc.
to trigger the actual Action that is called.

Hope this helps

Matthew

--
Open Source Group               sunShine - Lighting up e:Business
=================================================================
Matthew Langham, S&N AG, Klingenderstrasse 5, D-33100 Paderborn
Tel:+49-5251-1581-30  mlangham@s-und-n.de - http://www.s-und-n.de
           Weblogging at: http://www.need-a-cake.com
=================================================================


-----Original Message-----
From: Henrik Hofmann [mailto:Henrik.Hofmann@creon-it.com]
Sent: Saturday, May 18, 2002 1:35 PM
To: cocoon-users@xml.apache.org
Subject: Truble with actions 2


I can't use action sets and don't know why.


  <map:actions>
      <map:action name="LogOff"
src="com.creon.webapp.Cocoon.Actions.LogOffWebUser"/>
       <map:action name="LogOn"
src="com.creon.webapp.Cocoon.Actions.LogOnAction"/>
       <map:action name="CheckLogon"
src="com.creon.webapp.Cocoon.Actions.CheckLogonAction"/>
       <map:action name="SessionCreator"
src="com.creon.webapp.Cocoon.Actions.SessionCreator"/>
  </map:actions>


   <map:action-sets>
    <map:action-set name="creon">
     <map:act type="LogOn" action="LogOn"/>
     <map:act type="LogOff" action="LogOff"/>
    </map:action-set>
   </map:action-sets>


This is how i want to use them

    <map:match pattern="search.html">

          <map:act set="creon">
            <map:act type="CheckLogon">
                <map:generate
src="f:/webserver/tomcat/webapps/cocoon/creon/search/search2.xml"
type="serverpages"/>
                <map:transform
src="f:/webserver/tomcat/webapps/cocoon/creon/search/SearchLayout.xml"/>
                <map:serialize type="html"/>
               </map:act>
            </map:act>
    </map:match>


But it always gives me this error message and i don't know what to do.


org.apache.cocoon.ProcessingException: Language Exception:
org.apache.cocoon.components.language.LanguageException: Error compiling
sitemap_xmap:
Line 640, column 34:  Method
action_set_creon(org.apache.cocoon.sitemap.SitemapRedirector,
java.lang.String, java.util.List, org.apache.cocoon.environment.Environment,
java.util.Map, java.lang.String,
org.apache.avalon.framework.parameters.Parameters) not found in class
org.apache.cocoon.www.creon.sitemap_xmap.
Line 0, column 0:
Note:
F:\Webserver\tomcat\work\localhost_8080%2Fcocoon\cocoon-files\org\apache\coc
oon\www\creon\sitemap_xmap.java uses or overrides a deprecated API.
Recompile with "-deprecation" for details.
1 error, 1 warning





    </map:match>


---------------------------------------------------------------------
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: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


Mime
View raw message