You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by olivier demah <od...@messagio.com> on 2004/06/03 16:06:24 UTC

[GROOVY] parameters

Hi,

With XSP ; i usually do

String action             = parameters.getParameter("action","");
String rub_id[]           = request.getParameterValues("rub_id[]");

to get parameters from the sitemap or an array from a previously form i 
filled ;

how can i do the same with Groovy ?

because currently for those 2 lines i get the following errors :
-*-*-*-*-*-
BSFException in ScriptGenerator.generate()

org.apache.cocoon.ProcessingException: BSFException in 
ScriptGenerator.generate(): org.apache.bsf.BSFException: exception from 
Groovy: java.lang.NullPointerException: Cannot invoke method: 
getParameter on null object

-*-*-*-*-*-

regards.

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