Survey
* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
Java and the Web Blanca Polo Connecting (review) The “Host Name” should be uhunix2.its.hawaii. edu The “User Name” should be your username/UH Select login name. “Password” as the Authentication Method Do not modify the Port Number, leave the 22 in there Once you have done all of the above, you can connect to UHUNIX by clicking “Connect” Storing Information This directory will contain the files that can be displayed in a browser. public_html Local Files Unix Files The public_html directory creation and all the permit modifications needed will be done automatically for you when you follow the steps in the next slide to create a generic web page. Do it that way so you will not experience any problems. A generic page Follow the steps at: https://sunsys.its.hawaii.edu/acctmgmt/ Lets try it !!! The public_html directory Default web access directory/folder The default file is: index.html Your URL Your username http://www2.hawaii.edu/~username The file placed in the public_html directory The file name is index.html Another filename? http://www2.hawaii.edu/~username/filename.html Also placed in the public_html directory. Create your java file Do it in UNIX, just as you do when you write any other java program BUT write it in the public_html directory. To change directory use the cd command: cd public_html To go back to the root directory: cd Compile your java file Do it also in the public_html directory. Change the properties of the class file to 644 Change the properties of the html file to 644 chmod 644 file.java chmod 644 file.html Substitute file for the filename that you use HTML tags Header Parragraph H1, H2, H3 … H6 example <h1>text </h1> <p> text</p> Link <a href=“url goes here”>text </a> Lets try it !!! The applet tag <applet CODE="YourClass.class" WIDTH=www HEIGHT=hhh IGNORE=""></applet> Substitute www and hhh for your own width and height. Substitute YourClass.class with the name of your own class. The Applet tag should be regarded as any other html tag inside your HTML page. Change folder/directory permits public_html Local Files Unix Files Properties of the public_html directory should be 711 Change file permits public_html Local Files Unix Files Properties of the files (for public access) should be 644. If file properties are 600, they will not be visible and the browser will show forbidden error Links to Visit GENERAL INFORMATION http://www.hawaii.edu/infotech/ http://www.hawaii.edu/infotech/thewww.html USABILITY http://www.useit.com/ HTML http://www.hawaii.edu/itsdocs/net/htmlprimer/ http://www.hawaii.edu/itsdocs/net/htmlcodes/ Questions? E-mail Blanca Polo at [email protected],