











Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
A comprehensive review of key concepts and definitions related to web programming, covering topics such as the dom, event handling, server-side technologies like tomcat and java server pages, and fundamental javascript concepts. It serves as a valuable resource for students preparing for a final exam in a web programming course.
Typology: Exams
1 / 19
This page cannot be seen from the preview
Don't miss anything!












textContent property - ANSWER sets or returns the textual content of the node and itsdescendants
value property - ANSWER sets or returns the value of an attribute DOM Event Model 0 - ANSWER Event handlers are added as attributes to elements inthis model
page loading event -used to check for the visitor's browser type and browser version, and may load the ANSWER: happens when an object has been loaded; it can be proper version of the web page depending on the info UI event -etc. ANSWER: generated by user input devices, mouse click, keyboard stroke,
EventTarget interface - ANSWER DOM object representing element that handles theevent 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 thetarget 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 isdispatched by an EventTarget object event bubbling - ANSWER the event is first captured and handled by the innermostelement and then propagated to outer elements
asynchronousexecution without waiting for the reply ANSWER a script will send a request to the server, and continue its
Tomcatapplications ANSWER web server and servlet container used to deploy and serve Java web
webapps ANSWER directory where web applications are stored WEB-INF -aren't in the document root of the application ANSWER directory that contains all things related to the application that
WEB-INF/classes -and other java classes for your application. Each subdirectory must correspond with the ANSWER this directory and its subdirectories contain the servlets package for the Java class WEB-INF/lib - ANSWER this directory contains any JAR files that contain Java classlibraries 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 informationto a servlet
request scope -developer ANSWER makes available for current request only for a variable to
application scope - ANSWER makes the variable available for the full application to thedeveloper
taglib directive - declares that your JSP page uses a set of custom tags, locates thelibrary and provides means to identify the custom tags in your JSP page
page directive - ANSWER used to provide instructions to the container that pertain tothe current JSP page
reload application - ANSWER restart a deployed, running Web application so that theapplication can pick up changes to its classes or libraries
restart Tomcat - ANSWER sudo service tomcat6 restart chown command - ANSWER used on Unix-like systems to change the owner of filesystem files, directories
getter method - ANSWER returns the value of the private member variable in OOP inkeeping with principles of encapsulation
setter method ANSWER used to control changes to a variable in OOP in keeping withprinciples of encapsulation Servlet -to user input ANSWER a small server-resident program that typically executes in response
Java Server Page: ANSWER contains the HTML that defines the user interface; thisusually includes links to CSS and JavaScript for the UI.
Java EE: ANSWER describes how web servers can interact with all the Java webtechnologies including servlets, JSPs, JSF, JPA and EJB.
Servlet.JSP engine - ANSWER forwards requests from a client to a JSP page andresponses from the JSP page to the client
web server - ANSWER a program that uses HTTP to serve the files that form Web pagesto users, in response to their requests, which are forwarded by their computers' HTTP clients Java Development Kit (JDK) - ANSWER is the software development environment usedto develop Java applications and applets. It includes JRE, an interpreter/loader called java, a compiler called javac, an archiver called jar, a documentation generator calledjavadoc, and other tools that are needed in Java development.
JavaBean - classes that encapsulate many objects into a single object (the bean); theyare serializable; have a zero argument constructor and can access properties by using getters and setters. WEB-INF directory - contains a heirarchy in which you'll find the necessaryconfiguration information for your web application, and all the class files for your servlets and classes that are called up by your JSPs (Java Server Pages) document root directory - ANSWER a directory (or a folder) that is stored on your host'sservers and that is designated for holding web pages
JAR file A package file format typically used to aggregate many Java class files andassociated metadata and resources (text, images, etc.) into one file for distribution
WEB-INF/classes A subdirectory that stores your compiled.class files for a webapplication
window object - ANSWER Built-in JS object representing the window containing adocument that is being rendered
document object -the DOM ANSWER Used to write text into the document and is the gateway to
regular expression -perform pattern-matching and "search-and-replace" functions on text ANSWER an object that describes a pattern of characters; used to
incrementing - ANSWER adds one to its operand and returns the value case insensitive a programming language which does NOT distinguish between capitaland lowercase letters; JS is case sensitive
console a method that shows data in JavaScript constructor a special method for instantiating an object created within a class new used to create an instance of a user-defined object type or of one of the built-inobject types which has a constructor function
this - ANSWER in JavaScript.
JSON (JavaScript Object Notation) -a browser and a server ANSWER helpful when exchanging data between
user event -through event detection (examples include: onclick, onchange, onmouseover, onload, ANSWER something that is detected by OS and delivered to browser etc.) page loading -loading ANSWER an event type that can be detected when the web page is done
onclick attribute - ANSWER fires on a mouse click on the element tagName - ANSWER returns the tag name of the element. window object: A window object - ANSWER represents an open window in a browser. document object: a platform and language-neutral interface, document object- ANSWERprovides access and can manipulate the content, structure, and style of a document dynamically. interface: a device or program allowing a user to communicate with a computer,interface- ANSWER
node - ANS the root interface for the DOM document tree → "Every Element is a Node" firstChild - ANS returns the first child node of a node, as a Node object. parentNode - ANS returns the parent node of a node, as a Node object childNode - ANS returns a collection of a node's child nodes, as a NodeList object. sibling -DOM tree ANSWER nodes having the same parent, and hence at the same level in the
specified value. nodeType - ANSWER returns the node type, as a number, of the specified node. TextNode - ANSWER represents textual content in an element or attribute ANT project ANSWER Java-based build tool from Apache; automates and simplifiestasks like (1) compiling code, (2) packing the binaries, (3) deploying binaries to test server, (4) testing changes, and (5) copying code from one location to another project default -file ANSWER the target we want to eventually reach in our ANT build.xml
target - ANSWER a group of tasks that you want to run as one unit Javac task - ANSWER things that must succeed to reach a target JUnit task - ANSWER runs tests from the JUnit testing framework mv task - ANSWER moves a file to a new file or directory, or collections of files to a newdirectory
copy task - ANSWER copies a file or resource collection to a new file or directory target depends attribute - ANSWER targets can depend on other targets and ApacheAnt ensures that these other targets have been executed before the current target
classpath -be required to execute a task ANSWER a classpath can be specified to use for Java classes which may
pathelement -nested element can be used ANSWER wherever there is a requirement to specify a path-like value, a
nested element - ANSWER an element within an element JAR file - ANSWER a package file format typically used to bundle many Java class filesand associated metadata and resources (text, images, etc.) into one file for distribution
ANT common library - ANSWER directory containing JAR files that ANT may be using TestCase class - ANSWER an abstract class defined in the JUnit library that defines thefixture to run multiple tests
AssertEquals() -case ANSWER a method useful in determining Pass or Fail status of a test
deploy target -build.xml file ANSWER used to deploy our code to the web server; located in ANT
Servlet -through web page forms, present records from a database or another source, and ANSWER Java classes that return HTML; you can collect input from users create web pages dynamically web.xml file -entries in this file ANSWER You declare servlets as part of a Web application in several
servlet-mapping tag - ANSWER maps URLs to servlets servlet tag - ANSWER declares the name and class of the servlet doGet() -not change state of server and no sensitive info is sent ANSWER use this when you want to intercept on HTTP GET requests; does
attribute - ANSWER describe the instances in the row of a database Database Management System - ANSWER software that handles the storage, retrieval,and updating of data in a computer system
records - ANSWER composed of fields, each of which contains one item of information fields - ANSWER data that has several parts (records) can be divided into these JDBC driver - ANSWER a Java class containing Java objects to a particular DBMS DriverManager -JDBC drivers ANSWER class providing the the basic service for managing a set of
Class.forName() method -which extends DriverManager ANSWER use this method to dynamically load the driver
ClassNotFoundException thrown by the Java Virtual Machine (JVM) when it tries to loada particular class and does not find the requested class in the classpath
SQLException an exception that provides information on a database access error orother errors
throws keyword that declares an exception PreparedStatement used for executing a parameterized query connection - ANSWER needed to connect to the data source that we will be using
ResultSet -usually generated by executing a query to the database ANSWER a table of data representing a database result set, which is
executeQuery - ANSWER returns ONE ResultSet executeUpdate -by the SQL statement ANSWER returns an integer indicating the number of rows affected
Java Database Connectivity -DBMS ANSWER API for Java objects to communicate with any
MySQL - ANSWER open source DBMS to communicate with any DBMS SQL Injection attack -applications, in which nefarious SQL statements are inserted into an entry field for ANSWER a code injection technique, used to attack data-driven execution HTML -creating web pages ANSWER HyperText Markup Language; standard markup language for
HTTP -clients (browsers) and servers ANSWER HyperText Transfer Protocol; used to communicate between Web
DOCTYPE -an instruction to the web browser about what version of HTML the page is written in ANSWER
HTML Transitional -expects to phase out as support for style sheets matures ANSWER includes presentation attributes and elements that W3C element - ANSWER specify the content of a web page
HTML TR - ANSWER HTML table row HTML TD - ANSWER standard cells - contains data hence the "D"div element - ANSWER - defines a division or a section in an HTML document span element - ANSWER - used to group inline-elements in a document, but provides novisual change by itself.
URL - ANSWER - the address of a web page input name attribute - ANSWER - specifies the name of an element; is used toreference form data after a form is submitted
input value attribute -differently for different input types: For "button", "reset", & "submit" - it defines the text ANSWER specifies the value of an element; used on the button. start tag - ANSWER first tag in a pair end tag - ANSWER second tag in a pair W3C -international community where Member organizations, a full-time staff, and the public ANSWER World Wide Web Consortium - work together to develop Web standards WHAT-WG -community of people interested in evolving HTML and related technologies ANSWER The Web Hypertext Application Technology Working Group - a
well-formed - ANSWER web design element that is properly designed and ordered valid -standards ANSWER means the document adheres to formal standards such as W3C
CSS - ANSWER Cascading Style Sheets; controls the layout of multiple web pages all atonce
selector - ANSWER part of a CSS rule set that actually selects the content you want tostyle
property - ANSWER i.e. font-size, text-align, etc. property value - ANSWER the value that is specified after a property is defined i.e. font-size:12px (where 12px is the property value) HTML style tag -browser ANSWER tag used to define how HTML elements should render in a
HTML link tag -resource ANSWER tag that defines a link between a document and an external
external stylesheet - ANSWER used to define the style for many HTML pages inline style - ANSWER can be used to apply a special style for one HTML element; cancontain any CSS property
CSS font family - ANSWER specifies the font for an element
CSS visibility - ANSWER sets whether or not an element is visible border-collapse -border or be separated as in standard HTML ANSWER sets whether table borders should collapse into a single