N342 Project  Finish

Modified

Overview 

A key project goal was to separate the programming logic from the user interface design allowing elements of each maintained in separate directories or computers.

One element of the user interface implemented for testing only (in N342 at least) consisted of XSL to display stock to buy and sell, portfolio, etc. The style sheets were named SellListContent.htm, BuyListContent.htm, etc. and were used by ASP scripts to transform XML data into HTML for viewing test results. Minor modifications to the ASP scripts will present a complete user interface rather than simple test results.

The following assignments complete the project and incorporate a complete user interface.

Assignment 1

Implement error logging in CartSummary.asp similar to the example discussed in class.

In the case of a program exception, log the error event to a log file named ErrorLog.txt in the Project directory.

Test - Test two cases:

  1. An error in CartSummary.asp - Insert an error to the style sheet, such as changing <td> to td>.
  2. No errors. Correct the inserted error.

Verify

Assignment 2

Ensure that all ASP files, except Login.asp and Registration.asp, redirect to Login.xml when Session("trader") is undefined.

Assignment 3

In BuyStock.asp and SellStock.asp, if not already done so, verify that the number of shares is greater than zero and non-blank before inserting into the cart.

Assignment 4

Modify Login.asp to redirect to Portfolio.asp on a successful login.

Verify that CartEdit.asp redirects to CartSummary.asp

Assignment 5

Test your project with a completed user interface by:

  1. Create a new directory named W:\N342\Project Test
     
  2. Copy all files from W:\N342\Project to W:\N342\Project Test
     
  3. Make one minor modification to each of the following ASP files in W:\Project Test
    • TraderSummary.asp
    • TradingPerformance.asp
    • Portfolio.asp
    • SellList.asp
    • BuyList.asp
    • CartSummary.asp

    The modification consists of changing one line in each of the files so that a full user interface is used.

    For example, in the Portfolio.asp file, comment out:

    // xsl.load(Server.MapPath("PortfolioContent.htm"));

    and replace with:

    xsl.load(Server.MapPath("Portfolio.htm"));

    Note that xsl should be consistent with the variable names used in your programs.

     

  4. Download N342 Test Project file for the user interface files; extract to W:\N342\Project Test
     
  5. Test all site functionality in IE:
    • In browser address enter:
      • http://iu-uits-eiwp1.ads.iu.edu/username/N342/Project Test/Welcome.xml
    • Register, starting with an amount of $1000.00,
    • Login,
    • Buy and sell, placing several stocks in the cart,
    • Remove several stocks from the cart,
    • Commit the cart selections,
    • Portfolio display,
    • Performance display,
    • Account display,
    • Logout.

Problems, things to try:

Verify Project.mdb exists in the Project Test directory.

Reset, forcing all users off by: http://iu-uits-eiwp1.ads.iu.edu/username/N342/Project Test/Reset.asp

Close browser and reopen.
 

Turn in - Due on the date listed in the syllabus.

OnCourse Drop Box

  1. Compress the Project Test folder.
  2. Upload Project Test.zip to your CSCI N342 OnCourse Drop Box using the Display Name of Project Test.
     

IMPORTANT