How to submit (and run) your labs via the web


How to submit your labs via the web
and
How to show your labs running on the web:

We have set up a web page to "collect" your labs and email addresses so that we can collect your labs and they can be graded and information returned to you in a timely manner.

Please do the following to submit labs:

Fill in the information (name, email address, lab number, address to your URL (web page))

Submit it. If you are a video or web student please send me email as well.


For CSCI 311 folks

If the lab was presented on a browser, on the page provide at least

If you are familiar with html and Java GUIs, then the information below is not necessary.

If you had originally written an application, and are not familiar with GUIs, then the shell to convert your application to run on the web has been provided for you below.

Steps to take to see your programs run on the web.

Please start doing this rather than applications

(it is easier to grade, submit, gives you more of a taste of Java)

To get set up

On the web

  1. go to:
    http://www.ecst.csuchico.edu/~amk/foo/csci311/shells/Shell.html

    First, use it to see how it works.

    This is where your standard output will go when you use System.out.println()

    copy this page (i.e., the Shell.html file that you link to above):

    I renamed it SimpleIndex.html . You need this html code to make the applet run on the web. Right now the page looks like this:

    You will want to edit later the title (Start button will run the doMain() method) with your own information (Like: Lab 2) ... and your source file should be what your source file links to.

  2. Later, in your csci 311 web page index.html file you will want to add a line with <a href="SimpleIndex.html"> Lab 2 </a>
    or you can just tell us when you submit the lab where this submission page is

  3. Now, click on the source link at this page to see the source code. Copy this page.

    This page is called Shell.java and this is a fine name, but make sure when you save it you save it to the directory of the web page where you will want to run your program.

    It looks like this:

    IMPORTANT
  4. Steps for you to do with YOUR programs to make them run on this shell class:

    Remember how you had a Main with nothing in it but main(String[] args)?

    You will edit the above code in Shell.java and

    1. anything you imported in your Main class, you should import in this Shell class as well.

    2. put your code for your main() but call it something other than main (like doMain)

    Make sure these doMain () have the same arguments. So far we have not passed anything into our programs so they should be (). Specifically, anything in the doMain() method is your code for your program

    Basically, you can now trash your Main and use this instead.

    Your output will show on the Java Console on the web, and in your console window (stdout) when you use appletviewer.

  5. Finally, you DO need to still compile your .java files and this Shell.java class. This shell will do your doMain method when you click start but it will need to be able to find your files (so they should be compiled and located in the same directory where this Shell.html is running from)

  6. Permissions: