cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tony Collen <>
Subject Re: Default value for input modules?
Date Thu, 23 Oct 2003 15:25:19 GMT wrote:

> Hi,
> I want to use the "request-param" input module on the sitemap to define a 
> parameter's value. My question is: is it possible to "initialize" this 
> parameter with an default value? I saw something in the documentation under 
> "modules" for xsp but not for the sitemap:
> ...
> <input:get-attribute module="request-param" as="string" name="module" 
> default="John Doe"/>
> ...


You might want to check out the DefaultsModule, as well as the 
ChainMetaModule.  They will allow you to setup a default values to "Fall 
back" to in case the main module (in this case request-param) can't get 
a value.



To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message