Web technologies/2014-2015/Questions 1
PARTIAL I
edit- Structure of distributed applications (par. 1.3 of course) in Java EE.
- Container types in Java EE (par. 1.9.2).
- Java Server Faces Technology (par. 1.11.5).
- Structure of an HTTP request.
- Structure of an HTTP response.
- List the eight HTTP commands (methods).
- List the five HTTP status codes (plus their value).
- What is the difference between HTTP and HEAT methods?
- Write the code for a <SELECT> element with five options, the fourth one being the one selected.
- What are the mandatory attributes for <FORM> and what does it mean?
- List possible types of HTML element <INPUT>.
- Write the HTML code for a 2-line and 3-column table with the first extended cell on 2 lines and the last expanded cell on 2 columns.
- List the types and give examples of code for pop-up boxes in JavaScript.
- Specify some objects (minimum 6) in the JavaScript hierarchy of the objects attached to the browsers and their relationship (content) (see 5.10).
- Specify the predefined JavaScript objects.
- Write the creation code of an XMLHttpRequest object (for IE and Mozilla).
- Write the login code and send a POST request through an XMLHttpRequest object.
- Write (in JavaScript) the validation code of a phone number of an individual in the UK (cover variants from 369110 to + 40-256-369-110) (+40 and '-' are admitted as block delimiter 3-digit)
- Write the date validation code in ZZ.LL.YYYY format (in the JavaScript) (the day and month can have a single digit, no more delimiters are allowed than '.')
- Specify the directory structure (and mandatory files) of a web application.
- Specify the methods declared by the Servlet interface.
- What are the exceptions stated in the javax.servlet package?
- Specify (with some details) the stages in the life cycle of a servlet.
- What method of the ServletRequest interface allows you to access a specific parameter of an HTTP request?
- What method of the ServletRequest interface lets you list all the parameters of a request?
- The class that implements the servlet with the "Enroll" alias is "com.bank11.ccards.servlets.EnrollServlet". What is the code that links the alias to the class and in which xml file is this code?
- Types of JDBC drivers. Which is most effective?
- Write (in a block try {} the JDBC driver's full (with import and statement statements) code "oracle.jdbc.driver.Oracle.Driver".
- Write (in a block try {}) the creation code of a DB connection for connection "jdbc: mysql: // localhost: 3306 / ccards".
- What methods of the Connection interface allow the creation of Statement, PreparedStatement or CallableStatement objects?
- Assuming we already have a connection called "conn01" with the "ccards" database, write (using a Statement Interface) the column listing code firstName, lastName, custID in the CUSTOMERS table, all articles.
- Assuming we already have a connection called "conn02" with a database, write (using a Statement interface) the code for inserting a 3-column item (firstName, lastName, custID) into the CUSTOMERS table.
- Write the equivalent code, but use a PreparedStatement.
- Specify the 3 categories of JSP (JSP tags) elements.
- Specify the 3 types of scripting elements with details.
- What is the "page" JSP directive format? List the attributes associated with this directive.
- What is the format of the JSP directive 'includes' and what effect does it have?
- Specify the standard action format <jsp: forward>. What is the effect of this action?
- What are the eight default objects available to JSP?
- List the 4 possible scope of JSP objects.
Useful Links
editSupport curs Suport curs (ENG)
Gabriel Iuhasz , 2014-09-30, iuhasz.gabriel@e-uvt.ro