You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Sal Mangano <sm...@ureach.com> on 2004/07/21 17:36:40 UTC

Bug in SessionPropagatorAction?

As I understand the SessionPropagatorAction you can provide defaults when
you congigure it in sitemap like so:

<map:action name="session-propagator" logger="sitemap.action.session"
     src="org.apache.cocoon.acting.SessionPropagatorAction">
       <my-default1>0</my-default1>
       <my-default2>default</my-default2>
</map:action>

However, if you look at the code for SessionPropagatorAction it makes no
sense because it will result in an exception being thrown if a default
specified like above is NOT in the parameters and will result in simply
taking the value from the parameters if it is! 

For example, give, the above:

          <map:act type="session-propagator">
            <map:parameter name="my-default1" value="2"/>
		<!-- ... -->
          </map:act>

Will throw an exception like:

http8080-Processor2/SessionPropagatorAction: exception: 
org.apache.avalon.framework.parameters.ParameterException: The parameter
'my-default2' does not contain a value

Am I misunderstanding something? If not, I will log a bug report.

---------------------------------------------------------
Sal Mangano
Into Technology Inc.
www.into-technology.com

Use XSLT? Try the XSLT Cookbook
http://www.oreilly.com/catalog/xsltckbk/  


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org