You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Mike Ash <ma...@euronetworldwide.com> on 2002/05/22 17:04:36 UTC

Setting actions in sitemap

I have an action defined as

   <map:action logger="sitemap.action.loginAction" name="loginAction"
src="package.name.LoginAction" >
      <parameter name="parmname" value="somevalue" />
   </map:action>

first off is this possible?

I know that this is done as well in the form validator, .

 <map:act type="form-validator">
       <parameter name="descriptor" value="context://descriptor.xml">
        <parameter name="validate" value="username,password">
 </map:act>


however it appears that everytime I use it I would have to put in the
parameter for the descriptor file,.  I was hoping to set the config file
once in the declaration of the action in the sitemap is it possible.

Re: Setting actions in sitemap

Posted by Konstantin Piroumian <kp...@apache.org>.
Setting actions in sitemapOops, typo...

Mike,

configuring actions on their declaration differ from passing params in a
pipeline. Your --> action <-- should implement Configurable interface to be
configured. See how the other actions are configured (you can extend one of
the *Configurable*Action classes).

Konstantin
----- Original Message -----
From: Mike Ash
To: 'cocoon-users@xml.apache.org'
Sent: Wednesday, May 22, 2002 7:04 PM
Subject: Setting actions in sitemap


I have an action defined as
   <map:action logger="sitemap.action.loginAction" name="loginAction"
src="package.name.LoginAction" >
      <parameter name="parmname" value="somevalue" />
   </map:action>
first off is this possible?
I know that this is done as well in the form validator, .
 <map:act type="form-validator">
       <parameter name="descriptor" value="context://descriptor.xml">
        <parameter name="validate" value="username,password">
 </map:act>


however it appears that everytime I use it I would have to put in the
parameter for the descriptor file,.  I was hoping to set the config file
once in the declaration of the action in the sitemap is it possible.

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


Re: Setting actions in sitemap

Posted by Konstantin Piroumian <kp...@apache.org>.
Mike,
 
configuring actions on their declaration differ from passing params in a
pipeline. Your pipeline should implement Configurable interface to be
configured. See how the other actions are configured (you can extend one
of the *Configurable*Action classes).
 
Konstantin

----- Original Message ----- 
From: Mike Ash <ma...@euronetworldwide.com>  
To: 'cocoon-users@xml.apache.org' <mailto:'cocoon-users@xml.apache.org'>

Sent: Wednesday, May 22, 2002 7:04 PM
Subject: Setting actions in sitemap


I have an action defined as 

   <map:action logger="sitemap.action.loginAction" name="loginAction"
src="package.name.LoginAction" > 
      <parameter name="parmname" value="somevalue" /> 
   </map:action> 

first off is this possible? 

I know that this is done as well in the form validator, . 

 <map:act type="form-validator"> 
       <parameter name="descriptor" value="context://descriptor.xml"> 
        <parameter name="validate" value="username,password"> 
 </map:act> 


however it appears that everytime I use it I would have to put in the
parameter for the descriptor file,.  I was hoping to set the config file
once in the declaration of the action in the sitemap is it possible.