4
我尝试实现一个基于Hunchentoot的简单后期示例。无法在LISP hunchentoot中获得帖子
下面是代码:
(define-easy-handler (test :uri "/test")()
(with-html-output-to-string (*standard-output* nil :prologue t :indent t)
(:html
(:body
(:h1 "Test")
(:form :action "/test2" :method "post" :id "addform"
(:input :type "text" :name "name" :class "txt")
(:input :type "submit" :class "btn" :value "Submit"))))))
(define-easy-handler (test2 :uri "/test2") (name)
(with-html-output-to-string (*standard-output* nil :prologue t :indent t)
(:html
(:body
(:h1 name)))))
我可以正确连接到http://127.0.0.1:8080/test和看到的文字输入方式。但是当我提交文本时,我得到一个空白页面,我期待在文本输入中给出标题的页面。
不知道什么是错,任何人都可以建议吗?
非常感谢。有用。我会尽力在文档中说明这一点。 – Xaving 2015-02-11 12:58:53