This class provides access control for all requests in the Project
Billboard application, by looking for the authentication token in
the session and forwarding to the login page if not found.
Converts the specified String value to the setter methods parameter
type, if possible, and returns it as an Object array suitable as
the argument to the Method.invoke() method.
This class is a custom action for writing the content of the
action element's body to a file specified by an attribute,
or to System.out if no file is specified.
This class is a wrapper around a Connection, overriding the
close method to just inform the DataSourceWrapper that it's available
for reuse again, and the isClosed method to return the state
of the wrapper instead of the Connection.
Processes the current input, meaning adding digits, performing
the requested operation, and saving the accumulated
the number, as described in the class comment.
cart -
Variable in class com.ora.jsp.beans.shopping.CartBean
Makes the next element available to the body in a variable
with the name specified by the loopId attribute, or returns
SKIP_BODY if all elements have been processed.
Writes the requested type of debug info to the sources
specified by the "debug" request parameter: "resp" for
response, "stdout" for System.out, and "log" for the
application log file.
Writes either the body content as-is or enclosed in an HTML link
element to the current JspWriter, depending on if the request URI
matches the page attribute value or not.
Writes either the body content as-is or enclosed in an HTML link
element to the current JspWriter, depending on if the request URI
matches the page attribute value or not.
Executes the specified SQL string (any statement except SELECT, such
as UPDATE, INSERT, DELETE or CREATE TABLE) and returns
the number of rows affected by the statement, or 0 if none.
This class is a custom action for writing the content of the
action element's body to a file specified by an attribute,
or to System.out if no file is specified.
This class is a custom action for creating HTML select lists,
checkboxes or radio buttons, where some items need to be
marked as selected based on dynamic data.
This class is a custom action for invalidating a session,
causing all session scope variables to be removed and the
session to be terminated (marked as invalid).
Returns true if the string is in the format of a valid SMTP
mail address: only one at-sign, except as the first or last
character, no white-space and at least one dot after the
at-sign, except as the first or last character.
This is an example of a bean with one writeable property for
selecting a message category and one readable property that
cycles through messages in the selected category.
Creates a new NewsItemBean and sets its properties based
on the "category" and "msg" request parameters, plus
the firstName and lastName properties of the authenticated
user (an EmployeeBean accessible as the "validUser" session
attribute).
This class manages the resources used by the Project Billboard
application, creating them and making them available when the
application starts and removing them when the application is
shut down.
This class manages the DataSource resource for a fictious
application, creating an Oracle DataSource with pooling capabilities
and makes it available when the application starts and removes it
when the application is shut down.
This class contains a number of static methods that can be used to
validate the format of Strings, typically received as input from
a user, and to format values as Strings that can be used in
HTML output without causing interpretation problems.