Thanks Michel,<br><br>All perfect now.<br><br>I think I know why it didn&#39;t work when you emailed me that piece of code the last time - I think I tried it after I went into the config page and pressed submit, thus changing the default Home Directory without me realising it.&nbsp; 
<span style="font-weight: bold; font-style: italic;">Seems I know just enough to make myself dangerous.</span><br><br>Thanks Michel (and All) for your help and patience - also thanks for the further explaination on the configuration of sites it really helped further my understanding of the Seaside framework.
<br><br>Cheers,<br><br>Dirk<br><br><br><br><div><span class="gmail_quote">On 4/25/07, <b class="gmail_sendername">Michel Bany</b> &lt;<a href="mailto:michel.bany@gmail.com">michel.bany@gmail.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div style=""><div>Hi Dirk,</div><div><br></div><div>Assuming that</div><div>(1) you have a standard Seaside install, as you said,</div><div>(2) you have a file named &#39;memberMail.gif&#39; in folder c:\Program Files\Cincom\vw7.4.1nc\web\examples\
</div><div><br></div><div>Then</div><div>(a) you should be able to see you picture when pointing your browser to</div><div><a href="http://localhost:8008/memberMail.gif" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://localhost:8008/memberMail.gif</a></div><div>(b) you should also see it at</div><div><a href="http://localhost:8008/seaside/memberMail.gif" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://localhost:8008/seaside/memberMail.gif
</a></div><div>(c) you should also see it as part of a Seaside component if the rendering code contains</div><div><span style="white-space: pre;">        </span>html image: &#39;../memberMail.gif&#39;</div><div><br></div><div>Regarding the configuration of the sites, you would need to read the WebToolkit documentation.
</div><div>This is a pdf document named &#39;WebAppDevGuide.pdf&#39; and located in the doc folder.</div><div>The document explains how to sites are defined using *.ini files in the web folder.</div><div><br></div><div>You will then notice that the &#39;seaside&#39; site is not defined using an *.ini file.
</div><div>Instead it is created programmatically during the installation of Seaside to minimize the amount of setup for beginners.</div><div>It is also recreated each time you bring up your VW image.</div><div>The code that creates the &#39;seaside&#39; site can be found in method AAADocumentation&gt;&gt;createWebSite.
</div><div>In this method you will notice this statement</div><div><span style="white-space: pre;">        </span>configParameters at: &#39;directory&#39; put: default directoryName.</div><div>which means the the home directory of the &#39;seaside&#39; site is the same as the home directory of the &#39;default&#39; site.
</div><div>See in &#39;default-site.ini&#39; directory = $(VISUALWORKS)/web/examples</div><div>This remark should explain (b) above.</div><div><br></div><div>An advanced Seaside user will probably setup Seaside sites using the *.ini files.
</div><div><br></div><div>To define a Seaside site using an *.ini file, you will need to create a new file, say &#39;mySite.ini&#39;</div><div>with some contents like this</div><div>[configuration]</div><div>directory = D:/mySite
</div><div>environment = MyNameSpace</div><div>description = My Seaside site</div><div>home = startpage.html</div><div>[logical-names]</div><div>app&nbsp;= servlet/SeasideServlet</div><div>Next&nbsp;you will need to update the &#39;
webtools.ini&#39; file to include that line</div><div>mySite = mySite.ini</div><div>Finally, you will need to force WebToolkit to reread its config files by going to</div><div><a href="http://localhost:8008/configure/manageServer" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://localhost:8008/configure/manageServer</a></div><div>and follow the instructions, or go directly to</div><div><a href="http://localhost:8008/configure/resetConfiguration" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://localhost:8008/configure/resetConfiguration</a></div><div><br></div><div>Place your static files in the folder defined in the mySite.ini file (directory =)</div><div><br></div><div>Once this is done you can go to you site using
</div><div><a href="http://localhost:8008/mySite" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://localhost:8008/mySite</a></div><div>or</div><div><a href="http://localhost:8008/mySite/app/browse" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://localhost:8008/mySite/app/browse</a></div><div><br></div><div>Let me know if this helps,</div><div>Michel.</div><br><div><blockquote type="cite"><div><span class="e" id="q_1122827b7938843f_1">I posted the question below last week and although I had may tips (a lot went over my head) I am still unable to display an image in a webpage generated by Seaside.&nbsp; 
<br><br>I have tried all sorts of variations on the &#39;image&#39; method but still can&#39;t get the method to find the image <span style="font-weight: bold;">&quot;Which dir do I place the Image?&quot;</span> - I have been able, through the &#39;style sheets&#39; to get the height, width and a border around where the image should be but I am just left with the old &#39;red cross&#39; icon.&nbsp; 
<br><br>I am using Cincom Visual Works 7.4.1nc with the &#39;SeasideForWebToolKit&#39;, &#39;VisualWave&#39; and &#39;WebToolkits&#39; parcels loaded.&nbsp; <br><br>When I investigated the server created by VW: <a href="http://localhost:8008" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
 http://localhost:8008</a> and went to the configuration page for &#39;seaside&#39; the Home Directory :$(VISUALWORKS)/web/examples, was displayed which through me off track for a while as Seaside must really be overriding this path as when, just by coincidence I pressed the submit button the $(VISUALWORKS)/web/examples actually became the Home Directory (and was actually able to pick files up from there) but then none of the Seaside webpages would load and I had to reinstall a previous VW Image. 
<br><br>Could someone please set me straight as I am so frustrated?<br><br>Original Post:<br><br><span style="font-style: italic; font-weight: bold;">I am just trying to display an image in a webpage. Originally it was generated by a html file but now in Seaside (renderContentOn: html). 
</span><br style="font-style: italic; font-weight: bold;"> <br style="font-style: italic; font-weight: bold;"><span style="font-style: italic; font-weight: bold;">e.g. the image is located at:</span><br style="font-style: italic; font-weight: bold;">
<span style="font-style: italic; font-weight: bold;"> c:\Program Files\Cincom\vw7.4.1nc\web</span><div><span style="font-style: italic; font-weight: bold;">\examples</span><br style="font-style: italic; font-weight: bold;">
 <br style="font-style: italic; font-weight: bold;"><span style="font-style: italic; font-weight: bold;">With html and having the image located in the same dir as the html file I used:</span><br style="font-style: italic; font-weight: bold;">
 <span style="font-style: italic; font-weight: bold;">&lt;img src=&quot;memberMail.gif&quot; alt=&quot;Email Member&quot;/&gt; </span><br style="font-style: italic; font-weight: bold;"><span style="font-style: italic; font-weight: bold;">
Which displayed the image in web page generated by that html file.</span><br style="font-style: italic; font-weight: bold;"> <br style="font-style: italic; font-weight: bold;"><span style="font-style: italic; font-weight: bold;">
I just can&#39;t figure out how to do it in Seaside.&nbsp; I have been fine with all the other facets of converting my html files into Seaside but for some reason I can&#39;t figure this out - I&#39;m afraid I&#39;m just a beginner in Smalltalk/Seaside. 
</span><br style="font-style: italic; font-weight: bold;"><br>Cheers,<br><span><br>Dirk</span></div></span></div><div style="margin: 0px;">_______________________________________________</div><div style="margin: 0px;">Seaside mailing list
</div><div style="margin: 0px;"><a href="mailto:Seaside@lists.squeakfoundation.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">Seaside@lists.squeakfoundation.org</a></div><div style="margin: 0px;">
<a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a></div>
 </blockquote></div><br></div><br>_______________________________________________<br>Seaside mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:Seaside@lists.squeakfoundation.org">Seaside@lists.squeakfoundation.org
</a><br><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
</a><br><br></blockquote></div><br>