From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 57860 invoked by alias); 15 Jun 2015 04:13:25 -0000 Mailing-List: contact kawa-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: kawa-owner@sourceware.org Received: (qmail 57847 invoked by uid 89); 15 Jun 2015 04:13:24 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.9 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RP_MATCHES_RCVD,SPF_PASS autolearn=ham version=3.3.2 X-HELO: BAY004-OMC4S18.hotmail.com Received: from bay004-omc4s18.hotmail.com (HELO BAY004-OMC4S18.hotmail.com) (65.54.190.220) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA256 encrypted) ESMTPS; Mon, 15 Jun 2015 04:13:14 +0000 Received: from BAY177-W4 ([65.54.190.200]) by BAY004-OMC4S18.hotmail.com over TLS secured channel with Microsoft SMTPSVC(7.5.7601.22751); Sun, 14 Jun 2015 21:13:12 -0700 X-TMN: [NkjXUkTLTudMT16pPEFDkKkQ9moPGBLk] Message-ID: From: Tony West To: "kawa@sourceware.org" Subject: RE: Using Kawa with Apache Tomcat Date: Mon, 15 Jun 2015 04:13:00 -0000 In-Reply-To: <557E3C65.8020505@bothner.com> References: ,<557E3C65.8020505@bothner.com> Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-IsSubscribed: yes X-SW-Source: 2015-q2/txt/msg00055.txt.bz2 ---------------------------------------- > Date: Sun, 14 Jun 2015 19:45:57 -0700 > From: per@bothner.com > To: tonys-mailbox@hotmail.com; kawa@sourceware.org > Subject: Re: Using Kawa with Apache Tomcat > > On 06/14/2015 07:04 PM, Tony West wrote: >> I have been trying to get Kawa to work with Tomcat but so far I haven't = succeeded. >> >> At the moment, when I browse to the url, Firefox's console is showing [H= TTP/1.1 200 OK 0ms] so I seem to be finding the file, but the screen comes = back blank. >> ... >> My hello.scm is simply: >> (require 'http) >> (display (html:p "Hello world from Kawa")) > > Leave off the display call: > > (require 'http) > (html:p "Hello world from Kawa") > > In a Kawa servlet, you don't "print" the response. > It's like a REPL - the servlet is evaluated to a value > and *that* becomes the response. > > Try copying the file in testsuite/info/+default+ > to your hello.scm and you'll get a very detailed response, > -- > --Per Bothner > per@bothner.com http://per.bothner.com/ I made the above change to hello.scm but I still get a blank screen in the = browser. I downloaded the source (kawa-2.0.tar.gz) and found the testsuite directory= , but I can't find /info/+default+ under it. Puzzled. Tony =20=09=09=20=09=20=20=20=09=09=20=20