[xwiki-users] XWiki request object argument list

2009-10-08 Thread Rieken, Joshua
Hi again,

Is there a way to programmatically get a list of all arguments in an HTTP 
request?
I know you can access each argument if you know its name (e.g., 
request.confirm), but
is there a way to get a container of all provided arguments?

Thanks,
-Joshua-
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] XWiki request object argument list

2009-10-08 Thread Jerome Velociter
Hi Joshua,

The request object exposed a script API is nothing else than a Java 
http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/servlet/http/HttpServletRequest.html

So you can call getParameterNames, for example in velocity :

{{velocity}}
#foreach($paramName in $request.parameterNames)
* $paramName
#end
{{/velocity}}

Hope this helps,
Jerome.

Rieken, Joshua wrote:
 Hi again,

 Is there a way to programmatically get a list of all arguments in an HTTP 
 request?
 I know you can access each argument if you know its name (e.g., 
 request.confirm), but
 is there a way to get a container of all provided arguments?

 Thanks,
 -Joshua-
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users