Greetings, I'm working through the excellent tutorial by David Shafer (<a href="http://www.shaffer-consulting.com/david/Seaside/" title="http://www.shaffer-consulting.com/david/Seaside/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)"> http://www.shaffer-consulting.com/david/Seaside/) 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 apps" | ma seaside | seaside _ WAKom default. ma _ ModuleAssembly core. ma serverRoot: (FileDirectory default directoryNamed: 'Resources') fullName. ma alias: '/seaside' to: [ma addPlug: [ :request | seaside process: request]]. ma documentRoot: (FileDirectory default directoryNamed: 'Resources') fullName. ma directoryIndex: 'index.html'. ma serveFiles. (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 message: Error: "/seaside/Resources/images.jpg" not found What am I doing wrong? -- Tom "Ecrasez l'Infame!" -- Voltaire _______________________________________________ Beginners mailing list [hidden email] http://lists.squeakfoundation.org/mailman/listinfo/beginners |
Similar questions/answers can be found on the seaside list. You might
check the archives and even join the mailing list: http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside Thomas Keller wrote: > Greetings, > I'm working through the excellent tutorial by David Shafer ( > http://www.shaffer-consulting.com/david/Seaside/) > 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 apps" > | ma seaside | > seaside _ WAKom default. > ma _ ModuleAssembly core. > ma serverRoot: (FileDirectory default directoryNamed: 'Resources') > fullName. > ma alias: '/seaside' to: [ma addPlug: [ :request | seaside process: > request]]. > ma documentRoot: (FileDirectory default directoryNamed: 'Resources') > fullName. > ma directoryIndex: 'index.html'. > ma serveFiles. > (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 message: > Error: "/seaside/Resources/images.jpg" not found > > What am I doing wrong? > > -- > Tom > "Ecrasez l'Infame!" -- Voltaire > >------------------------------------------------------------------------ > >_______________________________________________ >Beginners mailing list >[hidden email] >http://lists.squeakfoundation.org/mailman/listinfo/beginners > > -- Brad Fuller (408) 799-6124 ** Sonaural Audio Studios ** (408) 799-6123 West San Jose (408) 799-6124 Cambrian ________________________________ Hear us online: www.Sonaural.com _______________________________________________ Beginners mailing list [hidden email] http://lists.squeakfoundation.org/mailman/listinfo/beginners |
Free forum by Nabble | Edit this page |