cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From olivier demah <ode...@messagio.com>
Subject [GROOVY] parameters
Date Thu, 03 Jun 2004 14:06:24 GMT
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


Mime
View raw message