Download "user manual"
Transcript
/** get the possible origins form the Origin table @return Vector with the possible origins **/ public Vector getOriginList(); /** gets the destinations from the Destination table @return Vector with the possible destinations **/ public Vector getDestinationsForOrigin(String origin); /** get the price for the journey from the destination table @return an integer with the amount public int getJourneyPrice(String origin, String destination); /** Set the configuration for the service. The method is used for external configuration of the service. The new configuration information is used to update our current configuration, and that new current configuration is saved via the ConfigurationAdmin service @param props The new configuration properties */ public void setConfig(java.util.Dictionary config ); /** Return a copy of our current configuration @return Dictionary A copy of our current configuration values */ public Dictionary getConfig(); 13.4.3 Create the servlet The heart of the application is the TicketingServlet, which controls the application flow and drives the interaction between the application and the user (in this case a train conductor). Within the ITSO Railways Ticketing Web Application project open the JavaSource and then open and select the com.ibm.itsorailways.client.gui.servlet package we already created. From the Toolbar menu select File → New → Other. In the New wizard select Web in the left window and Servlet in the right window. Give the new servlet the name TicketingServlet and click Finish. The doRequest() method provides the control flow for the application. Each user request is a parameter, which is put into the string named action. The action is used to inform the servlet of the user’s response to the screen previously displayed. The possible action values are: SelectOrigin SelectDestination PurchaseTickets Chapter 13. Using Workplace Client Technology, Micro Edition 299
Related documents
Strong Sound Wave Fat System
Cadillac 2010 DTS Automobile User Manual
Cadillac 2008 STS-V Automobile User Manual
"user manual"
Clear MODEM with Wi-Fi User guide
view personalization guide
Cadillac 2008 STS-V Automobile User Manual
CONVENIENCE/PERSONALIZATION GUIDE
Extend360 User Guide
Cadillac 2014 CUE User guide
IF5 Fixed Reader User`s Manual
Cadillac 2010 Escalade EXT Automobile User Manual