CSCI 4300 Web Programming Final Exam 100% Correct
textContent property - ANSWER sets or returns the textual content of the node and its
descendants
value property - ANSWER sets or returns the value of an attribute
DOM Event Model 0 - ANSWER Event handlers are added as attributes to elements in
this model
page loading event - ANSWER: happens when an object has been loaded; it can be
used to check for the visitor's browser type and browser version, and may load the
proper version of the web page depending on the info
UI event - ANSWER: generated by user input devices, mouse click, keyboard stroke,
etc.
EventTarget interface - ANSWER DOM object representing element that handles the
event element/document/window = most common targets
Event interface - ANSWER represents any event which takes place in the DOM
Event target attribute - ANSWER a read-only attribute that acts as a reference to the
target to which the event was originally dispatched
EventListener - ANSWER created object that actually handles the event
addEventListener() - ANSWER adds an event listener to the specified element
,handleEvent() - ANSWER called by the browser when an event of the specified type is
dispatched by an EventTarget object
event bubbling - ANSWER the event is first captured and handled by the innermost
element and then propagated to outer elements
asynchronous ANSWER a script will send a request to the server, and continue its
execution without waiting for the reply
Tomcat ANSWER web server and servlet container used to deploy and serve Java web
applications
webapps ANSWER directory where web applications are stored
WEB-INF - ANSWER directory that contains all things related to the application that
aren't in the document root of the application
WEB-INF/classes - ANSWER this directory and its subdirectories contain the servlets
and other java classes for your application. Each subdirectory must correspond with the
package for the Java class
WEB-INF/lib - ANSWER this directory contains any JAR files that contain Java class
libraries that are used by the web application
Java Server Page - ANSWER store the HTML that defines the user interface
request object - ANSWER provides data including parameter name and values,
attributes, and an input stream
ServletRequest class - ANSWER defines an object to provide client request information
to a servlet
, request.getParameter() - ANSWER returns the value of a request parameter as a String,
or null if the parameter does not exist
Expression Language - ANSWER makes it easily possible to access application data
stored in JavaBeans components
JavaBean - ANSWER classes that encapsulate many objects into a single object (the
bean)
serializable - ANSWER allows the bean to have its state saved, stored, and restored by
the application and framework in a VM and platform independent way
no-arg constructor - ANSWER allows for easy instantiation by editing and activation
frameworks
JSP Standard Tag Library - ANSWER includes support for common, structural tasks
such as: iteration and conditionals, tags for manipulating XML documents,
internationalization tags, and SQL tags
forEach - ANSWER basic iteration tag, accepts many varied collection types, supports
subsetting, etc. (implements for loops in JSP)
JSTL prefix - ANSWER a tag you use when you import the JSTL libraries, which lets you
identify what type of JSTL tag you are using
JSP Scriptlet - ANSWER <% tag to write inside of JSP looks like this %>
JSP Expression Scriptlet - ANSWER <%= code written to the output stream of the
response; mainly used to print the values of variables / methods %>
session scope - ANSWER makes variable available to the developer for the current
session only
textContent property - ANSWER sets or returns the textual content of the node and its
descendants
value property - ANSWER sets or returns the value of an attribute
DOM Event Model 0 - ANSWER Event handlers are added as attributes to elements in
this model
page loading event - ANSWER: happens when an object has been loaded; it can be
used to check for the visitor's browser type and browser version, and may load the
proper version of the web page depending on the info
UI event - ANSWER: generated by user input devices, mouse click, keyboard stroke,
etc.
EventTarget interface - ANSWER DOM object representing element that handles the
event element/document/window = most common targets
Event interface - ANSWER represents any event which takes place in the DOM
Event target attribute - ANSWER a read-only attribute that acts as a reference to the
target to which the event was originally dispatched
EventListener - ANSWER created object that actually handles the event
addEventListener() - ANSWER adds an event listener to the specified element
,handleEvent() - ANSWER called by the browser when an event of the specified type is
dispatched by an EventTarget object
event bubbling - ANSWER the event is first captured and handled by the innermost
element and then propagated to outer elements
asynchronous ANSWER a script will send a request to the server, and continue its
execution without waiting for the reply
Tomcat ANSWER web server and servlet container used to deploy and serve Java web
applications
webapps ANSWER directory where web applications are stored
WEB-INF - ANSWER directory that contains all things related to the application that
aren't in the document root of the application
WEB-INF/classes - ANSWER this directory and its subdirectories contain the servlets
and other java classes for your application. Each subdirectory must correspond with the
package for the Java class
WEB-INF/lib - ANSWER this directory contains any JAR files that contain Java class
libraries that are used by the web application
Java Server Page - ANSWER store the HTML that defines the user interface
request object - ANSWER provides data including parameter name and values,
attributes, and an input stream
ServletRequest class - ANSWER defines an object to provide client request information
to a servlet
, request.getParameter() - ANSWER returns the value of a request parameter as a String,
or null if the parameter does not exist
Expression Language - ANSWER makes it easily possible to access application data
stored in JavaBeans components
JavaBean - ANSWER classes that encapsulate many objects into a single object (the
bean)
serializable - ANSWER allows the bean to have its state saved, stored, and restored by
the application and framework in a VM and platform independent way
no-arg constructor - ANSWER allows for easy instantiation by editing and activation
frameworks
JSP Standard Tag Library - ANSWER includes support for common, structural tasks
such as: iteration and conditionals, tags for manipulating XML documents,
internationalization tags, and SQL tags
forEach - ANSWER basic iteration tag, accepts many varied collection types, supports
subsetting, etc. (implements for loops in JSP)
JSTL prefix - ANSWER a tag you use when you import the JSTL libraries, which lets you
identify what type of JSTL tag you are using
JSP Scriptlet - ANSWER <% tag to write inside of JSP looks like this %>
JSP Expression Scriptlet - ANSWER <%= code written to the output stream of the
response; mainly used to print the values of variables / methods %>
session scope - ANSWER makes variable available to the developer for the current
session only