From: Anon
Subject: Portable Aserve Webactions and View Functions
Date: 
Message-ID: <yPCdnYnUC53ezw3ZnZ2dnUVZ_rydnZ2d@comcast.com>
The documentation on Webactions mentions the following
on view functions:

<quote>
An action function may modify the Model behind the website and then it 
returns either  a string naming a symbolic page name, as a string naming 
a file to send back to the browser,  or the keyword symbol :continue 
meaning go on to the next item in the map entry.
A _view function_ will generate a response to the http request (which 
usually means sending html  to the browser).  A view function returns 
_nil_ meaning that this request has been processed and there's nothing 
more for webactions to do.
</quote>

Further in the document there are examples on how to use action functions 
but none on view functions.

I'm using action functions (and clp functions) in my project but as I've 
tried to use view functions the server returns a "500 - Internal Server 
Error" apparently from having retuned nil from such a function.

For example:

(defun view-test (req ent)
  (declare (ignore ent))
  (let ((rs (request-reply-stream req)))
    (with-html-output (rs)
      (:p "this is a test")))
  nil)

this assuming the interface to the view function is the same as to an 
action function except returning nil.

Any idea why this doesn't work?

Thanks in advance.