Does webricken provide a way to incrementally add to the response
output, other than += which seems wasteful?
class HelloServlet < HTTPServlet::AbstractServlet
def do_GET(req, res)
res.body = "<HTML>hello, world.</HTML>"
res['Content-Type'] = "text/html"
end
end
I'm hoping for something along these lines but don't see it anywhere.
res.put("<h1>Header</h1>")
res.put("<p>blah, blah</p>")
res.put("<p>and so forth</p>")
--
Brad Cox, PhD; bcox@virtualschool.edu 703 361 4751
o For industrial age goods there were checks and credit cards.
For everything else there is http://virtualschool.edu/mybank
o Java Interactive Learning Environment http://virtualschool.edu/jile
o Java Web Application Architecture: http://virtualschool.edu/jwaa