LAMPIRAN. Form About Us 2 Dari Sisi User Member... L1

Size: px
Start display at page:

Download "LAMPIRAN. Form About Us 2 Dari Sisi User Member... L1"

Transcription

1 LAMPIRAN Form About Us 1 Dari Sisi User Member... L1 Form About Us 2 Dari Sisi User Member... L1 Form About Us Dari Sisi User Member untuk Smartphone... L2 Tampilan Kartu Virtual Anggota... L2 Tampilan Sticker Qr Code... L3 Koneksi.Java... L2 SecurityLogin.java... L2 LogoutAction.java... L5 Input Data Member... L7 Tampil Kartu Virtual... L10 Surat Penelitian... L12 xvii

2 LAMPIRAN FORM ABOUT US 1 DARI SISI USER MEMBER FORM ABOUT US 2 DARI SISI USER MEMBER L1

3 FORM ABOUT US DARI SISI USER MEMBER UNTUK SMARTPHONE FORM TAMPILAN KARTU VIRTUAL ANGGOTA L2

4 Tampilan Sticker Qr Code KONEKSI.JAVA public class Koneksi { private static Connection koneksi; public static Connection getconnection(){ if(koneksi==null){ try{ DriverManager.registerDriver(new com.mysql.jdbc.driver()); koneksi = DriverManager.getConnection("jdbc:mysql://localhost:3306/swiftclubindon esia","root","admin"); catch(sqlexception e){ L3

5 System.out.println("Berhasil"); return koneksi; SECURITYLOGIN.JAVA public class SecurityLoginAction extends HttpServlet protected void doget(httpservletrequest request, HttpServletResponse response) throws ServletException, IOException protected void dopost(httpservletrequest request, HttpServletResponse response) throws ServletException, IOException { response.setcontenttype("application/json"); PrintWriter out = response.getwriter(); String JsonParam = request.getparameter("jsonparam"); Gson gson = new Gson(); SecurityLogin login = new SecurityLogin(); login = gson.fromjson(jsonparam, SecurityLogin.class); L4

6 SecurityLoginDAO securitylogindao = new SecurityLoginDAO(); boolean flag = securitylogindao.islogin(login); if(flag==true){ HttpSession s = request.getsession(); s.setattribute("username", login.getusername()); JSONObject obj = new JSONObject(); obj.put("status", "SUCCESSED"); out.print(obj); catch (JSONException ex) { Logger.getLogger(SecurityLoginAction.class.getName()).log(Level.SEVE RE, null, ex); else{ JSONObject obj = new JSONObject(); obj.put("status", "FAILED"); out.print(obj); catch (JSONException ex) { Logger.getLogger(SecurityLoginAction.class.getName()).log(Level.SEVE RE, null, ex); L5

7 finally { out.close(); = "LogoutAction", urlpatterns = {"/LogoutAction") public class LogoutAction extends HttpServlet protected void doget(httpservletrequest request, HttpServletResponse response) throws ServletException, IOException { // String ID =request.getparameter("id"); // request.getsession().removeattribute("username"); protected void dopost(httpservletrequest request, HttpServletResponse response) throws ServletException, IOException { L6

8 /** * Returns a short description of the servlet. * a String containing servlet description public String getservletinfo() { return "Short description"; // </editor-fold> INPUT DATA MEMBER MemberAction.Java protected void dopost(httpservletrequest request, HttpServletResponse response) throws ServletException, IOException { response.setcontenttype("application/json"); PrintWriter out = response.getwriter(); String JsonMember = request.getparameter("jsonmember"); String JsonDataSwift = request.getparameter("jsondataswift"); L7

9 String regis = request.getparameter("regis"); Date finalregist = new Date(),finalValid = new Date(); finalregist = new SimpleDateFormat("yyyy-MM-dd").parse(regis); catch (ParseException ex) { Logger.getLogger(MemberAction.class.getName()).log(Level.SEVERE, null, ex); String valid = request.getparameter("validate"); finalvalid = new SimpleDateFormat("yyyy-MM-dd").parse(valid); catch (ParseException ex) { Logger.getLogger(MemberAction.class.getName()).log(Level.SEVERE, null, ex); String operation = request.getparameter("operation"); Gson gson = new Gson(); Member member = new Member(); member = gson.fromjson(jsonmember, Member.class); L8

10 member.setregisterdatetime(finalregist); member.setvaliddatetime(finalvalid); //set list data swift List<DataSwift> listdataswift = new ArrayList<DataSwift>(); Type typelistdataswift = new TypeToken<ArrayList<DataSwift>>() {.gettype(); listdataswift = gson.fromjson(jsondataswift, typelistdataswift); String flag = ""; String flag2 = ""; DataSwiftDAO dataswiftdao = new DataSwiftDAO(); MemberDAO memberdao = new MemberDAO(); if(operation.equalsignorecase("save")){ flag2 = dataswiftdao.insert(member,listdataswift); flag = memberdao.insert(member); if(operation.equalsignorecase("update")){ flag2 = dataswiftdao.update(member,listdataswift); flag = memberdao.update(member); L9

11 if(flag.equalsignorecase("successed") && flag2.equalsignorecase("successed")){ JSONObject obj = new JSONObject(); obj.put("status", "SUCCESSED"); out.print(obj); catch (JSONException ex) { Logger.getLogger(SecurityLoginAction.class.getName()).log(Level.SEVE RE, null, ex); else{ JSONObject obj = new JSONObject(); obj.put("status", "FAILED"); out.print(obj); catch (JSONException ex) { Logger.getLogger(SecurityLoginAction.class.getName()).log(Level.SEVE RE, null, ex); finally { out.close(); L10

12 TAMPIL KARTU VIRTUAL protected void dopost(httpservletrequest request, HttpServletResponse response) throws ServletException, IOException { response.setcontenttype("application/json"); PrintWriter out = response.getwriter(); String membercode = request.getparameter("id"); MemberDAO memberdao = new MemberDAO(); DataSwiftDAO dataswiftdao = new DataSwiftDAO(); Member member = new Member(); member = memberdao.get(membercode); List<DataSwift> dataswift = new ArrayList<DataSwift>(); dataswift = dataswiftdao.getdataswiftbymemberid(membercode); Gson gson = new Gson(); GsonBuilder builder = new GsonBuilder(); L11

13 gson = builder.create(); String jsonlistdataswift = gson.tojson(dataswift); String jsonmember = gson.tojson(member,member.class); JSONObject obj = new JSONObject(); obj.put("dataswift", jsonlistdataswift); obj.put("member", jsonmember); out.print(obj); catch (JSONException ex) { Logger.getLogger(SecurityLoginAction.class.getName()).log(Level.SEVE RE, null, ex); L12

14 L13

15-415 Database Applications Recitation 10. Project 3: CMUQFlix CMUQ s Movies Recommendation System

15-415 Database Applications Recitation 10. Project 3: CMUQFlix CMUQ s Movies Recommendation System 15-415 Database Applications Recitation 10 Project 3: CMUQFlix CMUQ s Movies Recommendation System Project Objective 1. Set up a front-end website with PostgreSQL back-end 2. Allow users to login, like

More information

Principles and Techniques of DBMS 5 Servlet

Principles and Techniques of DBMS 5 Servlet Principles and Techniques of DBMS 5 Servlet Haopeng Chen REliable, INtelligentand Scalable Systems Group (REINS) Shanghai Jiao Tong University Shanghai, China http://reins.se.sjtu.edu.cn/~chenhp e- mail:

More information

2. Follow the installation directions and install the server on ccc

2. Follow the installation directions and install the server on ccc Installing a Web Server 1. Install a sample web server, which supports Servlets/JSPs. A light weight web server is Apache Tomcat server. You can get the server from http://tomcat.apache.org/ 2. Follow

More information

Servlets. Based on Notes by Dave Hollinger & Ethan Cerami Also, the Online Java Tutorial by Sun

Servlets. Based on Notes by Dave Hollinger & Ethan Cerami Also, the Online Java Tutorial by Sun Servlets Based on Notes by Dave Hollinger & Ethan Cerami Also, the Online Java Tutorial by Sun 1 What is a Servlet? A Servlet is a Java program that extends the capabilities of servers. Inherently multi-threaded.

More information

Tutorial c-treeace Web Service Using Java

Tutorial c-treeace Web Service Using Java Tutorial c-treeace Web Service Using Java Tutorial c-treeace Web Service Using Java Copyright 1992-2012 FairCom Corporation All rights reserved. No part of this publication may be stored in a retrieval

More information

How to use JavaMail to send email

How to use JavaMail to send email Chapter 15 How to use JavaMail to send email Objectives Applied Knowledge How email works Sending client Mail client software Receiving client Mail client software SMTP Sending server Mail server software

More information

Java EE Introduction, Content. Component Architecture: Why and How Java EE: Enterprise Java

Java EE Introduction, Content. Component Architecture: Why and How Java EE: Enterprise Java Java EE Introduction, Content Component Architecture: Why and How Java EE: Enterprise Java The Three-Tier Model The three -tier architecture allows to maintain state information, to improve performance,

More information

Managing Data on the World Wide-Web

Managing Data on the World Wide-Web Managing Data on the World Wide-Web Sessions, Listeners, Filters, Shopping Cart Elad Kravi 1 Web Applications In the Java EE platform, web components provide the dynamic extension capabilities for a web

More information

Development of Web Applications

Development of Web Applications Development of Web Applications Principles and Practice Vincent Simonet, 2013-2014 Université Pierre et Marie Curie, Master Informatique, Spécialité STL 3 Server Technologies Vincent Simonet, 2013-2014

More information

An introduction to web programming with Java

An introduction to web programming with Java Chapter 1 An introduction to web programming with Java Objectives Knowledge Objectives (continued) The first page of a shopping cart application The second page of a shopping cart application Components

More information

Creating Java EE Applications and Servlets with IntelliJ IDEA

Creating Java EE Applications and Servlets with IntelliJ IDEA Creating Java EE Applications and Servlets with IntelliJ IDEA In this tutorial you will: 1. Create IntelliJ IDEA project for Java EE application 2. Create Servlet 3. Deploy the application to JBoss server

More information

Web Programming: Announcements. Sara Sprenkle August 3, 2006. August 3, 2006. Assignment 6 due today Project 2 due next Wednesday Review XML

Web Programming: Announcements. Sara Sprenkle August 3, 2006. August 3, 2006. Assignment 6 due today Project 2 due next Wednesday Review XML Web Programming: Java Servlets and JSPs Sara Sprenkle Announcements Assignment 6 due today Project 2 due next Wednesday Review XML Sara Sprenkle - CISC370 2 1 Web Programming Client Network Server Web

More information

Penetration from application down to OS

Penetration from application down to OS April 8, 2009 Penetration from application down to OS Getting OS access using IBM Websphere Application Server vulnerabilities Digitаl Security Research Group (DSecRG) Stanislav Svistunovich research@dsecrg.com

More information

2.8. Session management

2.8. Session management 2.8. Session management Juan M. Gimeno, Josep M. Ribó January, 2008 Session management. Contents Motivation Hidden fields URL rewriting Cookies Session management with the Servlet/JSP API Examples Scopes

More information

Session Tracking Customized Java EE Training: http://courses.coreservlets.com/

Session Tracking Customized Java EE Training: http://courses.coreservlets.com/ 2012 Marty Hall Session Tracking Originals of Slides and Source Code for Examples: http://courses.coreservlets.com/course-materials/csajsp2.html 2 Customized Java EE Training: http://courses.coreservlets.com/

More information

No no-argument constructor. No default constructor found

No no-argument constructor. No default constructor found Every software developer deals with bugs. The really tough bugs aren t detected by the compiler. Nasty bugs manifest themselves only when executed at runtime. Here is a list of the top ten difficult and

More information

Developing an EJB3 Application. on WebSphere 6.1. using RAD 7.5

Developing an EJB3 Application. on WebSphere 6.1. using RAD 7.5 Developing an EJB3 Application on WebSphere 6.1 using RAD 7.5 Introduction This tutorial introduces how to create a simple EJB 3 application using Rational Application Developver 7.5( RAD7.5 for short

More information

Manual. Programmer's Guide for Java API

Manual. Programmer's Guide for Java API 2013-02-01 1 (15) Programmer's Guide for Java API Description This document describes how to develop Content Gateway services with Java API. TS1209243890 1.0 Company information TeliaSonera Finland Oyj

More information

Java Servlet Tutorial. Java Servlet Tutorial

Java Servlet Tutorial. Java Servlet Tutorial Java Servlet Tutorial i Java Servlet Tutorial Java Servlet Tutorial ii Contents 1 Introduction 1 1.1 Servlet Process.................................................... 1 1.2 Merits.........................................................

More information

Web Application Development on a Linux System With a DB2 Database By Alan Andrea

Web Application Development on a Linux System With a DB2 Database By Alan Andrea Web Application Development on a Linux System With a DB2 Database By Alan Andrea Linux, for a long time now, has been a robust and solid platform for deploying and developing complex applications. Furthermore,

More information

Cours. Client/serveur avancé en Java (servlets, RMI, etc.) M.M.F.A.I. François Bourdoncle Francois.Bourdoncle@ensmp.fr http://www.ensmp.

Cours. Client/serveur avancé en Java (servlets, RMI, etc.) M.M.F.A.I. François Bourdoncle Francois.Bourdoncle@ensmp.fr http://www.ensmp. Cours Système et Réseaux M.M.F.A.I. Client/serveur avancé en Java (servlets, RMI, etc.) François Bourdoncle Francois.Bourdoncle@ensmp.fr http://www.ensmp.fr/ bourdonc/ 1 Plan Servlets RMI Implémentation

More information

Java 2 Web Developer Certification Study Guide Natalie Levi

Java 2 Web Developer Certification Study Guide Natalie Levi SYBEX Sample Chapter Java 2 Web Developer Certification Study Guide Natalie Levi Chapter 8: Thread-Safe Servlets Copyright 2002 SYBEX Inc., 1151 Marina Village Parkway, Alameda, CA 94501. World rights

More information

Web Application Programmer's Guide

Web Application Programmer's Guide Web Application Programmer's Guide JOnAS Team ( Florent BENOIT) - March 2009 - Copyright OW2 consortium 2008-2009 This work is licensed under the Creative Commons Attribution-ShareAlike License. To view

More information

Java Server Pages combined with servlets in action. Generals. Java Servlets

Java Server Pages combined with servlets in action. Generals. Java Servlets Java Server Pages combined with servlets in action We want to create a small web application (library), that illustrates the usage of JavaServer Pages combined with Java Servlets. We use the JavaServer

More information

CSc31800: Internet Programming, CS-CCNY, Spring 2004 Jinzhong Niu May 9, 2004. Java Servlets

CSc31800: Internet Programming, CS-CCNY, Spring 2004 Jinzhong Niu May 9, 2004. Java Servlets CSc31800: Internet Programming, CS-CCNY, Spring 2004 Jinzhong Niu May 9, 2004 Java Servlets I have presented a Java servlet example before to give you a sense of what a servlet looks like. From the example,

More information

Java EE 6 New features in practice Part 3

Java EE 6 New features in practice Part 3 Java EE 6 New features in practice Part 3 Java and all Java-based marks are trademarks or registered trademarks of Sun Microsystems, Inc. in the U.S. and other countries. License for use and distribution

More information

Web Development in Java Live Demonstrations (Live demonstrations done using Eclipse for Java EE 4.3 and WildFly 8)

Web Development in Java Live Demonstrations (Live demonstrations done using Eclipse for Java EE 4.3 and WildFly 8) Web Development in Java Live Demonstrations (Live demonstrations done using Eclipse for Java EE 4.3 and WildFly 8) Java Servlets: 1. Switch to the Java EE Perspective (if not there already); 2. File >

More information

Website as Tool for Compare Credit Card Offers

Website as Tool for Compare Credit Card Offers Website as Tool for Compare Credit Card Offers MIRELA-CATRINEL VOICU, IZABELA ROTARU Faculty of Economics and Business Administration West University of Timisoara ROMANIA mirela.voicu@feaa.uvt.ro, izabela.rotaru@yahoo.com,

More information

11.1 Web Server Operation

11.1 Web Server Operation 11.1 Web Server Operation - Client-server systems - When two computers are connected, either could be the client - The client initiates the communication, which the server accepts - Generally, clients

More information

CHAPTER 9: SERVLET AND JSP FILTERS

CHAPTER 9: SERVLET AND JSP FILTERS Taken from More Servlets and JavaServer Pages by Marty Hall. Published by Prentice Hall PTR. For personal use only; do not redistribute. For a complete online version of the book, please see http://pdf.moreservlets.com/.

More information

Szervletek. ANTAL Margit. Sapientia - EMTE, Pannon Forrás,,Egységes erdélyi felnőttképzés a

Szervletek. ANTAL Margit. Sapientia - EMTE, Pannon Forrás,,Egységes erdélyi felnőttképzés a Sapientia - EMTE, Pannon Forrás,,Egységes erdélyi felnőttképzés a Kárpát-medencei hálózatban 2010 HTTP kérés-válasz modell A Servlet API közötti kommunikáció Megjelenítési komponens Vezérlési komponens

More information

How To Understand The Architecture Of Java 2Ee, J2Ee, And J2E (Java) In A Wordpress Blog Post

How To Understand The Architecture Of Java 2Ee, J2Ee, And J2E (Java) In A Wordpress Blog Post Understanding Architecture and Framework of J2EE using Web Application Devadrita Dey Sarkar,Anavi jaiswal, Ankur Saxena Amity University,UTTAR PRADESH Sector-125, Noida, UP-201303, India Abstract: This

More information

Configure a SOAScheduler for a composite in SOA Suite 11g. By Robert Baumgartner, Senior Solution Architect ORACLE

Configure a SOAScheduler for a composite in SOA Suite 11g. By Robert Baumgartner, Senior Solution Architect ORACLE Configure a SOAScheduler for a composite in SOA Suite 11g By Robert Baumgartner, Senior Solution Architect ORACLE November 2010 Scheduler for the Oracle SOA Suite 11g: SOAScheduler Page 1 Prerequisite

More information

Intellicus Single Sign-on

Intellicus Single Sign-on Intellicus Single Sign-on Intellicus Enterprise Reporting and BI Platform Intellicus Technologies info@intellicus.com www.intellicus.com Copyright 2010 Intellicus Technologies This document and its content

More information

Ch-03 Web Applications

Ch-03 Web Applications Ch-03 Web Applications 1. What is ServletContext? a. ServletContext is an interface that defines a set of methods that helps us to communicate with the servlet container. There is one context per "web

More information

Piotr Nowicki's Homepage. Java EE 6 SCWCD Mock Exam. "Simplicity is the ultimate sophistication." Important!

Piotr Nowicki's Homepage. Java EE 6 SCWCD Mock Exam. Simplicity is the ultimate sophistication. Important! Piotr Nowicki's Homepage "Simplicity is the ultimate sophistication." Java EE 6 SCWCD Mock Exam Posted on March 27, 2011 by Piotr 47 Replies Edit This test might help to test your knowledge before taking

More information

Servlet 3.0. Alexis Moussine-Pouchkine. mercredi 13 avril 2011

Servlet 3.0. Alexis Moussine-Pouchkine. mercredi 13 avril 2011 Servlet 3.0 Alexis Moussine-Pouchkine 1 Overview Java Servlet 3.0 API JSR 315 20 members Good mix of representation from major Java EE vendors, web container developers and web framework authors 2 Overview

More information

Database System Concepts

Database System Concepts Chapter 8(+4): Application Design and Development APIs Web Departamento de Engenharia Informática Instituto Superior Técnico 1 st Semester 2010/2011 Slides (fortemente) baseados nos slides oficiais do

More information

Handling the Client Request: Form Data

Handling the Client Request: Form Data 2012 Marty Hall Handling the Client Request: Form Data Originals of Slides and Source Code for Examples: http://courses.coreservlets.com/course-materials/csajsp2.html 3 Customized Java EE Training: http://courses.coreservlets.com/

More information

Web Applications. For live Java training, please see training courses at

Web Applications. For live Java training, please see training courses at 2009 Marty Hall Using and Deploying Web Applications Originals of Slides and Source Code for Examples: http://courses.coreservlets.com/course-materials/msajsp.html Customized Java EE Training: http://courses.coreservlets.com/

More information

Web Programming II JSP (Java Server Pages) ASP request processing. The Problem. The Problem. Enterprise Application Development using J2EE

Web Programming II JSP (Java Server Pages) ASP request processing. The Problem. The Problem. Enterprise Application Development using J2EE Enterprise Application Development using J2EE Shmulik London Lecture #6 Web Programming II JSP (Java Server Pages) How we approached it in the old days (ASP) Multiplication Table Multiplication

More information

Servlet and JSP Filters

Servlet and JSP Filters 2009 Marty Hall Servlet and JSP Filters Originals of Slides and Source Code for Examples: http://courses.coreservlets.com/course-materials/msajsp.html Customized Java EE Training: http://courses.coreservlets.com/

More information

ACM Crossroads Student Magazine The ACM's First Electronic Publication

ACM Crossroads Student Magazine The ACM's First Electronic Publication Page 1 of 8 ACM Crossroads Student Magazine The ACM's First Electronic Publication Crossroads Home Join the ACM! Search Crossroads crossroads@acm.org ACM / Crossroads / Columns / Connector / An Introduction

More information

INTRODUCTION TO WEB TECHNOLOGY

INTRODUCTION TO WEB TECHNOLOGY UNIT-I Introduction to Web Technologies: Introduction to web servers like Apache1.1, IIS, XAMPP (Bundle Server), WAMP Server(Bundle Server), handling HTTP Request and Response, installation of above servers

More information

J2EE Web Development. Agenda. Application servers. What is J2EE? Main component types Application Scenarios J2EE APIs and Services.

J2EE Web Development. Agenda. Application servers. What is J2EE? Main component types Application Scenarios J2EE APIs and Services. J2EE Web Development Agenda Application servers What is J2EE? Main component types Application Scenarios J2EE APIs and Services Examples 1 1. Application Servers In the beginning, there was darkness and

More information

chapter 3Chapter 3 Advanced Servlet Techniques Servlets and Web Sessions Store Information in a Session In This Chapter

chapter 3Chapter 3 Advanced Servlet Techniques Servlets and Web Sessions Store Information in a Session In This Chapter chapter 3Chapter 3 Advanced Servlet Techniques In This Chapter Using sessions and storing state Using cookies for long-term storage Filtering HTTP requests Understanding WebLogic Server deployment issues

More information

Implementing the Shop with EJB

Implementing the Shop with EJB Exercise 2 Implementing the Shop with EJB 2.1 Overview This exercise is a hands-on exercise in Enterprise JavaBeans (EJB). The exercise is as similar as possible to the other exercises (in other technologies).

More information

PA165 - Lab session - Web Presentation Layer

PA165 - Lab session - Web Presentation Layer PA165 - Lab session - Web Presentation Layer Author: Martin Kuba Goal Experiment with basic building blocks of Java server side web technology servlets, filters, context listeners,

More information

Outline. CS 112 Introduction to Programming. Recap: HTML/CSS/Javascript. Admin. Outline

Outline. CS 112 Introduction to Programming. Recap: HTML/CSS/Javascript. Admin. Outline Outline CS 112 Introduction to Programming Web Programming: Backend (server side) Programming with Servlet, JSP q Admin and recap q Server-side web programming overview q Servlet programming q Java servlet

More information

WebSphere and Message Driven Beans

WebSphere and Message Driven Beans WebSphere and Message Driven Beans 1 Messaging Messaging is a method of communication between software components or among applications. A messaging system is a peer-to-peer facility: A messaging client

More information

Building Web Applications with Servlets and JavaServer Pages

Building Web Applications with Servlets and JavaServer Pages Building Web Applications with Servlets and JavaServer Pages David Janzen Assistant Professor of Computer Science Bethel College North Newton, KS http://www.bethelks.edu/djanzen djanzen@bethelks.edu Acknowledgments

More information

Application Security

Application Security 2009 Marty Hall Declarative Web Application Security Originals of Slides and Source Code for Examples: http://courses.coreservlets.com/course-materials/msajsp.html Customized Java EE Training: http://courses.coreservlets.com/

More information

Supplement IV.E: Tutorial for Tomcat. For Introduction to Java Programming By Y. Daniel Liang

Supplement IV.E: Tutorial for Tomcat. For Introduction to Java Programming By Y. Daniel Liang Supplement IV.E: Tutorial for Tomcat For Introduction to Java Programming By Y. Daniel Liang This supplement covers the following topics: Obtaining and Installing Tomcat Starting and Stopping Tomcat Choosing

More information

Java Servlet 3.0. Rajiv Mordani Spec Lead

Java Servlet 3.0. Rajiv Mordani Spec Lead Java Servlet 3.0 Rajiv Mordani Spec Lead 1 Overview JCP Java Servlet 3.0 API JSR 315 20 members > Good mix of representation from major Java EE vendors, web container developers and web framework authors

More information

Essentials of the Java(TM) Programming Language, Part 1

Essentials of the Java(TM) Programming Language, Part 1 Essentials of the Java(TM) Programming Language, Part 1 http://developer.java.sun.com/developer...ining/programming/basicjava1/index.html Training Index Essentials of the Java TM Programming Language:

More information

Introduction to J2EE Web Technologies

Introduction to J2EE Web Technologies Introduction to J2EE Web Technologies Kyle Brown Senior Technical Staff Member IBM WebSphere Services RTP, NC brownkyl@us.ibm.com Overview What is J2EE? What are Servlets? What are JSP's? How do you use

More information

CONTROLLING WEB APPLICATION BEHAVIOR WITH

CONTROLLING WEB APPLICATION BEHAVIOR WITH CONTROLLING WEB APPLICATION BEHAVIOR WITH WEB.XML Chapter Topics in This Chapter Customizing URLs Turning off default URLs Initializing servlets and JSP pages Preloading servlets and JSP pages Declaring

More information

7 Web Databases. Access to Web Databases: Servlets, Applets. Java Server Pages PHP, PEAR. Languages: Java, PHP, Python,...

7 Web Databases. Access to Web Databases: Servlets, Applets. Java Server Pages PHP, PEAR. Languages: Java, PHP, Python,... 7 Web Databases Access to Web Databases: Servlets, Applets Java Server Pages PHP, PEAR Languages: Java, PHP, Python,... Prof. Dr. Dietmar Seipel 837 7.1 Access to Web Databases by Servlets Java Servlets

More information

Web Programming with Java Servlets

Web Programming with Java Servlets Web Programming with Java Servlets Leonidas Fegaras University of Texas at Arlington Web Data Management and XML L3: Web Programming with Servlets 1 Database Connectivity with JDBC The JDBC API makes it

More information

CHAPTER 8Managing Software Projects with User Stories

CHAPTER 8Managing Software Projects with User Stories Managing Software Projects with User Stories 217 CHAPTER 8Managing Software Projects with User Stories What is a user story Suppose that the customer of this project is a manufacturer of vending machines

More information

A Case Study of an Android* Client App Using Cloud-Based Alert Service

A Case Study of an Android* Client App Using Cloud-Based Alert Service A Case Study of an Android* Client App Using Cloud-Based Alert Service Abstract This article discusses a case study of an Android client app using a cloud-based web service. The project was built on the

More information

Controlling Web Application Behavior

Controlling Web Application Behavior 2006 Marty Hall Controlling Web Application Behavior The Deployment Descriptor: web.xml JSP, Servlet, Struts, JSF, AJAX, & Java 5 Training: http://courses.coreservlets.com J2EE Books from Sun Press: http://www.coreservlets.com

More information

Outline. Lecture 9: Java Servlet and JSP. Servlet API. HTTP Servlet Basics

Outline. Lecture 9: Java Servlet and JSP. Servlet API. HTTP Servlet Basics Lecture 9: Java Servlet and JSP Wendy Liu CSC309F Fall 2007 Outline HTTP Servlet Basics Servlet Lifecycle Request and Response Session Management JavaServer Pages (JSP) 1 2 HTTP Servlet Basics Current

More information

professional expertise distilled P U B L I S H I N G EJB 3.1 Cookbook Richard M. Reese Chapter No.7 "EJB Security"

professional expertise distilled P U B L I S H I N G EJB 3.1 Cookbook Richard M. Reese Chapter No.7 EJB Security P U B L I S H I N G professional expertise distilled EJB 3.1 Cookbook Richard M. Reese Chapter No.7 "EJB Security" In this package, you will find: A Biography of the author of the book A preview chapter

More information

Pure server-side Web Applications with Java, JSP. Application Servers: the Essential Tool of Server-Side Programming. Install and Check Tomcat

Pure server-side Web Applications with Java, JSP. Application Servers: the Essential Tool of Server-Side Programming. Install and Check Tomcat Pure server-side Web Applications with Java, JSP Discussion of networklevel http requests and responses Using the Java programming language (Java servlets and JSPs) Key lesson: The role of application

More information

JAVA PROGRAMMING PATTERN FOR THE PREFERENCES USABILITY MECHANISM

JAVA PROGRAMMING PATTERN FOR THE PREFERENCES USABILITY MECHANISM JAVA PROGRAMMING PATTERN FOR THE PREFERENCES USABILITY MECHANISM Drafted by Francy Diomar Rodríguez, Software and Systems PhD Student, Facultad de Informática. Universidad Politécnica de Madrid. (fd.rodriguez@alumnos.upm.es)

More information

The Collaborative Information Portal and NASA s Mars Rover Mission

The Collaborative Information Portal and NASA s Mars Rover Mission The Collaborative Information Portal and NASA s Mars Rover Mission Bildquelle: Ronald Mak, University of California, Santa Cruz Joan Walton, NASA Ames Research Center Qualitative Anfoderungen Message-Service

More information

Creating Custom Web Pages for cagrid Services

Creating Custom Web Pages for cagrid Services Creating Custom Web Pages for cagrid Services Creating Custom Web Pages for cagrid Services Contents Overview Changing the Default Behavior Subclassing the AXIS Servlet Installing and Configuring the Custom

More information

Real-world Java 4 beginners. Dima, Superfish github.com/dimafrid

Real-world Java 4 beginners. Dima, Superfish github.com/dimafrid Real-world Java 4 beginners Dima, Superfish github.com/dimafrid Real world Hundreds of computations per second Each computation of sub-second latency Massive IO Lots of data In Web/Trading/Monitoring/Cellular/etc./etc.

More information

Anders Møller & Michael I. Schwartzbach 2006 Addison-Wesley

Anders Møller & Michael I. Schwartzbach 2006 Addison-Wesley Programming Web Applications with Servlets Anders Møller & Michael I. Schwartzbach 2006 Addison-Wesley Objectives How to program Web applications using servlets Advanced concepts, such as listeners, filters,

More information

BAPI. Business Application Programming Interface. Compiled by Y R Nagesh 1

BAPI. Business Application Programming Interface. Compiled by Y R Nagesh 1 BAPI Business Application Programming Interface Compiled by Y R Nagesh 1 What is BAPI A Business Application Programming Interface is a precisely defined interface providing access process and data in

More information

Java Server Pages and Java Beans

Java Server Pages and Java Beans Java Server Pages and Java Beans Java server pages (JSP) and Java beans work together to create a web application. Java server pages are html pages that also contain regular Java code, which is included

More information

Systems Integration in the Cloud Era with Apache Camel. Kai Wähner, Principal Consultant

Systems Integration in the Cloud Era with Apache Camel. Kai Wähner, Principal Consultant Systems Integration in the Cloud Era with Apache Camel Kai Wähner, Principal Consultant Kai Wähner Main Tasks Requirements Engineering Enterprise Architecture Management Business Process Management Architecture

More information

Integrating Servlets and JSP: The Model View Controller (MVC) Architecture

Integrating Servlets and JSP: The Model View Controller (MVC) Architecture 2012 Marty Hall Integrating Servlets and JSP: The Model View Controller (MVC) Architecture Originals of Slides and Source Code for Examples: http://courses.coreservlets.com/course-materials/csajsp2.html

More information

Virtual Open-Source Labs for Web Security Education

Virtual Open-Source Labs for Web Security Education , October 20-22, 2010, San Francisco, USA Virtual Open-Source Labs for Web Security Education Lixin Tao, Li-Chiou Chen, and Chienting Lin Abstract Web security education depends heavily on hands-on labs

More information

FILE I/O IN JAVA. Prof. Chris Jermaine cmj4@cs.rice.edu. Prof. Scott Rixner rixner@cs.rice.edu

FILE I/O IN JAVA. Prof. Chris Jermaine cmj4@cs.rice.edu. Prof. Scott Rixner rixner@cs.rice.edu FILE I/O IN JAVA Prof. Chris Jermaine cmj4@cs.rice.edu Prof. Scott Rixner rixner@cs.rice.edu 1 Our Simple Java Programs So Far Aside from screen I/O......when they are done, they are gone They have no

More information

Liferay Enterprise ecommerce. Adding ecommerce functionality to Liferay Reading Time: 10 minutes

Liferay Enterprise ecommerce. Adding ecommerce functionality to Liferay Reading Time: 10 minutes Liferay Enterprise ecommerce Adding ecommerce functionality to Liferay Reading Time: 10 minutes Broadleaf + Liferay ecommerce + Portal Options Integration Details REST APIs Integrated IFrame Separate Conclusion

More information

Automatic generation of distributed dynamic applications in a thin client environment

Automatic generation of distributed dynamic applications in a thin client environment CODEN: LUTEDX ( TETS-5469 ) / 1-77 / (2002)&local 26 Master thesis Automatic generation of distributed dynamic applications in a thin client environment by Klas Ehnrot and Tobias Södergren February, 2003

More information

Computer Security - Tutorial Sheet 3: Network & Programming Security

Computer Security - Tutorial Sheet 3: Network & Programming Security Computer Security - Tutorial Sheet 3: Network & Programming Security School of Informatics 27th February 2014 This is the third problem sheet for the Computer Security course, covering topics in network

More information

ACI Commerce Gateway Hosted Payment Page Guide

ACI Commerce Gateway Hosted Payment Page Guide ACI Commerce Gateway Hosted Payment Page Guide Inc. All rights reserved. All information contained in this document is confidential and proprietary to ACI Worldwide Inc. This material is a trade secret

More information

WRITING DATA TO A BINARY FILE

WRITING DATA TO A BINARY FILE WRITING DATA TO A BINARY FILE TEXT FILES VS. BINARY FILES Up to now, we have looked at how to write and read characters to and from a text file. Text files are files that contain sequences of characters.

More information

J2EE-Application Server

J2EE-Application Server J2EE-Application Server (inkl windows-8) Installation-Guide F:\_Daten\Hochschule Zurich\Web-Technologie\ApplicationServerSetUp.docx Last Update: 19.3.2014, Walter Rothlin Seite 1 Table of Contents Java

More information

www.virtualians.pk CS506 Web Design and Development Solved Online Quiz No. 01 www.virtualians.pk

www.virtualians.pk CS506 Web Design and Development Solved Online Quiz No. 01 www.virtualians.pk CS506 Web Design and Development Solved Online Quiz No. 01 Which of the following is a general purpose container? JFrame Dialog JPanel JApplet Which of the following package needs to be import while handling

More information

COSC 304 Database Web Programming Overview Introduction to Database Systems Database Web Programming Dr. Ramon Lawrence

COSC 304 Database Web Programming Overview Introduction to Database Systems Database Web Programming Dr. Ramon Lawrence COSC 304 Introduction to Database Systems Database Web Programming Dr. Ramon Lawrence University of British Columbia Okanagan ramon.lawrence@ubc.ca Database Web Programming Overview Developing web-based

More information

How to program Java Card3.0 platforms?

How to program Java Card3.0 platforms? How to program Java Card3.0 platforms? Samia Bouzefrane CEDRIC Laboratory Conservatoire National des Arts et Métiers samia.bouzefrane@cnam.fr http://cedric.cnam.fr/~bouzefra Smart University Nice, Sophia

More information

Introduction to Java. Module 12: Networking (Java Sockets) Prepared by Costantinos Costa for EPL 233. ΕΠΛ233 Αντικειμενοστρεφής Προγραμματισμός 1

Introduction to Java. Module 12: Networking (Java Sockets) Prepared by Costantinos Costa for EPL 233. ΕΠΛ233 Αντικειμενοστρεφής Προγραμματισμός 1 Introduction to Java Module 12: Networking (Java Sockets) Prepared by Costantinos Costa for EPL 233 ΕΠΛ233 Αντικειμενοστρεφής Προγραμματισμός 1 What Is a Socket? A socket is one end-point of a two-way

More information

Java Servlets. St. Louis Java Special Interest Group March, 1999

Java Servlets. St. Louis Java Special Interest Group March, 1999 Java Servlets St. Louis Java Special Interest Group March, 1999 Eric M. Burke Sr. Software Engineer Object Computing, Inc. http://home.fiastl.net/ericb/ What are Applets? Web browser extensions Applets

More information

Usability. Usability

Usability. Usability Objectives Review Usability Web Application Characteristics Review Servlets Deployment Sessions, Cookies Usability Trunk Test Harder than you probably thought Your answers didn t always agree Important

More information

Please send your comments to: KZrobok@Setfocus.com

Please send your comments to: KZrobok@Setfocus.com Sun Certified Web Component Developer Study Guide - v2 Sun Certified Web Component Developer Study Guide...1 Authors Note...2 Servlets...3 The Servlet Model...3 The Structure and Deployment of Modern Servlet

More information

Lösungsvorschläge zum Übungsblatt 13: Fortgeschrittene Aspekte objektorientierter Programmierung (WS 2005/06)

Lösungsvorschläge zum Übungsblatt 13: Fortgeschrittene Aspekte objektorientierter Programmierung (WS 2005/06) Prof. Dr. A. Poetzsch-Heffter Dipl.-Inform. N. Rauch Technische Universität Kaiserslautern Fachbereich Informatik AG Softwaretechnik http://softech.informatik.uni-kl.de/fasoop Lösungsvorschläge zum Übungsblatt

More information

Lesson: All About Sockets

Lesson: All About Sockets All About Sockets http://java.sun.com/docs/books/tutorial/networking/sockets/index.html Page 1 sur 1 The Java TM Tutorial Start of Tutorial > Start of Trail Trail: Custom Networking Lesson: All About Sockets

More information

DTS Web Developers Guide

DTS Web Developers Guide Apelon, Inc. Suite 202, 100 Danbury Road Ridgefield, CT 06877 Phone: (203) 431-2530 Fax: (203) 431-2523 www.apelon.com Apelon Distributed Terminology System (DTS) DTS Web Developers Guide Table of Contents

More information

CSE 1223: Introduction to Computer Programming in Java Chapter 7 File I/O

CSE 1223: Introduction to Computer Programming in Java Chapter 7 File I/O CSE 1223: Introduction to Computer Programming in Java Chapter 7 File I/O 1 Sending Output to a (Text) File import java.util.scanner; import java.io.*; public class TextFileOutputDemo1 public static void

More information

Trials and (Minor) Tribulations

Trials and (Minor) Tribulations Leif Johansson Trials and (Minor) Tribulations Configuring SAKAI for Shibboleth 1 Shibbolizing Sakai... [pffft] How hard could it be? 2 Shibboleth Federated identity management Cross-domain auth and authz

More information

SESSION TRACKING. Topics in This Chapter

SESSION TRACKING. Topics in This Chapter SESSION TRACKING Topics in This Chapter Implementing session tracking from scratch Using basic session tracking Understanding the session-tracking API Differentiating between server and browser sessions

More information

Topics in This Chapter

Topics in This Chapter SERVLET BASICS Topics in This Chapter The basic structure of servlets A simple servlet that generates plain text A servlet that generates HTML Servlets and packages Some utilities that help build HTML

More information

Creating a Simple, Multithreaded Chat System with Java

Creating a Simple, Multithreaded Chat System with Java Creating a Simple, Multithreaded Chat System with Java Introduction by George Crawford III In this edition of Objective Viewpoint, you will learn how to develop a simple chat system. The program will demonstrate

More information

Using Netbeans and the Derby Database for Projects Contents

Using Netbeans and the Derby Database for Projects Contents Using Netbeans and the Derby Database for Projects Contents 1. Prerequisites 2. Creating a Derby Database in Netbeans a. Accessing services b. Creating a database c. Making a connection d. Creating tables

More information

Agenda. Summary of Previous Session. Application Servers G22.3033-011. Session 3 - Main Theme Page-Based Application Servers (Part II)

Agenda. Summary of Previous Session. Application Servers G22.3033-011. Session 3 - Main Theme Page-Based Application Servers (Part II) Application Servers G22.3033-011 Session 3 - Main Theme Page-Based Application Servers (Part II) Dr. Jean-Claude Franchitti New York University Computer Science Department Courant Institute of Mathematical

More information

IBM WebSphere Application Server

IBM WebSphere Application Server IBM WebSphere Application Server Multihomed hosting 2011 IBM Corporation Multihoming allows you to have a single application communicate with different user agent clients and user agent servers on different

More information