[xwiki-users] XWiki request object argument list
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-
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/HttpServlet... 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 [email protected] http://lists.xwiki.org/mailman/listinfo/users
participants (2)
-
Jerome Velociter -
Rieken, Joshua