jastrachan | 14 Jun 09:05 2004
Picon

Re: Form values

Agreed. FWIW Groovlets perform a similar role, making request 
parameters & session variables available by putting the variables into 
the Binding before running the groovy script. I'm sure something 
similar should be pretty easy to do with Cocoon.

On 7 Jun 2004, at 12:41, Bertrand Delacretaz wrote:
> Hi Olivier,
>
>> ...Currently i try to use it with cocoon (cocoon.apache.org).
>> I would like to know how i can get the values i enter in a form i 
>> filled via a web browser ?
>
> I don't think this is a groovy-specific question, but rather a Cocoon 
> one.
>
> You're probably using the Cocoon BSF block to run your Groovy scripts, 
> in which case you should be able to use the "request" object to get at 
> the request parameters.
>
> Apparently the BSF block does not currently provide this object to BSF 
> scripts directly, but it provides the ObjectModel, from which you can 
> get the request using ObjectModelHelper.getRequest(). Modifying the 
> BSF ScriptGenerator to provide the request object directly would be 
> easy.
>
> Hope this helps, but I think this discussion is OT here ;-)
>
> -Bertrand
>
>
>

James
-------
http://radio.weblogs.com/0112098/


Gmane