A B C D E F G H I J L M N P R S T U V W

C

CatalogItem - Class in ch7.catalog
A bean that represents an item in the catalog database.
CatalogItem() - Constructor for class ch7.catalog.CatalogItem
Creates a new instance of CatalogItem
CatalogItem(String, String, String, double) - Constructor for class ch7.catalog.CatalogItem
Non-default constructor that initialises all the fields.
CatalogItemAddress - Class in ch7.catalogAddress
 
CatalogItemAddress() - Constructor for class ch7.catalogAddress.CatalogItemAddress
Creates a new instance of CatalogItemAddress
CatalogItemAddress(String, String, String, double) - Constructor for class ch7.catalogAddress.CatalogItemAddress
 
ch2.servletController - package ch2.servletController
 
ch3.dataBean - package ch3.dataBean
 
ch3.defaultValidate - package ch3.defaultValidate
 
ch3.reorganised - package ch3.reorganised
 
ch3.sharedVariable - package ch3.sharedVariable
 
ch3.sharedVariable.error - package ch3.sharedVariable.error
 
ch3.startExample - package ch3.startExample
 
ch4.enhanced - package ch4.enhanced
 
ch5 - package ch5
 
ch5.persistentData - package ch5.persistentData
 
ch5.persistentData.configure - package ch5.persistentData.configure
 
ch5.postError - package ch5.postError
 
ch5.postServlet - package ch5.postServlet
 
ch5.requiredValidation - package ch5.requiredValidation
 
ch6.complexForm - package ch6.complexForm
 
ch6.complexInit - package ch6.complexInit
 
ch6.complexPersistent - package ch6.complexPersistent
 
ch7 - package ch7
 
ch7.accountCookie - package ch7.accountCookie
 
ch7.accountLogin - package ch7.accountLogin
 
ch7.accountRemove - package ch7.accountRemove
 
ch7.catalog - package ch7.catalog
 
ch7.catalogAddress - package ch7.catalogAddress
 
ch7.cookie - package ch7.cookie
 
chapter - Static variable in class tags.AnalogyTag
 
chapter - Static variable in class tags.FigureTag
 
chapter - Static variable in class tags.ListingTag
 
chapter - Static variable in class tags.TableTag
 
checked - Variable in class shared.HelperBaseCh6
Map of checked form elements.
clearMaps() - Method in class shared.HelperBaseCh6
Clear all the sub-maps from the checked and selected maps.
clearProperty(String, AttributeType) - Method in class shared.HelperBaseCh6
Delete the sub-map for a property.
closeFactory(SessionFactory) - Static method in class shared.HibernateHelper
Close the factory.
closeFactory() - Static method in class shared.HibernateHelper
Close the factory.
comments - Variable in class ch6.complexForm.RequestDataComplex
Variable for the textarea element.
comments - Variable in class ch6.complexInit.RequestDataInit
Variable for the textarea element.
comments - Variable in class ch6.complexPersistent.ComplexDataPersistent
Variable for the textarea element.
ComplexDataPersistent - Class in ch6.complexPersistent
Annotate the bean so that advanced HTML form elements can be saved to a database.
ComplexDataPersistent() - Constructor for class ch6.complexPersistent.ComplexDataPersistent
Creates a new instance of RequestData
configureFromFile(Configuration) - Static method in class shared.HibernateHelper
Read from the hibernate.cfg.xml file.
confirmMethod() - Method in class ch4.enhanced.ControllerHelper
The method to call when the confirm button is clicked.
confirmMethod() - Method in class ch5.persistentData.ControllerHelper
The method to call when the confirm button is clicked.
confirmMethod() - Method in class ch5.postError.ControllerHelper
The method to call when the confirm button is clicked.
confirmMethod() - Method in class ch5.postServlet.ControllerHelper
The method to call when the confirm button is clicked.
confirmMethod() - Method in class ch5.requiredValidation.ControllerHelper
The method to call when the confirm button is clicked.
confirmMethod() - Method in class ch6.complexForm.ControllerHelper
The method to call when the confirm button is clicked.
confirmMethod() - Method in class ch6.complexInit.ControllerHelper
The method to call when the confirm button is clicked.
confirmMethod() - Method in class ch6.complexPersistent.ControllerHelper
The method to call when the confirm button is clicked.
confirmMethod() - Method in class ch7.accountLogin.ControllerHelper
The method to call when the confirm button is clicked.
confirmMethod() - Method in class ch7.catalogAddress.ControllerHelper
 
contextDestroyed(ServletContextEvent) - Method in class shared.WebappListener
When the web applcation is removed from memory, close Hibernate and remove the drivers.
contextInitialized(ServletContextEvent) - Method in class shared.WebappListener
The method that is called when the web application is loaded into memory.
Controller - Class in ch2.servletController
A servlet controller contains all the Java code for an application.
Controller() - Constructor for class ch2.servletController.Controller
 
Controller - Class in ch3.dataBean
The third basic function of a controller is to process the user data.
Controller() - Constructor for class ch3.dataBean.Controller
 
Controller - Class in ch3.defaultValidate
Uses a bean to perform default validation.
Controller() - Constructor for class ch3.defaultValidate.Controller
 
Controller - Class in ch3.reorganised
A controller that uses a helper class.
Controller() - Constructor for class ch3.reorganised.Controller
 
Controller - Class in ch3.sharedVariable
Extends the controller that has the shared error.
Controller() - Constructor for class ch3.sharedVariable.Controller
 
Controller - Class in ch3.sharedVariable.error
A controller that increments a member variable.
Controller() - Constructor for class ch3.sharedVariable.error.Controller
 
Controller - Class in ch3.startExample
A more complex example that has two fields and the process page will have a button to return to the edit page.
Controller() - Constructor for class ch3.startExample.Controller
 
Controller - Class in ch4.enhanced
New features and automations have been added to the controller.
Controller() - Constructor for class ch4.enhanced.Controller
 
Controller - Class in ch5.persistentData.configure
Uses the hibernate.cfg.xml file to store the properties for connecting to hibernate.
Controller() - Constructor for class ch5.persistentData.configure.Controller
 
Controller - Class in ch5.persistentData
Saves data to a database, using Hibernate.
Controller() - Constructor for class ch5.persistentData.Controller
 
Controller - Class in ch5.postError
Controller that only handles doGet; if it is called with doPost, there will be an error generated.
Controller() - Constructor for class ch5.postError.Controller
 
Controller - Class in ch5.postServlet
Handles GET and POST requests.
Controller() - Constructor for class ch5.postServlet.Controller
 
Controller - Class in ch5.requiredValidation
Implements required validation.
Controller() - Constructor for class ch5.requiredValidation.Controller
 
Controller - Class in ch6.complexForm
Uses advanced HTML form elements.
Controller() - Constructor for class ch6.complexForm.Controller
 
Controller - Class in ch6.complexInit
Initialises the advanced form elements with previous values.
Controller() - Constructor for class ch6.complexInit.Controller
 
Controller - Class in ch6.complexPersistent
Save advanced HTML form elements to the database.
Controller() - Constructor for class ch6.complexPersistent.Controller
 
Controller - Class in ch7.accountCookie
Uses cookies to store the account number to access the database.
Controller() - Constructor for class ch7.accountCookie.Controller
 
Controller - Class in ch7.accountLogin
The user must enter a valid account number before proceeding to the edit page.
Controller() - Constructor for class ch7.accountLogin.Controller
 
Controller - Class in ch7.accountRemove
Allows a record to be removed from the database.
Controller() - Constructor for class ch7.accountRemove.Controller
 
Controller - Class in ch7.catalog
Implements a shopping cart.
Controller() - Constructor for class ch7.catalog.Controller
 
Controller - Class in ch7.catalogAddress
 
Controller() - Constructor for class ch7.catalogAddress.Controller
 
Controller - Class in ch7.cookie
Manipulate cookies.
Controller() - Constructor for class ch7.cookie.Controller
 
ControllerHelper - Class in ch3.reorganised
A helper class that can use member variables.
ControllerHelper(HttpServletRequest, HttpServletResponse) - Constructor for class ch3.reorganised.ControllerHelper
Call the base class constructor to store the request and response.
ControllerHelper - Class in ch4.enhanced
Helper that implements new features.
ControllerHelper(HttpServletRequest, HttpServletResponse) - Constructor for class ch4.enhanced.ControllerHelper
Call the base class constructor to store the request and response.
ControllerHelper - Class in ch5.persistentData.configure
Extends the persistentData controller, overriding the constructor, init, doGet and doPost.
ControllerHelper(HttpServletRequest, HttpServletResponse) - Constructor for class ch5.persistentData.configure.ControllerHelper
Call the base class constructor to store the request and response.
ControllerHelper - Class in ch5.persistentData
Initialize Hibernate and write the bean to the database.
ControllerHelper(HttpServletRequest, HttpServletResponse) - Constructor for class ch5.persistentData.ControllerHelper
Call the base class constructor to store the request and response.
ControllerHelper - Class in ch5.postError
Has doPost, but it cannot be accessed.
ControllerHelper(HttpServletRequest, HttpServletResponse) - Constructor for class ch5.postError.ControllerHelper
Call the base class constructor to store the request and response.
ControllerHelper - Class in ch5.postServlet
Contains doGet and doPost methods.
ControllerHelper(HttpServletRequest, HttpServletResponse) - Constructor for class ch5.postServlet.ControllerHelper
Call the base class constructor to store the request and response.
ControllerHelper - Class in ch5.requiredValidation
Performs required validation when new data is entered.
ControllerHelper(HttpServletRequest, HttpServletResponse) - Constructor for class ch5.requiredValidation.ControllerHelper
Call the base class constructor to store the request and response.
ControllerHelper - Class in ch6.complexForm
Calls resetNullable to clear advanced HTML form elements.
ControllerHelper(HttpServletRequest, HttpServletResponse) - Constructor for class ch6.complexForm.ControllerHelper
Call the base class constructor to store the request and response.
ControllerHelper - Class in ch6.complexInit
Call setCheckedAndSelected to initialise maps with the values from the query string for advanced HTML form elements.
ControllerHelper(HttpServletRequest, HttpServletResponse) - Constructor for class ch6.complexInit.ControllerHelper
Call the base class constructor to store the request and response.
ControllerHelper - Class in ch6.complexPersistent
Saving complex elements to a database is the same as saving regular elements to the database.
ControllerHelper(HttpServletRequest, HttpServletResponse) - Constructor for class ch6.complexPersistent.ControllerHelper
Call the base class constructor to store the request and response.
ControllerHelper - Class in ch7.accountCookie
Write the cookie when new data is saved; read the cookie when a new request is started.
ControllerHelper(HttpServletRequest, HttpServletResponse) - Constructor for class ch7.accountCookie.ControllerHelper
Call the base class constructor to store the request and response.
ControllerHelper - Class in ch7.accountLogin
The login page displays as the first page.
ControllerHelper(HttpServletRequest, HttpServletResponse) - Constructor for class ch7.accountLogin.ControllerHelper
Call the base class constructor to store the request and response.
ControllerHelper - Class in ch7.accountRemove
After data has been saved to the database, the user is given the option to remove the data.
ControllerHelper(HttpServletRequest, HttpServletResponse) - Constructor for class ch7.accountRemove.ControllerHelper
Call the base class constructor to store the request and response.
ControllerHelper - Class in ch7.catalog
Uses two beans: one for the shopping cart and one for the current item
ControllerHelper(HttpServletRequest, HttpServletResponse) - Constructor for class ch7.catalog.ControllerHelper
Call the base class constructor to store the request and response.
ControllerHelper - Class in ch7.catalogAddress
 
ControllerHelper(HttpServletRequest, HttpServletResponse) - Constructor for class ch7.catalogAddress.ControllerHelper
 
ControllerHelper - Class in ch7.cookie
Read, write, delete and find cookies.
ControllerHelper(HttpServletRequest, HttpServletResponse) - Constructor for class ch7.cookie.ControllerHelper
Call the base class constructor to store the request and response.
CookieUtil - Class in shared
A utility class to find cookies by name and return either the cookie or the value of the cookie.
CookieUtil() - Constructor for class shared.CookieUtil
 
copyFromSession(Object) - Method in class ch4.enhanced.ControllerHelper
The implementation of the abstract method from the helper base.
copyFromSession(Object) - Method in class ch5.persistentData.ControllerHelper
The implementation of the abstract method from the helper base.
copyFromSession(Object) - Method in class ch5.postError.ControllerHelper
The implementation of the abstract method from the helper base.
copyFromSession(Object) - Method in class ch5.postServlet.ControllerHelper
The implementation of the abstract method from the helper base.
copyFromSession(Object) - Method in class ch5.requiredValidation.ControllerHelper
The implementation of the abstract method from the helper base.
copyFromSession(Object) - Method in class ch6.complexForm.ControllerHelper
The implementation of the abstract method from the helper base.
copyFromSession(Object) - Method in class ch6.complexInit.ControllerHelper
The implementation of the abstract method from the helper base.
copyFromSession(Object) - Method in class ch6.complexPersistent.ControllerHelper
The implementation of the abstract method from the helper base.
copyFromSession(Object) - Method in class ch7.accountLogin.ControllerHelper
The implementation of the abstract method from the helper base.
copyFromSession(Object) - Method in class ch7.catalog.ControllerHelper
The implementation of the abstract method from the helper base.
copyFromSession(Object) - Method in class ch7.catalogAddress.ControllerHelper
 
copyFromSession(Object) - Method in class ch7.cookie.ControllerHelper
Noting to do, but it still needs to be defined, since the super class is abstract and this is the abstract method.
copyFromSession(Object) - Method in class shared.HelperBaseCh4
Abstract method that must be defined in the controller helper.
CreateCatalog - Class in ch7.catalog
Create the catalog database from four static instances of the catalog item class.
CreateCatalog() - Constructor for class ch7.catalog.CreateCatalog
 
CreateCatalog - Class in ch7.catalogAddress
 
CreateCatalog() - Constructor for class ch7.catalogAddress.CreateCatalog
 
createFactory(Properties, List<Class>) - Static method in class shared.HibernateHelper
Create the session factory.
createTable(Properties, Class...) - Static method in class shared.HibernateHelper
Create a temporary session factory to create the tables.
createTable(Class...) - Static method in class shared.HibernateHelper
Overloaded for no properties.

A B C D E F G H I J L M N P R S T U V W