Communication Software Exam 5º Ingeniero de Telecomunicación February 18th Full name: Part I: Theory Exam

Size: px
Start display at page:

Download "Communication Software Exam 5º Ingeniero de Telecomunicación February 18th Full name: Part I: Theory Exam"

Transcription

1 Part I: Theory Exam Duration, exam (this year's students): 3 hours () (last year's students): 2 hours 45 minutes Duration, part I: 2 hours, 30 minutes The use of books or notes is not permitted. Reply to each question on a separate sheet of paper. Exercise 1. (1,5 points) Model the following situation in UML. A parachutist jumps out of a plane and is in free fall from that moment. (S)he can then pull the ripcord to open the main parachute. On doing so, two things can happen: either it opens, in which case (s)he shouts "yes!" and starts to fall slowly, or it doesn't open, in which case (s)he remains in free fall. If the main parachute doesn't open, (s)he can try to open the reserve parachute with the same two possible outcomes. If (s)he remains in free fall for longer than max_fall_time (s)he sees her entire life flash by before his/her eyes (this should be modelled using a halucinate() method) and the fall becomes a death fall. In all cases, (s)he eventually reaches the ground. Exercise 2. (1,5 point) Explain the mechanisms by which the Jini system dynamically adapts to new services arriving and old services leaving, without newly-arrived clients or service providers having any prior knowledge of the local Jini federation. Include in your explanation a brief description of the different protocols involved. Exercise 3 (1,5 point) Study the following code (conforming to the EJB 2.0 specification) for a bean class and then answer the questions appearing below it. Note that certain parts of the code have been replaced with XXXX. 1 import javax.ejb.*; 2 import java.rmi.remoteexception; 3 import java.util.*; 4 import asg.services.*; 5 6 public class MusicBean implements XXXXBean { 7 8 CustomerVO customer; 9 ArrayList shoppinglist; // create() methods implementation; initialize state variables public void ejbcreate(string person) throws CreateException { 14 if (person == null person.equals("")) { 15 throw new CreateException("Name null or empty.");

2 16 } 17 else { 18 customer = new CustomerVO(person, "NoPassword", "No "); 19 } 20 shoppinglist = new ArrayList(); 21 } public void ejbcreate(customervo cust) throws CreateException { 24 if (cust.getname() == null) { 25 throw new CreateException("Name cannot be null."); 26 } 27 if (cust.getpasswd()==null cust.getpasswd().equals("")) { 28 throw new CreateException("Password null or empty."); 29 } 30 if (cust.get () == null cust.get ().equals("")) { 31 throw new CreateException(" null or empty."); 32 } 33 customer = cust; 34 shoppinglist = new ArrayList(); 35 } public CustomerVO getcustomer() { 38 return customer; 39 } public void addrecording(recordingvo album) { 42 shoppinglist.add(album); 43 } // ShoppingException is an application exception 46 public void removerecording(recordingvo album) 47 throws ShoppingException 48 { 49 if (shoppinglist.contains(album)) { 50 shoppinglist.remove(shoppinglist.indexof(album)); 51 } 52 else { 53 throw new ShoppingException(album.getTitle() 54 + " not in cart."); 55 } 56 } // clear the shopping list 59 public void clearshoppinglist() { 60 shoppinglist.clear(); 61 } public ArrayList getshoppinglist() { 64 return shoppinglist; 65 } public MusicBean() {} 68 public void ejbremove() {} 69 public void ejbactivate() {} 70 public void ejbpassivate() {} 71 public void setxxxxcontext(xxxxcontext sc) {} } // MusicBean

3 (a) What type of EJB is being coded here? Give as much information as you can and justify your answer. (b) What can you say about the last five methods of this class? (c) Assuming there are no local interfaces, what form will the code for the interfaces of this EJB take? Exercise 4 (2 points) (a) (0,5 points) Describe the correspondence between SQL-DML statements and relational algebra operations. (b) (1,5 point) Suppose that a large family uses a database to manage their childrens' extracurricula activities and that the database contains the following tables: ACTIVITIES Activity_Code Activity_Name Place Day Start_Time Finish_Time Equipment CHILDREN Child_Code Child_Name Age CHILDREN-ACTIVITY Child_Code Activity_Code Start_Date Finish_Date Each activity takes place once a week and always on the same day of the week. The date that a child is to stop doing an activity may be unknown, in which case the Finish_Date field has the value 0. When a child stops doing an activity, the Finish_Date field is updated with the current date. You may suppose that dates can be directly compared and that, in the date format used, May 1 st 2006, for example, is written Now give the SQL sentences that implement the following instructions: (i) (ii) (iii) List the times and places at which a child will need to be collected (after an activity) on Thursday May 5 th 2006 (together with the name of the child). Modify the Finish_Date of all the activities which the youngest child is currently doing by setting it to today's date. You may use the set function MIN(). List the names of the children (without repetition!) that need a towel (equipment) at least once a week between Monday March 6 th 2006 and Friday March 24 th You may suppose that the Equipment field never contains more than one item of equipment. (iv) Delete from the database all those activities that no child is doing since Jan 1 st 2006.

4 Exercise 5. (3,5 points) Suppose we wish to implement an application for buying tickets to different events (music, cinema, sports, etc.) on the Internet using Servlets and JSPs. The system should be designed as a wizard split over three pages, together with a confirmation page: 1. The main page (index.html or index.jsp) shows the general information for the event: topic place time price per person. This information is static. This page has one button Next, to proceed to the next page. 2. The page for introducing the personal data: first and last names (of type String) address (a String of at least 9 characters containing character and after it the. character) the number of accompanying persons (of type int, with values between 0 and 9). This page has two buttons: Back, to go to the previous page, and Next, to proceed to the next page. 3. The Page for introducing the payment data: type of credit card ( Visa or Mastercard ) credit card number (16 digits, of type long) expiry date: year (2 digits, of type int) and month (an int in range 1 to 12). This page should show the total amount due, which depends on the price per person and the number of attendees. It has two buttons: Back, to go to the previous page, and Done, to finish the reservation. 4. A confirmation page containing all the data, to be shown when the reservation is completed. This page has no buttons. It should be taken into account that: When using the Back and Next buttons between pages, the contents of the corresponding forms should be maintained. The input data should be checked. Only when no field is empty and all the data is correct, can the user proceed to the next page. Otherwise, the previous page should be shown, with an explanatory error message. When going back to a previous page from a (partially) filled page, it is not necessary to check the data, but it should be adequately stored. For this simplified example, it is not necessary to save data permanently in a database.

5 The system is to use 3 JavaBeans: 1. The first is a RegistrationBean; in this bean, the user data is saved alter being validated. The properties of this bean are as follows: String firstname; String lastname; String ; int accompanying_persons; String creditcard; long creditcardnumber; int expiryyear; int expirymonth; 2. The second is a RegistrationViewBean, in this bean, unvalidated user data is stored and in which this data is validated. Its properties are the same as those of the previous bean. It also has the methods: Hashtable checkpersonaldataandinitregistrationbean(registrationbean b); Checks if the personal data in RegistrationViewBean are correct. If so, it is stored in the corresponding property of the parameter RegistrationBean. If not, it is stored as an error in the returned hash table. Hashtable checkpaymentdataandinitregistrationbean(registrationbean b); The same for the payment data. Hashtable checkdataandinitregistrationbean(registrationbean b); The same for all the data (calls the 2 previous methods). 3. Finally, the third is a Hashtable, where the errors that have been detected are stored. The most relevant methods of a hash table are the following: void clear(); // clears the table Object put(object key, Object value); //inserts a key/value pair void putall(map t); // inserts contents of another table boolean containskey(object key); // true if key is in table Object get(object key); //returns value corresponding to key boolean isempty(); // true if table is empty (a) (1 Point) The following JSP is that used to introduce the personal data. You are required to: Describe the functionality of this page in detail Indicate the predefined variables used in this code (give only the names). Identify (with the line number) and classify exactly all the JSP labels that you find. You may wish to group them by type. 1 <%@page contenttype="text/html"%> 2 <html> 3 <head><title>jsp Page</title></head> 4 <body> 5 6 <jsp:usebean id="data" scope="session" 7 class="beans.registrationbean" /> 8 <jsp:usebean id="viewdata" scope="session" 9 class="beans.registrationviewbean" /> 10 <jsp:usebean id="errors" scope="session" 11 class="java.util.hashtable" /> 12

6 13 <form action="checkpersdata.jsp" method="post"> 14 <h1>please introduce your personal data</h1> 15 <table> 16 <tr> 17 <td valign=top>first name: </td> 18 <td><input type ="text" name="firstname" size="30" 19 maxlength="50" value="<%= viewdata.getfirstname() %>"> 20 <% if(errors.containskey("firstname")) 21 out.println("<font color=red>" + errors.get("firstname") 22 + "</font>"); %></td> 23 </tr> 24 <tr> 25 <td>last name: </td> 26 <td><input type ="text" name="lastname" size="30" maxlength="50" 27 value="<%= viewdata.getlastname() %>"> 28 <% if(errors.containskey("lastname")) 29 out.println("<font color=red>" + errors.get("lastname") 30 + "</font>"); %></td> 31 </tr> 32 <tr> 33 <td> </td> 34 <td><input type ="text" name=" " size="30" maxlength="50" 35 value="<%= viewdata.get () %>"> 36 <% if(errors.containskey(" ")) 37 out.println("<font color=red>" + errors.get(" ") 38 + "</font>"); %></td> 39 </tr> 40 <tr> 41 <td>additional participants: </td> 42 <td><input type = "text" name="accompanying" size=30 43 maxlength="50" 44 value="<%= viewdata.getaccompanying() %>"> 45 <% if(errors.containskey("accompanying")) 46 out.println("<font color=red>" + errors.get("accompanying") 47 + "</font>"); %></td> 48 </tr> 49 <tr> 50 <th colspan=2> 51 <input type="submit" name="back" value="back"> 52 <input type="submit" name="next" value="next"> 53 </th> 54 </tr> 55 </table> 56 </form> 57 </body> 58 </html>

7 (b) (1,5 Points) The form in the code of the previous part points to the page checkpersdata.jsp, whose code is as follows: 1 <%@page contenttype="text/html"%> 2 <html><head></head> 3 <body> 4 <jsp:usebean id="data" scope="session" 5 class="beans.registrationbean" /> 6 <jsp:usebean id="viewdata" scope="session" 7 class="beans.registrationviewbean" /> 8 <jsp:usebean id="errors" scope="session" 9 class="java.util.hashtable" /> <jsp:setproperty name="viewdata" property="*" /> <% if(request.getparameter("back")!= null) { 14 %><jsp:forward page="index.jsp" /><% 15 } else { //assume "next" 16 errors.clear(); 17 errors.putall( 18 viewdata.checkpersonaldataandinitregistrationbean(data)); 19 if(errors.isempty()) { 20 %><jsp:forward page="paymentdata.jsp" /><% 21 } else { 22 %><jsp:forward page="persdata.jsp" /><% 23 } 24 } 25 %> 26 </body> 27 </html> Now answer the following questions: (i) With respect to the MVC (Model-View-Controller) architecture, to which of the three categories does this component belong? (ii) Re-write this component as a servlet. (c) (1 Point) Sketch a design of this application, showing the JSPs, servlets (if you wish to use them) and the JavaBeans described above. (Correct) use of UML diagrams will be valued. If you wanted to store in a database the results of correct registration for an event, where in the application would you do this?

Lab3: A J2EE Application with Stateful Session Bean and CMP Entity Beans

Lab3: A J2EE Application with Stateful Session Bean and CMP Entity Beans Session Bean and CMP Entity Beans Based on the lab2, the lab3 implements an on line symposium registration application RegisterApp which consists of a front session bean and two CMP supported by database

More information

Lab1: Stateless Session Bean for Registration Fee Calculation

Lab1: Stateless Session Bean for Registration Fee Calculation Registration Fee Calculation The Lab1 is a Web application of conference registration fee discount calculation. There may be sub-conferences for attendee to select. The registration fee varies for different

More information

Principles and Techniques of DBMS 6 JSP & Servlet

Principles and Techniques of DBMS 6 JSP & Servlet Principles and Techniques of DBMS 6 JSP & Servlet Haopeng Chen REliable, INtelligent and Scalable Systems Group (REINS) Shanghai Jiao Tong University Shanghai, China http://reins.se.sjtu.edu.cn/~chenhp

More information

Lab2: CMP Entity Bean working with Session Bean

Lab2: CMP Entity Bean working with Session Bean Session Bean The session bean in the Lab1 uses JDBC connection to retrieve conference information from the backend database directly. The Lab2 extends the application in Lab1 and adds an new entity bean

More information

INSTITUTE OF AERONAUTICAL ENGINEERING (Autonomous) Dundigal, Hyderabad

INSTITUTE OF AERONAUTICAL ENGINEERING (Autonomous) Dundigal, Hyderabad INSTITUTE OF AERONAUTICAL ENGINEERING (Autonomous) Dundigal, Hyderabad - 500 043 INFORMATION TECHNOLOGY TUTORIAL QUESTION BANK Course Name Course Code Class Branch : Web Technologies : ACS006 : B. Tech

More information

Fig. 3. Fig. 4. Fig. 5

Fig. 3. Fig. 4. Fig. 5 From lunchboxorders.com click on the green ORDER LUNCH button at the top right-hand corner of the page as shown below (Fig. 1) to proceed to the ordering site, lunchboxorders.net Fig. 1 Once you ve reached

More information

Enterprise JavaBeans. Layer:03. Session

Enterprise JavaBeans. Layer:03. Session Enterprise JavaBeans Layer:03 Session Agenda Build stateless & stateful session beans. Describe the bean's lifecycle. Describe the server's swapping mechanism. Last Revised: 10/2/2001 Copyright (C) 2001

More information

11-1. Collections. CSE 143 Java. Java 2 Collection Interfaces. Goals for Next Several Lectures

11-1. Collections. CSE 143 Java. Java 2 Collection Interfaces. Goals for Next Several Lectures Collections CSE 143 Java Collections Most programs need to store and access collections of data Collections are worth studying because... They are widely useful in programming They provide examples of

More information

J2EE Web Development 13/1/ Application Servers. Application Servers. Agenda. In the beginning, there was darkness and cold.

J2EE Web Development 13/1/ Application Servers. Application Servers. Agenda. In the beginning, there was darkness and cold. 1. Application Servers J2EE Web Development In the beginning, there was darkness and cold. Then, mainframe terminals terminals Centralized, non-distributed Agenda Application servers What is J2EE? Main

More information

REGISTRATION GUIDE REFUND POLICY CONTENTS

REGISTRATION GUIDE REFUND POLICY CONTENTS REGISTRATION GUIDE Thank you for your interest in attending the Engaged Scholar Symposium (!) The following pages include how-to instructions for how to complete your registration form and payment using

More information

Java E-Commerce Martin Cooke,

Java E-Commerce Martin Cooke, Java E-Commerce Martin Cooke, 2002 1 Java technologies for presentation: JSP Today s lecture in the presentation tier Java Server Pages Tomcat examples Presentation How the web tier interacts with the

More information

Communication Software Exam 5º Ingeniero de Telecomunicación January 26th Name:

Communication Software Exam 5º Ingeniero de Telecomunicación January 26th Name: Duration: Marks: 2.5 hours (+ half an hour for those students sitting part III) 8 points (+ 1 point for part III, for those students sitting this part) Part II: problems Duration: 2 hours Marks: 4 points

More information

CISH-6510 Web Application Design and Development. JSP and Beans. Overview

CISH-6510 Web Application Design and Development. JSP and Beans. Overview CISH-6510 Web Application Design and Development JSP and Beans Overview WeatherBean Advantages to Using Beans with JSPs Using Beans Bean Properties Weather Example Sharing Beans Timer Example 2 1 WeatherBean

More information

MARATHWADA INSTITUTE OF TECHNOLOGY, AURANGABAD DEPARTMENT OF MASTER OF COMPUTER APPLICATIONS ADVANCE JAVA QUESTION BANK

MARATHWADA INSTITUTE OF TECHNOLOGY, AURANGABAD DEPARTMENT OF MASTER OF COMPUTER APPLICATIONS ADVANCE JAVA QUESTION BANK MARATHWADA INSTITUTE OF TECHNOLOGY, AURANGABAD DEPARTMENT OF MASTER OF COMPUTER APPLICATIONS ADVANCE JAVA QUESTION BANK Second Year MCA 2013-14 (Part-I) Faculties: Prof. V.V Shaga Prof. S.Samee Prof. A.P.Gosavi

More information

Stateless Session Bean

Stateless Session Bean Session Beans As its name implies, a session bean is an interactive bean and its lifetime is during the session with a specific client. It is non-persistent. When a client terminates the session, the bean

More information

You will not be tested on JUnit or the Eclipse debugger. The exam does not cover interfaces.

You will not be tested on JUnit or the Eclipse debugger. The exam does not cover interfaces. Com S 227 Fall 2016 Topics and review problems for Exam 2 Thursday, November 10, 6:45 pm Locations, by last name: (same locations as Exam 1) A-C Curtiss 0127, first floor only D-N Hoover 2055 O-Z Troxel

More information

A simple map: Hashtable

A simple map: Hashtable Using Maps A simple map: Hashtable To create a Hashtable, use: import java.util.*; Hashtable table = new Hashtable(); To put things into a Hashtable, use: table.put(key, value); To retrieve a value from

More information

COMP201 Java Programming

COMP201 Java Programming COMP201 Java Programming Part III: Advanced Features Topic 16: JavaServer Pages (JSP) Servlets and JavaServer Pages (JSP) 1.0: A Tutorial http://www.apl.jhu.edu/~hall/java/servlet-tutorial/servlet-tutorial-intro.html

More information

This chapter describes: AssetBean AssetMgr AssetMgrEJB AssetMgrHome AssetTagAssociationBean AssetTypeBean AssociationBean AssociationMgr

This chapter describes: AssetBean AssetMgr AssetMgrEJB AssetMgrHome AssetTagAssociationBean AssetTypeBean AssociationBean AssociationMgr $VVHW9LVLELOLW\ 6HUYLFHV$3, 1 This chapter describes: AssetBean AssetMgr AssetMgrEJB AssetMgrHome AssetTagAssociationBean AssetTypeBean AssociationBean AssociationMgr AssociationMgrEJB AssociationMgrHome

More information

Three hours UNIVERSITY OF MANCHESTER SCHOOL OF COMPUTER SCIENCE. Date: Friday 21 st May Time:

Three hours UNIVERSITY OF MANCHESTER SCHOOL OF COMPUTER SCIENCE. Date: Friday 21 st May Time: COMP67032 Three hours UNIVERSITY OF MANCHESTER SCHOOL OF COMPUTER SCIENCE Building Web Applications Date: Friday 21 st May 2010 Time: 14.00 17.00 Answer Question 1 from Section A and TWO questions out

More information

Student WebAdvisor Training Manual

Student WebAdvisor Training Manual Student WebAdvisor Training Manual Contents Logging into WebAdvisor..2 Registering for a Class Section..4 Paying on My Account. 9 Dropping a Class Section 12 1 Logging into WebAdvisor STEPS 1. Click the

More information

Lecture 10 - Chapter 7 Entity Relationship Model

Lecture 10 - Chapter 7 Entity Relationship Model CMSC 461, Database Management Systems Spring 2018 Lecture 10 - Chapter 7 Entity Relationship Model These slides are based on Database System Concepts 6th edition book and are a modified version of the

More information

TUTORIAL QUESTION BANK

TUTORIAL QUESTION BANK + INSTITUTE OF AERONAUTICAL ENGINEERING (Autonomous) Dundigal, Hyderabad - 500 043 COMPUTER SCIENCE AND ENGINEERING TUTORIAL QUESTION BANK Course Name Course Code Class Branch : Web Technologies : ACS006

More information

BSC Online Registration Guide

BSC Online Registration Guide BSC Online Registration Guide The online registration pages are designed as a self-guided, self-explanatory set of forms, but if you encounter any issues during online registration or you are not sure

More information

Struts Lab 3: Creating the View

Struts Lab 3: Creating the View Struts Lab 3: Creating the View In this lab, you will create a Web application that lets a company's fleet manager track fuel purchases for the company's vehicles. You will concentrate on creating the

More information

More JSP. Advanced Topics in Java. Khalid Azim Mughal Version date: ATIJ More JSP 1/42

More JSP. Advanced Topics in Java. Khalid Azim Mughal   Version date: ATIJ More JSP 1/42 More JSP Advanced Topics in Java Khalid Azim Mughal khalid@ii.uib.no http://www.ii.uib.no/~khalid/atij/ Version date: 2006-09-04 ATIJ More JSP 1/42 Overview Including Resources in JSP Pages using the jsp:include

More information

CE212 Web Application Programming Part 3

CE212 Web Application Programming Part 3 CE212 Web Application Programming Part 3 30/01/2018 CE212 Part 4 1 Servlets 1 A servlet is a Java program running in a server engine containing methods that respond to requests from browsers by generating

More information

XML and XSLT. XML and XSLT 10 February

XML and XSLT. XML and XSLT 10 February XML and XSLT XML (Extensible Markup Language) has the following features. Not used to generate layout but to describe data. Uses tags to describe different items just as HTML, No predefined tags, just

More information

How to structure a web application with the MVC pattern

How to structure a web application with the MVC pattern Objectives Chapter 2 How to structure a web application with the MVC pattern Knowledge 1. Describe the Model 1 pattern. 2. Describe the Model 2 (MVC) pattern 3. Explain how the MVC pattern can improve

More information

CSE 510 Web Data Engineering

CSE 510 Web Data Engineering CSE 510 Web Data Engineering Data Access Object (DAO) Java Design Pattern UB CSE 510 Web Data Engineering Data Access Object (DAO) Java Design Pattern A Data Access Object (DAO) is a bean encapsulating

More information

OSM Participant Registration Instructions

OSM Participant Registration Instructions OSM 2019 - Participant Registration Instructions Please log into your ConfTool OSM 2019 account or if you are a new user, create a user account. After logging into your account, please proceed as below:

More information

COMP 250 Midterm #2 March 11 th 2013

COMP 250 Midterm #2 March 11 th 2013 NAME: STUDENT ID: COMP 250 Midterm #2 March 11 th 2013 - This exam has 6 pages - This is an open book and open notes exam. No electronic equipment is allowed. 1) Questions with short answers (28 points;

More information

A JavaBean is a class file that stores Java code for a JSP

A JavaBean is a class file that stores Java code for a JSP CREATE A JAVABEAN A JavaBean is a class file that stores Java code for a JSP page. Although you can use a scriptlet to place Java code directly into a JSP page, it is considered better programming practice

More information

JBuilder. Getting Started Guide part II. Preface. Creating your Second Enterprise JavaBean. Container Managed Persistent Bean.

JBuilder. Getting Started Guide part II. Preface. Creating your Second Enterprise JavaBean. Container Managed Persistent Bean. Getting Started Guide part II Creating your Second Enterprise JavaBean Container Managed Persistent Bean by Gerard van der Pol and Michael Faisst, Borland Preface Introduction This document provides an

More information

Solution READ THIS NOW! CS 3114 Data Structures and Algorithms

Solution READ THIS NOW! CS 3114 Data Structures and Algorithms READ THIS NOW! Print your name in the space provided below. There are 5 short-answer questions, priced as marked. The maximum score is 100. This examination is closed book and closed notes, aside from

More information

Frequently Asked Questions

Frequently Asked Questions Click on any of the frequently asked questions below to display the answer. If you cannot find the answer to your question, please contact Member Services on 08 8154 0200, 9.00 am to 5.00 pm Adelaide time,

More information

COSC 2007 Data Structures II Final Exam. Part 1: multiple choice (1 mark each, total 30 marks, circle the correct answer)

COSC 2007 Data Structures II Final Exam. Part 1: multiple choice (1 mark each, total 30 marks, circle the correct answer) COSC 2007 Data Structures II Final Exam Thursday, April 13 th, 2006 This is a closed book and closed notes exam. There are total 3 parts. Please answer the questions in the provided space and use back

More information

Q: I just remembered that I read somewhere that enterprise beans don t support inheritance! What s that about?

Q: I just remembered that I read somewhere that enterprise beans don t support inheritance! What s that about? session beans there are no Dumb Questions Q: If it s so common to leave the methods empty, why don t they have adapter classes like they have for event handlers that implement all the methods from the

More information

Pearson BTEC Level 3 Nationals External Assessment Examination Timetable for Paper-based examinations and Set Tasks 2017 FINAL

Pearson BTEC Level 3 Nationals External Assessment Examination Timetable for Paper-based examinations and Set Tasks 2017 FINAL Pearson BTEC Level 3 Nationals External Assessment Examination Timetable for Paper-based examinations and Set Tasks 2017 FINAL For more information on Pearson qualifications please visit http://qualifications.pearson.com

More information

You must bring your ID to the exam.

You must bring your ID to the exam. Com S 227 Spring 2017 Topics and review problems for Exam 2 Monday, April 3, 6:45 pm Locations, by last name: (same locations as Exam 1) A-E Coover 2245 F-M Hoover 2055 N-S Physics 0005 T-Z Hoover 1213

More information

Chapter 2 How to structure a web application with the MVC pattern

Chapter 2 How to structure a web application with the MVC pattern Chapter 2 How to structure a web application with the MVC pattern Murach's Java Servlets/JSP (3rd Ed.), C2 2014, Mike Murach & Associates, Inc. Slide 1 Objectives Knowledge 1. Describe the Model 1 pattern.

More information

Chapter 7: Entity-Relationship Model

Chapter 7: Entity-Relationship Model Chapter 7: Entity-Relationship Model, 7th Ed. See www.db-book.com for conditions on re-use Chapter 7: Entity-Relationship Model Design Process Modeling Constraints E-R Diagram Design Issues Weak Entity

More information

JavaServer Pages (JSP)

JavaServer Pages (JSP) JavaServer Pages (JSP) The Context The Presentation Layer of a Web App the graphical (web) user interface frequent design changes usually, dynamically generated HTML pages Should we use servlets? No difficult

More information

JSP - SYNTAX. Any text, HTML tags, or JSP elements you write must be outside the scriptlet. Following is the simple and first example for JSP:

JSP - SYNTAX. Any text, HTML tags, or JSP elements you write must be outside the scriptlet. Following is the simple and first example for JSP: http://www.tutorialspoint.com/jsp/jsp_syntax.htm JSP - SYNTAX Copyright tutorialspoint.com This tutorial will give basic idea on simple syntax ie. elements involved with JSP development: The Scriptlet:

More information

City of Florence, SC Recreation Department

City of Florence, SC Recreation Department City of Florence, SC Recreation Department Online Citizen Portal Registration Instructions Welcome to the City of Florence, SC s Recreation Citizen Portal, an online guide to all of the sports, activities

More information

Movie Tickets Frequently Asked Questions. How will I receive my discounted tickets? How secure is my purchase and my data?

Movie Tickets Frequently Asked Questions. How will I receive my discounted tickets? How secure is my purchase and my data? Movie Tickets Frequently Asked Questions How will I receive my discounted tickets? Ticket choices are either hard copy which are mailed via Australia Post, or evouchers which are emailed to your nominated

More information

JSP (Java Server Page)

JSP (Java Server Page) JSP (Java Server Page) http://www.jsptut.com/ http://www.jpgtutorials.com/introduction-to-javaserver-pages-jsp Lab JSP JSP simply puts Java inside HTML pages. Hello!

More information

The simplest way to search for and enroll in classes is to do so via the Enrollment Shopping Cart.

The simplest way to search for and enroll in classes is to do so via the Enrollment Shopping Cart. The simplest way to search for and enroll in classes is to do so via the Enrollment Shopping Cart. 1. Starting from the Student Center Screen, click on the blue enrollment shopping cart in order to access

More information

CS 520 Theory and Practice of Software Engineering Fall 2018

CS 520 Theory and Practice of Software Engineering Fall 2018 Logistics CS 520 Theory and Practice of Software Engineering Fall 2018 Best and worst programming practices September 11, 2018 Reminder Recap: software architecture vs. design Class website: https://people.cs.umass.edu/~brun/class/2018fall/cs520/

More information

CS 170, Section /3/2009 CS170, Section 000, Fall

CS 170, Section /3/2009 CS170, Section 000, Fall Lecture 18: Objects CS 170, Section 000 3 November 2009 11/3/2009 CS170, Section 000, Fall 2009 1 Lecture Plan Homework 5 : questions, comments? Managing g g Data: objects to make your life easier ArrayList:

More information

CS 520 Theory and Practice of Software Engineering Fall 2017

CS 520 Theory and Practice of Software Engineering Fall 2017 Logistics CS 520 Theory and Practice of Software Engineering Fall 2017 Best and worst programming practices September 12, 2017 Recap: software architecture vs. design Recap: software architecture examples

More information

CS 520 Theory and Practice of Software Engineering Fall 2017

CS 520 Theory and Practice of Software Engineering Fall 2017 CS 520 Theory and Practice of Software Engineering Fall 2017 Best and worst programming practices September 12, 2017 Logistics Recap: software architecture vs. design Specification Architecture Development

More information

WebTrac Registration instructions

WebTrac Registration instructions WebTrac Registration instructions Patrons can have the convenience of registering for a program online from our department s website or by clicking on this link: http://webtrac.cityofwestlake.org/vsiwebtrac103.html.

More information

Event Manager. Online Registration for Camps, Classes, and Events. Creating an Event: Log in. Click Event Manager in the left navigation to begin

Event Manager. Online Registration for Camps, Classes, and Events. Creating an Event: Log in. Click Event Manager in the left navigation to begin 2015 Event Manager Online Registration for Camps, Classes, and Events. Creating an Event: Log in Click Event Manager in the left navigation to begin 1 P a g e Click Create A blank event page will open

More information

e-canteen System Presentation

e-canteen System Presentation Greenwood International School e-canteen System Presentation Version 1.0 Last Update on 28-10-2018 Copyright 2018, Greenwood International School. All rights reserved 1 e-canteen System GIS is introducing

More information

Frequently Asked Questions ORDERING ON MYHERBALIFE.COM INDIA, January 2013

Frequently Asked Questions ORDERING ON MYHERBALIFE.COM INDIA, January 2013 Click on any of the section headers below to jump to the answers for the questions in that section. If you cannot find the answer to your question, please contact Associate Services at 080-40311444, 10

More information

J2EE AntiPatterns. Bill Dudney. Object Systems Group Copyright 2003, Object Systems Group

J2EE AntiPatterns. Bill Dudney. Object Systems Group Copyright 2003, Object Systems Group J2EE AntiPatterns Bill Dudney Object Systems Group bill@dudney.net Bill Dudney J2EE AntiPatterns Page 1 Agenda What is an AntiPattern? What is a Refactoring? AntiPatterns & Refactorings Persistence Service

More information

CS 3114 Data Structures and Algorithms READ THIS NOW!

CS 3114 Data Structures and Algorithms READ THIS NOW! READ THIS NOW! Print your name in the space provided below. There are 7 short-answer questions, priced as marked. The maximum score is 100. This examination is closed book and closed notes, aside from

More information

Iridium GO! Customer Information Packet

Iridium GO! Customer Information Packet SatPhone Shop Pty Ltd GO! Customer Information Packet Please Note: All references to making calls via your smart phone are assumed that your smart phone is connected to your GO! device, and you are using

More information

UNIT-III EJB APPLICATIONS

UNIT-III EJB APPLICATIONS UNIT-III EJB APPLICATIONS CONTENTS EJB Session Beans EJB entity beans EJB clients EJB Deployment Building an application with EJB. EJB Types Types of Enterprise Beans Session beans: Also called business

More information

EXAMINATIONS 2015 COMP103 INTRODUCTION TO DATA STRUCTURES AND ALGORITHMS

EXAMINATIONS 2015 COMP103 INTRODUCTION TO DATA STRUCTURES AND ALGORITHMS T E W H A R E W Ā N A N G A O T E Student ID:....................... Ū P O K O O T E I K A A M Ā U I VUW VICTORIA U N I V E R S I T Y O F W E L L I N G T O N EXAMINATIONS 2015 TRIMESTER 2 COMP103 INTRODUCTION

More information

COURSE OUTLINE PRE-REQUISITES/CO-REQUISITES: COMP228, COMP214 COURSE ELIGIBILITY FOR PRIOR LEARNING ASSESSMENT AND RECOGNITION (PLAR):

COURSE OUTLINE PRE-REQUISITES/CO-REQUISITES: COMP228, COMP214 COURSE ELIGIBILITY FOR PRIOR LEARNING ASSESSMENT AND RECOGNITION (PLAR): COURSE OUTLINE SCHOOL: School of Engineering Technology and Applied Science DEPARTMENT: PROGRAM: COURSE TITLE: Information and Communication Engineering Technology (ICET) Software Engineering Technology

More information

Java Server Pages. JSP Part II

Java Server Pages. JSP Part II Java Server Pages JSP Part II Agenda Actions Beans JSP & JDBC MVC 2 Components Scripting Elements Directives Implicit Objects Actions 3 Actions Actions are XML-syntax tags used to control the servlet engine

More information

CMPUT 391 Database Management Systems. Fall Semester 2006, Section A1, Dr. Jörg Sander. Introduction

CMPUT 391 Database Management Systems. Fall Semester 2006, Section A1, Dr. Jörg Sander. Introduction CMPUT 391 Database Management Systems Fall Semester 2006, Section A1, Dr. Jörg Sander Introduction University of Alberta 1 Objectives of Lecture 1 Get a rough initial idea about the content of the course:

More information

Developing Applications with Java EE 6 on WebLogic Server 12c

Developing Applications with Java EE 6 on WebLogic Server 12c Developing Applications with Java EE 6 on WebLogic Server 12c Duration: 5 Days What you will learn The Developing Applications with Java EE 6 on WebLogic Server 12c course teaches you the skills you need

More information

(800) Toll Free (804) Fax Introduction to Java and Enterprise Java using Eclipse IDE Duration: 5 days

(800) Toll Free (804) Fax   Introduction to Java and Enterprise Java using Eclipse IDE Duration: 5 days Course Description This course introduces the Java programming language and how to develop Java applications using Eclipse 3.0. Students learn the syntax of the Java programming language, object-oriented

More information

Babu Madhav Institute of Information Technology 2016

Babu Madhav Institute of Information Technology 2016 5 Years Integrated M.Sc. (IT) 5 th Semester Practical Problems 060010503: Advanced Java Practical No : 1 Practical Problem Duration for completion PEO(s) to be PO(s) to be CO(s) to be Solution must contain

More information

COMP9321 Web Application Engineering

COMP9321 Web Application Engineering COMP9321 Web Application Engineering Semester 2, 2017 Dr. Amin Beheshti Service Oriented Computing Group, CSE, UNSW Australia Week 3 http://webapps.cse.unsw.edu.au/webcms2/course/index.php?cid=2465 1 Review:

More information

SELECTION. (Chapter 2)

SELECTION. (Chapter 2) SELECTION (Chapter 2) Selection Very often you will want your programs to make choices among different groups of instructions For example, a program processing requests for airline tickets could have the

More information

Collections class Comparable and Comparator. Slides by Mark Hancock (adapted from notes by Craig Schock)

Collections class Comparable and Comparator. Slides by Mark Hancock (adapted from notes by Craig Schock) Lecture 15 Summary Collections Framework Iterable, Collections List, Set Map Collections class Comparable and Comparator 1 By the end of this lecture, you will be able to use different types of Collections

More information

Lecture 15 Summary. Collections Framework. Collections class Comparable and Comparator. Iterable, Collections List, Set Map

Lecture 15 Summary. Collections Framework. Collections class Comparable and Comparator. Iterable, Collections List, Set Map Lecture 15 Summary Collections Framework Iterable, Collections List, Set Map Collections class Comparable and Comparator 1 By the end of this lecture, you will be able to use different types of Collections

More information

School Days Off Online Registration Tutorial

School Days Off Online Registration Tutorial 2016-2017 School Days Off Online Registration Tutorial Please follow the below steps to register for 2016-2017 School Days Off program dates. If you have any questions regarding School Days Off online

More information

Model Solutions. COMP 102: Test March, 2015

Model Solutions. COMP 102: Test March, 2015 Family Name:.............................. Other Names:............................. ID Number:............................... Signature.................................. Model Solutions COMP 102: Test

More information

Collections. Collections. Collections - Arrays. Collections - Arrays

Collections. Collections. Collections - Arrays. Collections - Arrays References: Beginning Java Objects, Jacquie Barker; The Java Programming Language, Ken Arnold and James Gosling; IT350 Internet lectures Collections Collection types Collection wrappers Composite classes

More information

Beans and HTML Forms. Usually Beans are used to represent the data of HTML forms

Beans and HTML Forms. Usually Beans are used to represent the data of HTML forms Beans and HTML Forms Usually Beans are used to represent the data of HTML forms Example: Name Form jsp Processong form using a bean jsp Processing form using

More information

Chapter 7: Entity-Relationship Model

Chapter 7: Entity-Relationship Model Chapter 7: Entity-Relationship Model Database System Concepts, 6 th Ed. See www.db-book.com for conditions on re-use Chapter 7: Entity-Relationship Model Design Process Modeling Constraints E-R Diagram

More information

CMPSC 487W Software Engineering and Design Group Assignment #4 Fall 2018

CMPSC 487W Software Engineering and Design Group Assignment #4 Fall 2018 CMPSC 487W Software Engineering and Design Group Assignment #4 Fall 2018 Due Date: Wednesday, December 5, 2017 Total Points: 100 Description: The first three steps of developing a software product in ICONIX

More information

DCS235 Software Engineering Exercise Sheet 2 Using Java Collections

DCS235 Software Engineering Exercise Sheet 2 Using Java Collections DCS235 Software Engineering Exercise Sheet 2 Using Java Collections Prerequisites October 2004 You should understand Java interfaces. If you need to revise this, see Jia section 4.4.7 and 5.3. You should

More information

Chapter 7: Entity-Relationship Model

Chapter 7: Entity-Relationship Model Chapter 7: Entity-Relationship Model Database System Concepts, 6 th Ed. See www.db-book.com for conditions on re-use Chapter 7: Entity-Relationship Model Design Process Modeling Constraints E-R Diagram

More information

Collections, Maps and Generics

Collections, Maps and Generics Collections API Collections, Maps and Generics You've already used ArrayList for exercises from the previous semester, but ArrayList is just one part of much larger Collections API that Java provides.

More information

Technical University of Denmark

Technical University of Denmark Technical University of Denmark Written examination, May 7, 27. Course name: Algorithms and Data Structures Course number: 2326 Aids: Written aids. It is not permitted to bring a calculator. Duration:

More information

MIDTERM EXAM THURSDAY MARCH

MIDTERM EXAM THURSDAY MARCH Week 6 Assignments: Program 2: is being graded Program 3: available soon and due before 10pm on Thursday 3/14 Homework 5: available soon and due before 10pm on Monday 3/4 X-Team Exercise #2: due before

More information

the uk and the u.s.a.

the uk and the u.s.a. Friends: Preview 1 Label the pictures with the following free-time activities. ride a horse play video games go dancing watch movies drive a car talk to friends play tennis go shopping 1 2 3 4 5 6 7 8

More information

Higher Reach Online Registration

Higher Reach Online Registration Higher Reach Online Registration July 12, 2013 (Version 1) kc This procedure guide contains information for students and administration. QUICK ADMIT Define three roles that someone can use to log in to

More information

Life Cycle of an Entity Bean

Life Cycle of an Entity Bean Entity Bean An entity bean represents a business object by a persistent database table instead of representing a client. Students, teachers, and courses are some examples of entity beans. Each entity bean

More information

Collections. Collections Collection types Collection wrappers Composite classes revisited Collection classes Hashtables Enumerations

Collections. Collections Collection types Collection wrappers Composite classes revisited Collection classes Hashtables Enumerations References: Beginning Java Objects, Jacquie Barker; The Java Programming Language, Ken Arnold and James Gosling; IT350 Internet lectures 9/16/2003 1 Collections Collection types Collection wrappers Composite

More information

Algorithms & Datastructures Laboratory Exercise Sheet 1

Algorithms & Datastructures Laboratory Exercise Sheet 1 Algorithms & Datastructures Laboratory Exercise Sheet 1 Wolfgang Pausch Heiko Studt René Thiemann Tomas Vitvar

More information

COMP9321 Web Application Engineering

COMP9321 Web Application Engineering COMP9321 Web Application Engineering Java Server Pages (JSP) Dr. Basem Suleiman Service Oriented Computing Group, CSE, UNSW Australia Semester 1, 2016, Week 3 http://webapps.cse.unsw.edu.au/webcms2/course/index.php?cid=2442

More information

2004 John Mylopoulos. The Entity-Relationship Model John Mylopoulos. The Entity-Relationship Model John Mylopoulos

2004 John Mylopoulos. The Entity-Relationship Model John Mylopoulos. The Entity-Relationship Model John Mylopoulos XVI. The Entity-Relationship Model The Entity Relationship Model The Entity-Relationship Model Entities, Relationships and Attributes Cardinalities, Identifiers and Generalization Documentation of E-R

More information

Integrating Servlets and JavaServer Pages Lecture 13

Integrating Servlets and JavaServer Pages Lecture 13 Integrating Servlets and JavaServer Pages Lecture 13 Core Servlets & JSP book: More Servlets & JSP book: www.moreservlets.com Servlet and JSP Training Courses: courses.coreservlets.com 1 Slides Marty Hall,

More information

PROGRESS BOOK PARENT ACCESS NAVIGATION

PROGRESS BOOK PARENT ACCESS NAVIGATION PROGRESS BOOK PARENT ACCESS NAVIGATION Enter the following web address into your internet browser. https://parent.laca.org From the resulting screen, you can click on your child s school district icon.

More information

York University AK/ITEC OBJECT-BASED PROGRAMMING. Midterm Test Sample. Examiner: S.Y. Chen Duration: One Hour and Fifteen Minutes

York University AK/ITEC OBJECT-BASED PROGRAMMING. Midterm Test Sample. Examiner: S.Y. Chen Duration: One Hour and Fifteen Minutes York University AK/ITEC 1620 3.0 OBJECT-BASED PROGRAMMING Midterm Test Sample Examiner: S.Y. Chen Duration: One Hour and Fifteen Minutes This exam is closed textbook(s) and closed notes. Use of any electronic

More information

Project Description MyBay Project

Project Description MyBay Project Project Description MyBay Project University of British Columbia Okanagan COSC 304 - Fall 2007 Team Members: Ali Hatami Jennifer Johnstone Nicholas Blackwell 11/28/2007 1 COSC 304 MyEBAY.DOC TABLE OF CONTENTS

More information

Data Structures and Algorithms Winter term 2016

Data Structures and Algorithms Winter term 2016 Page 0 German University in Cairo December 26, 2016 Media Engineering and Technology Prof. Dr. Slim Abdennadher Dr. Wael Abouelsaadat Data Structures and Algorithms Winter term 2016 Final Exam Bar Code

More information

Struts. P. O. Box Austin, TX Fax: +1 (801) (877) 866-JAVA

Struts. P. O. Box Austin, TX Fax: +1 (801) (877) 866-JAVA Struts P. O. Box 80049 Austin, TX 78708 Fax: +1 (801) 383-6152 information@middleware-company.com +1 (877) 866-JAVA Copyright 2002 Agenda In this presentation we will discuss: Struts Overview Where to

More information

DuxTel Internet Commander

DuxTel Internet Commander DuxTel Internet Commander User Guide for Wireless HotSpot and Internet Café operators Contents: 1.0 How it Works...- 2-2.0 Accessing the online Administration System...- 3-2.1 Navigating Menu and Commands...-

More information

Fast Track to Java EE 5 with Servlets, JSP & JDBC

Fast Track to Java EE 5 with Servlets, JSP & JDBC Duration: 5 days Description Java Enterprise Edition (Java EE 5) is a powerful platform for building web applications. The Java EE platform offers all the advantages of developing in Java plus a comprehensive

More information

CIS 339 Section 2. What is JavaScript

CIS 339 Section 2. What is JavaScript CIS 339 Section 2 Introduction to JavaScript 9/26/2001 2001 Paul Wolfgang 1 What is JavaScript An interpreted programming language with object-oriented capabilities. Shares its syntax with Java, C++, and

More information

PHP: File upload. Unit 27 Web Server Scripting L3 Extended Diploma

PHP: File upload. Unit 27 Web Server Scripting L3 Extended Diploma PHP: File upload Unit 27 Web Server Scripting L3 Extended Diploma 2016 Criteria M2 M2 Edit the contents of a text file on a web server using web server scripting Tasks We will go through a worked example

More information

Chapter 7: Entity-Relationship Model

Chapter 7: Entity-Relationship Model Chapter 7: Entity-Relationship Model Database System Concepts, 6 th Ed. See www.db-book.com for conditions on re-use Chapter 7: Entity-Relationship Model Design Process Modeling Constraints E-R Diagram

More information