Re: exception in let-bindings (problem with Jetty?)
"Alessandro Colomba" <[email protected]> Sat, 7 Apr 2007 22:17:07 -0400
| Newsgroups | gmane.comp.java.sisc.user |
|---|---|
| Message-ID | <[email protected]> |
Marco,
Sorry about that. The example is missing a line.
It should be:
(let-bindings ((name "name"))
(get-bindings
(send-html/suspend
...))
(send-html/back ....))
I would also recommend taking a look at the examples that come in
siscweb-examples.war or the source distribution. They are very short
and easily used as templates.
___
Alessandro
On 4/7/07, Marco Bakera <[email protected]> wrote:
> Hey,
>
> If I try the examples code from the let-bindings construct as
> presented in the manual
>
> (let-bindings ((name "name"))
> (send-html/suspend
> (lambda (k-url)
> `(html
> (body
> (form (@ (action ,k-url))
> (input (@ (type "text") (name "name"))))))))
> (send-html/back
> `(html
> (body
> (p "You typed: " ,name)))))
>
> I get the following exception:
>
> no applicable method for args (#<java org.mortbay.jetty.Request GET
> /siscweb-examples-0.4/sisclets/bakera-test;3621585e71487d5505754d104c4d417e43627c15?name=abc
> HTTP/1.1 Host: localhost:8080 User-Agent: Mozilla/5.0 (X11; U; Linux
> i686; en-US; rv:1.8.1.3) Gecko/20060601 Firefox/2.0.0.3 (Ubuntu-edgy)
> Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
> Accept-Language: en-us,en;q=0.5 Accept-Encoding: gzip,deflate
> Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive: 300
> Connection: keep-alive Referer:
> http://localhost:8080/siscweb-examples-0.4/sisclets/bakera-test
> Cookie: JSESSIONID=w612hohig8op > #<java java.lang.String name>) in
> generic procedure #0=#<procedure get>
>
> Any suggestions? Perhaps a result of the non-Jetty-compliance?
>
>
> Thanks for help and greetings,
> Marco.
>
> --
> ,----[ /X\arco -- www.bakera.de ]----
> | (Y F) = (F (Y F))
> `----[ cs.bakera.de ]----
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Sisc-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/sisc-users
>
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV