Hi,
I was wondering if there is a better way to test of a get/post parameter is set. In the documentation, it says: (or NIL
if there ain't no parameter with this name)
. But when it's not set and I do (hunchentoot:get-parameter "foo") and
it DNE, I get a server error. I'm using Hunchentoot 0.15.7 (SBCL
1.0.22). Here is what I'm currently doing:
(defun parameterp (str)
(dolist (x (hunchentoot:get-parameters))
(when (string= (car x) str)
(return-from parameterp t)))
nil)
Thanks,
Erik Nomitch