Package net.commerce.zocalo.JspSupport

Support for generating web pages using JSP (Java Server Pages).

See:
          Description

Interface Summary
MockHttpServletRequestI  
MockHttpServletResponseI  
 

Class Summary
AccountCreationScreen A screen that allows users to create new accounts.
AccountDisplay support for a JSP page that displays a user's accounts.
AccountDisplay.DefaultPositionDisplayAdaptor  
ClaimPurchase support for a JSP page for trading.
ExperimenterScreen Jsp support for Experimenter's screen in experiments.
ExperimentPage Support for JSP pages that support experiments.
JudgeScreen Jsp support for Judge's screen in the GMU experiment.
LoginScreen Support for the JSP login page for the GMU Experiment.
MarketCreation support for a JSP page for creating new Markets.
MarketDisplay support for a JSP page displaying markets in a market group.
NamedUserPage  
ReloadablePage  
TradeHistory TradeHistory displays trading history in a tabular form.
TraderScreen Jsp support for Trader's screen in experiments.
TradeSupport Common support for JSP pages that support trading.
UserPage  
WelcomeScreen  
 

Package net.commerce.zocalo.JspSupport Description

Support for generating web pages using JSP (Java Server Pages). These classes support both the lab experiment configuration and the prediction markets. The hierarchy organizes these classes according to the user's representation. ReloadablePage is the abstract base class for all the classes that support html page generation. Its only concrete subclass is ConfigEditor, which has no user model currently. Abstract subclasses NamedUserPage and UserPage support pages whose users are represented respectively by their name or a SecureUser object. NamedUserPage has two abstract subclasses, ExperimentPage which supports the jsp pages for experiments, and LoginScreen, which supports the screens that allow users to create an account (AccountCreationScreen) or login (WelcomeScreen). (They need a user model in order to display error messages during the process.) TradeSupport is used by both ClaimPurchase and TraderScreen, and some methods useful for trading.

ServerUtil is the parent of classes that read config files, while ServletUtil provides support for classes that configure jetty servers to handle servlets, etc.

The JSP screens for experiments include ExperimenterScreen (Experimenter's control console), TraderScreen (traders and manipulators), and JudgeScreen (judges).

The Prediction Markets are supported by AccountDisplay (account status and holdings), MarketDisplay (access to active and closed markets), ClaimPurchase (trading in a market), MarketCreation (creating new Markets), and TradeHistory (reviewing past trades). AllMarkets is the main() entry point for the prediction markets, and provides access to the database and configuration info.

Two Interfaces are here to support testing.

© Copyright 2007, 2008 Chris Hibbert; © 2006 CommerceNet Consortium, LLC. All rights reserved.

This software is published under the terms of the MIT license, a copy
of which has been included with this distribution in the LICENSE file.