Hotspots: Admin Pages | Turn-in Site |
Current Links: Cases Final Project Summer 2007
How to make 'http://localhost:8008/' work(Step by Step) - Hanbyul Kim
(This is Based on Cincom VisualNC version 7.7)
1. How to connect to localhost:8008
1)Open VisualNC. Then click on "System" on the menu bar.
2)Select "Load Parcels Named..."
3)We need to find "WebToolkit" from the list, so type "web", then it is the second from the end.
4)Once you select the parcel, it will be loaded to your program. As the picture below shows you are going to see an additional icon on your menu. Click on it.
5)You will see the picture below. Now it is time to create server. Click "Create Server"
6)After clicking the button, you will see the following window. This is the window to create your server. Now click on "Server Type" drop down menu.
7)To create localhost we need to choose "Smalltalk HTTP Server (Tiny HTTP)". Click on it.
8)Now, fill the Hostname as "localhost", and Port as "8008". Then, hit "Create and Start" Button
9)Yay! The server is created. Super Easy! you can see the server is active!!(Green Circle)
2. How to show your web design at the local host
1)So What? Now you need to show what you have designed. Open your Internet Browser and type "http://localhost:8008/" for the web address. When you use Internet Explorer make sure you type in "http://". It doesn't automatically change "localhost:8008" into "http://localhost:8008/", so you might see error message.
Once you type in the web address, you will see the following picture.
2)We just got access for the localhost. So now it's time to create your web page. Click on "Manage Sites" and then you will see the following picture. To create a website, first of all, you need to place whatever web code you have under "web" folder. The folder exists under where you installed your VisualNC program. Then, you need to put your site name. In my case I will say 'sandbox'(it can be anything you want). After putting the name on it click on "Create New Site".
3)Now this is very last step to see your webpage. Before doing anything, please create a file named "hello.ssp"(This is a test file), and type the following for the code.
<title>Bob's Test Page</title>
<h1>Welcome to My Webpage!!</h1>
The date today is <%=Date today%>
The code is based on HTML and
%> are for smalltalk code. HTML is used for designing the web page, and then the smalltalk code is the actual code that makes it work!
After saving "hello.ssp" file under the 'web' folder mentioned earlier, fill in the blank as follow. On 'Configuration File:' section, it is set as nil as basic, but MAKE SURE YOU ERASE IT, or you will get 'Site Configuration Error'.
4)Once you click on submit button, you will see the following(Other than "hello.ssp", you see a lot more files here. They are for the website I really need to create later so don't worry!)
On this page, click on 'hello.ssp'.
5)Yay! If you can see this webpage, it is done! The date should be the current day for you!
Link to this Page
- Cases last edited on 30 July 2011 at 2:33 am by r59h132.res.gatech.edu