[hunchentoot-devel] Problem with redirect ...
Nicolas Lamirault
lam at tuxfamily.org
Tue Jan 16 10:09:24 UTC 2007
thanks a lot !
with your help and your documentation my web app is working well.
Edi Weitz <edi at agharta.de> writes:
> On Mon, 15 Jan 2007 20:53:26 +0100, Nicolas Lamirault <lam at tuxfamily.org> wrote:
>
>> i would like to define a web page when someone try to access an
>> unknown page :
>>
>> ;; (defun handle-error ()
>> ;; "Modify the Hunchentoot error dispatcher."
>> ;; (make-web-page #p"error.html"))
>>
>> and in the init file :
>>
>> ;;(setf hunchentoot:*http-error-handler* 'handle-error)
>
> http://weitz.de/hunchentoot/#*http-error-handler*
>
> "[...] a function designator for a function of one argument [...]"
>
>> i remove this code from my web service and i haven't got any error
>> with my redirect test !
>
> Sure:
>
> "The function gets called if the responsible handler has set a
> return code other than +HTTP-OK+ or +HTTP-NOT-MODIFIED+ and
> *HANDLE-HTTP-ERRORS-P* is true."
>
--
Nicolas Lamirault
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 188 bytes
Desc: not available
URL: <https://mailman.common-lisp.net/pipermail/tbnl-devel/attachments/20070116/8b1edde1/attachment.sig>
More information about the Tbnl-devel
mailing list