In this course, students upload assignments to their websites hosted on the coislinux.austincc.edu server (in addition to submitting to Blackboard (Bb)). Each student is supplied with a password protected account to access their individual websites. Sample account credentials are supplied in the strip below. Access your Website Credentials in Bb via Tools My Grades Website Credentials and simply click the graphic. Or, select the drop down arrow that appears when you hover over the area. The username is in yellow and the password is in blue. The username and password are used to access your site in two ways. First, files and directories are uploaded and maintained on the site via an SSH client (e.g. WinSCP, CoreFTP, FileZilla). WinSCP is used throughout this document and the course. Second, site pages are viewed/tested via a browser. Again, username and password credentials are required for both uploading and viewing. (Note: the username may be the same for your ACC lab account with no u. However, if you have a lab account that is different from your website credentials, that is not a problem. Username equality between the lab and website accounts is a convenience but not a requirement.) In the box below, the ssh client line is used to access the site to upload files and directories. Instructions for using WinSCP are provided below. The http browser line is placed in the URL address box of a browser to view your site. The index.jsp file you will place in your tomcat folder will be served back to the browser. All of your work in the class should be uploaded to your tomcat folder. More on that later. The steps to setup and publish to your student website are listed below. There are a number of ways to accomplish site setup and publishing. However, as with any set Page 1 of 8
of progressive computer directions, it is imperative that the instructions be implemented correctly are depicted. Take your time, the steps can be performed in a few minutes and become second nature after practice. 1. Download WinSCP from: http://winscp.net/eng/download.php?utm_source=winscp&utm_medium=app&utm_campaign=5.1.7 You choose either the Installation package or Portable executables. The first choice installs WinSCP on your machine but the second option just supplies an executable which can be used on a flash drive or ported to other machines. Either option will work fine. With the Portable executables option, the winscp.zip folder will be downloaded to your download location. It contains the 4 files listed. 2. Right-click the winscp.zip folder and Extract All the contents to the location of your choice. Page 2 of 8
3. Double-click WinSCP.exe to start the application. Enter the host name (green star), user name, and password information identified. Recall this information is supplied in the Website Credentials box above. 4. Select the Login button when ready to access your site. WinSCP should then display your home directory in the right pane as depicted below. If the right pane is not like that shown, then navigate to the path in purple: /home/itse47444/u4744403 in the case below (which will correspond to your website credentials). Recall that all course uploads should be published to your tomcat directory (highlighted below). Page 3 of 8
5. Double-click to open your tomcat directory. Notice the index.jsp file in the directory below. You will upload this file in addition to your asg09.war and other assignment.war files. You can access your tomcat directory via a browser using a link like that below (with the appropriate user name in the URL). http://cois-linux.austincc.edu:8080/itse47444/u4744403/tomcat/ 6. The output of the index.jsp page is displayed below. Page 4 of 8
Each of the directory links above will access the index.jsp files within the appropriate directory. More on this in following sections. 7. The HTML contents of the index.jsp file are shown here. Change the text Your Name Here. After adding your name, replace the index. jsp file on your site via the upload steps described below. 8. When ready to deploy your first index.jsp file and each assignment, simply select the index.jsp file (or.war file for assignments) in the local directory on Page 5 of 8
the left and select the Upload button highlighted below. Drag-n-drop from left to right also works. Note: creation of the.war file and general use of an IDE for JSP web development is covered in the document NetBeans Primer in the JSP assignments section in Bb. 9. It is highly recommended that you do not download (move files from right to left). To preserve site and development contents, site updates should only be performed from the local machine to the production server (from left to right). Also, remember to backup your local work frequently. 10. After the asg09.war file has been uploaded to the server in your tomcat directory, Tomcat will automatically unpack the asg09.war file and publish the site in the asg09 directory. Page 6 of 8
11. Unpacking and publishing of.war files usually occurs within 30 seconds. Press the refresh button above the remote panel (on the right) to check for the new directory. Note: when a.war file of the same name as an existing site is added to your home directory, the current site is removed and new site with the same name is published. With that point in mind, by the end of the course, you should have 4.war files asg09-asg12.war in your home directory. And Tomcat will have created 4 directories asg09-asg12 also. If a site is auto-deployed, then that.war file should remain in the tomcat directory as long as you want the site deployed. In other words, if a.war file is removed, tomcat will also remove the associated directory. Page 7 of 8
12. The asg09 application can now be accessed/viewed by: http://cois-linux.austincc.edu:8080/itse47444/u4744403/tomcat/asg09 13. The URL above will access the index.jsp file in the asg09 directory. All of your assignments must include a index.jsp file in the asg## directory to perform correctly. Remember to TEST all assignments sufficiently to confirm proper operation. Your professor will access your work via the same link above. If your web application does not pass verification testing or does not meet assignment requirements for you, it will not pass professor verification and requirements confirmation. Page 8 of 8