[Newbies] images with seaside
thokeller at gmail.com
Sat Jul 22 00:37:27 UTC 2006
I'm working through the excellent tutorial by David Shafer (
but I can't figure out how to get my images and other static (non-squeak)
stuff to be found.
I have a directory named "Resources" in the same directory as my image file.
I started the server with the following:
"Kill all existing Kom HTTP servers"
HttpService allInstancesDo: [ :each | each stop. each unregister ].
"Start a new server o port 9090 serving both static content and seaside
| ma seaside |
seaside _ WAKom default.
ma _ ModuleAssembly core.
ma serverRoot: (FileDirectory default directoryNamed: 'Resources') fullName.
ma alias: '/seaside' to: [ma addPlug: [ :request | seaside process:
ma documentRoot: (FileDirectory default directoryNamed: 'Resources')
ma directoryIndex: 'index.html'.
(HttpService startOn: 9090 named: 'httpd') plug: ma rootModule
in my renderContentOn: html definition I enter the following:
html image: 'Resources/images.jpg' altText: 'Cybele-photo01.jpg'.
The Seaside component renders fine, but the image in Resources gives the
Error: "/seaside/Resources/images.jpg" not found
What am I doing wrong?
"Ecrasez l'Infame!" -- Voltaire
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Beginners