This is the mail archive of the kawa@sourceware.org mailing list for the Kawa project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: Using Kawa with Apache Tomcat


----------------------------------------
> 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 [HTTP/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
 		 	   		  

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]