Thank you, it works. Only the /path/to/image.jpg should always start with a path to your lisp server (like "/hunchentoot/test") otherwise the handler won't work. So, does it mean that if you have a number of images that you want to display you need to create-static-file-dispatcher-and-handler for each of them?

Thank you,
Andrew

On 2/8/07, Zach Beane <xach@xach.com> wrote:
On Thu, Feb 08, 2007 at 05:45:01PM -0500, Andrei Stebakov wrote:
> Going trough the test server code it's clear how to diplay an image based on
> a static handler or sending a raw image stream to the client. But how can
> show an image in context of a normal html page (surrounded by other text
> tags like <div> <table> etc)?

Add a handler for /path/to/image.jpg, and put <img
src="/path/to/image.jpg"> in the HTML?

Zach
_______________________________________________
tbnl-devel site list
tbnl-devel@common-lisp.net
http://common-lisp.net/mailman/listinfo/tbnl-devel