cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tony Collen <colle...@umn.edu>
Subject Re: Default value for input modules?
Date Thu, 23 Oct 2003 15:25:19 GMT
mathias.wiegard@student.uni-ulm.de 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"/>
> ...


Mathias,

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.


Regards,

Tony


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


Mime
View raw message