JSP Java Server Pages
|
|
- Shavonne French
- 8 years ago
- Views:
Transcription
1 JSP - Java Server Pages JSP Java Server Pages
2 JSP - Java Server Pages Characteristics: A way to create dynamic web pages, Server side processing, Based on Java Technology, Large library base Platform independence Separates the graphical design from the dynamic content. Ref.:
3 JSP - Java Server Pages Basic idea: Separating Graphical Design and Dynamic Content Similar approaches: PHP, SSI, ASP Graphical Design and System Design are two separate and distinct specialities: Different languages (HTML/XHTML vs. Java), Different goals, and Different Training. Should be separated for optimal project management. JSP way: special Java tags in HTML.
4 JSP - Code Example <html> <body> <b>hello World HTML!</b><br><br> <% out.println("hello World Java"); %> </body> </html>
5 JSP - Code Example with Errors <html> <body> <b>hello World HTML!</b><br><br> <% out.println("hello World Java") %> </body> </html> Missing ";"
6 JSP - Code Example with Errors
7 Java Server Pages JSP technology is essentially a language specification Used to mix code into text content Typically HTML or XML Special syntax embedded into pages compile Directive blocks code block Code snippets that generate into strings Compile into a servlet
8 Java Server Pages Servlet Java Code out.println("html") JSP HTML Page <% Java %> HTML Java HTML Java
9 Java Server Pages JSP JSP Compiler Servlet Source Java Compiler Class File
10 Servlets / Java Server Pages Browser XML + HTML JSP/Servlet JDBC Browser X,D-HTML EJB EJB XSL/XTL XML App App
11 JSP Engine Client (HTML File) Response Request (HTTP get or post) JSP Engine and Web Server (Creates a Servlet from a JSP file and executes the servlet) Request Response Servlet File Request Response Java Component
12 JSP Engine User request a JSP Page compiled before? No Yes Page unchanged? No Compile JSP into Servlet Yes Execute Servlet
13 JSP Processing JSP Elements must first be processed by the server JSP Page => Servlet Compile Servlet Execute Servlet Web server must have JSP Container
14 JSP Translation/Processing Hello.jsp (2) READ (1) GET / Hello.jsp CLIENT (6) HTTP/ OK <html>... </html> Server (JSP) (3) GENERATE HelloServlet.java (5) EXECUTE (4) COMPILE HelloServlet.class
15 JSP versus Javascript Javascript Client side Less secure Browser dependent Unstable
16 JSP versus ASP Active Server Pages (ASP, Microsoft) Many similarities Server side dynamic web page generator Separate programming logic from page design Similar syntax <% %> Proprietary Product Limited platform
17 JSP versus Servlets Disadvantages of Servlets Processing code & HTML code in same module Changing look and feel requires servlet recompilation Difficult to leverage web development tools Generated HTML embedded into Servlet
18 JSP versus Servlets Similarities between JSP and Servlets Identical results to the end user JSP is an additional module to the Servlet Engine Differences Servlets HTML in Java code : HTML code inaccessible to Graphics Designer, Everything is accessible to Programmer JSP Java Code Scriptlets in HTML : HTML code very accessible to Graphics Designer, Java code very accessible to Programmer
19 JSP Architecture JSP is a simple text file consisting of HTML or XML content along with JSP elements JSP packages define the interface for the compiled JSP page JSPPage HttpJspPage Three main methods jspinit() jspdestroy() jspservice(httpservletrequest request, HttpServletResponse response)
20 Elements of a JavaServer Page JSP Elements Template Text -HTML When request is processed template text & dynamic content merged result sent as response to browser JSP Elements Directive Action Scripting
21 Elements of a JavaServer Page Directives provide global information to the page Action perform action based on up-to-date information Scripting Declarative: for page-wide variable and method declaration Scriptlets: the Java code embedded in the page Expressions: Format the expression as a string for inclusion in the output of the page.
22 JSP Syntax HTML Comment Comment can be viewed in the HTML source file <!-- comment <% expression%> --> Example: <!--this is just Html comment --> <!-- This page was loaded on <%= (new java.util.date ()).tolocalestring()%> --> View source: <!--this is just Html comment --> <!--This page was loaded on January 10, >
23 JSP Syntax Hidden Comment Comment cannot be viewed in the HTML source file <% --expression --%> Example: <html> <body> <h2>a Test of Comments</h2> <%--This comment will be invisible in page source --%> </body> </html>
24 JSP Directives A JSP directive is a statement that gives the JSP engine information for the page. Syntax: - <%@ directive {attribute= value } %> For example - scripting language used - session tracking required - name of page for error reporting
25 Types of Directive Elements page... %> Define page-dependent attributes, such as scripting language, error page & buffering requirements. include... %> Include a file during the translation phase. <%@ taglib... %> Declares a tag library, containing custom actions (markup tags), used in the page.
26 JSP Syntax: Include Directive Includes a static file <%@ include file="relativeurl" %> Example: JSP-File "main.jsp": <html><body> Current date and time is: <%@include file="date.jsp" %> </body></html> Include code here File to include "date.jsp": <%@page import ="java.util.*" %> <% =(new java.util.date()).tolocalestring() %> Output : Current date and time is: Mar 5, :56:50
27 Page Directive - Attributes/Values Attribute language extends import session buffer autoflush isthreadsafe info errorpage iserrorpage Values java package.class package.* / package.class true / false none / 8kb / sizekb true / false true / false text pathtoerrorpage true / false
28 JSP Declaration The definition of class-level variables and methods Syntax: <%! Declaration %> <%! String var1 = "hi"; int count = 0; private void incrementcount() { count++; } %>
29 JSP Scriptlets Scriptlets definition: any block of valid Java code that resides between <% and %> tags. This code will be placed into the generated servlet_jspservice() method. <% String var1 = request.getparameter("lname"); out.println(var1); %>
30 JSP Expressions JSP expression: used to embed values directly within HTML code. Syntax: <%= expression %> Example: <% for (int i=0; i<10; i++) { %> <BR> Counter value is <%= i %> <% } %>
31 JSP Expressions <HTML> <HEAD><TITLE>JSP Expressions</TITLE></HEAD> <BODY> <H2>JSP Expressions</H2> <UL> <LI>Current time: <%= new java.util.date() %> <LI>Your hostname: <%= request.getremotehost() %> <LI>Your session ID: <%= session.getid() %> <LI>The <CODE>testParam</CODE> form parameter: <%= request.getparameter("testparam") %> </UL> </BODY> </HTML>
32 JSP Expressions
33 JSP Expressions <HTML> <HEAD><TITLE>JSP Expressions</TITLE></HEAD> <BODY> <H2>JSP Expressions</H2> <UL> <LI>Current time: <%= new java.util.date() %> <LI>Your hostname: <%= request.getremotehost() %> <LI>Your session ID: <%= session.getid() %> <LI>The <CODE>testParam</CODE> form parameter: <%= request.getparameter("testparam") %> </UL> </BODY> </HTML>
34 JSP Expressions
35 Scripting: Implicit JSP Objects Scripting request response pagecontext session application out config Implicit JSP Objects.http.HttpServletRequest.http.HttpServletResponse.jsp.PageContext.http.Session.ServletContext.jsp.JspWriter.ServletConfig
36 Session Example page errorpage="errorpage.jsp" %> <html> <head> <title>usesession</title> </head> <body> <% // Try and get the current count from the session Integer count = (Integer)session.getAttribute("COUNT"); // If COUNT is not found, create it and add it to the session
37 Session Example if ( count == null ) { count = new Integer(1); session.setattribute("count", count); } else { count = new Integer(count.intValue() + 1); session.setattribute("count", count); } // Get the User's Name from the request out.println("<b>hello you have visited this site: " + count + " times.</b>"); %> </body> </html>
38 XML XML Syntax
39 XML Syntax XML Syntax for Expressions: <jsp: expression> Java Expression </jsp: expression> XML Syntax for Scriptlets: <jsp: scriptlet> Code </jsp: scriptlet>
40 XML Syntax XML Syntax for Declarations: <jsp: declaration> Code </jsp: declaration> XML Syntax for Directives: <jsp: directive.directivetype attribute="value" /> example: <jsp: directive.page import="java.util.*" /> equivalent of: page import="java.util.*" %>
41 Applications Starting Applications
42 Generating Excel Sheets page contenttype="application/vnd.ms-excel" %> <%-- tabs between columns! --%> Tab
43 Generating Excel Sheets <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML> <HEAD> <TITLE>Student Numbers</TITLE> </HEAD> <BODY> <H3>Student Numbers</H3> <% String format = request.getparameter("format"); if ((format!= null) && (format.equals("excel"))) { response.setcontenttype("application/vnd.ms-excel"); } %>
44 Generating Excel Sheets <TABLE BORDER=1> <TR><TH></TH><TH>SS2007<TH>WS2007/08 <TR><TH>Mult<TD>108<TD>108 <TR><TH>L<TD>272<TD>272 <TR><TH>IuE<TD>668<TD>668 <TR><TH>M<TD>745<TD>745 <TR><TH>B<TD>935<TD>935 <TR><TH>SAG<TD>953<TD>953 <TR><TH>W<TD>1401<TD>1401 </TABLE> </CENTER> </BODY> </HTML> HTML table interpreted by Excel
45 Generating Excel Sheets HTML Page
46 Generating Excel Sheets Excel Sheet
47 JSP - Java Server Pages Taglibs
48 Taglibs Unique feature of JSP: Tag Libraries - Taglibs custom defined JSP tags. used to componentize presentation level logic. similar to Java beans. Basic idea: Every tag is mapped to a particular class file which is executed whenever the tag is encountered in a JSP file. General syntax : <%@ taglib uri = " --- " prefix = " --- " %> JSP-tags can be nested within other tags.
49 Taglibs Steps to create and use TAGLIBs : 1. create the class file which should implement the Tag and BodyTag interfaces 2. deploy the class file in the Servlet folder of the web server. 3. mapping of a tag to a particular class is done through the use of the file "taglib.tld". The taglib file represents an XML document that defines the tag operation. 4. Tag library is made available to the JSP page using the taglib directive. Ref.:
50 Tag Handler Tag Handler The Tag Handler is responsible for the interaction between the JSP page and additional server-side objects. The handler is invoked during the execution of a JSP page when a custom tag is encountered. Two interfaces describe a tag handler: Tag BodyTag used for simple tag handlers not interested in manipulating their body content an extension of Tagand gives the handler access to its body
51 Tag Handler The Tag Handler has two main action methods: dostarttag() Process the start tag of this action. doendtag() release() Process the end tag of this action. Called after returning from dostarttag. Release resources
52 Tag interaction. Container 1: setpagecontext (javax.servlet.jsp.pagecontext):void Tag 2: setparent (javax.servlet.jsp.tagext.tag):void 3: //setattribute:void 4: dostarttag()):int 5: doendtag()):int 6: release()):int
53 Tag interaction. Container function after page is parsed and a tag is encountered: 1. Use the setpagecontext() method of the Tag to set the current PageContext for it to use. 2. Use the setparent() method to set any parent of the encountered Tag (or null if none). 3. Set any attributes defined to be given to the Tag. 4. Call the dostarttag() method. This method can either return EVAL_BODY_INCLUDE or SKIP_BODY. If EVAL_BODY_INCLUDE is returned, the Tags body will be evaluated. If SKIP_BODY is returned, the Container will not evaluate the body of the Tag. 5. Call the doendtag() method. This method can either return EVAL_PAGE or SKIP_PAGE. IF EVAL_PAGE is returned, the Container will continueto evaluate the JSP page when done with this Tag. If SKIP_PAGE is returned, the Container will stop evaluating the page when it's done with this Tag. 6. Call the release() method. This method can be used by the Tag developer to release any resources that the Tag was using. Please notice thatit is up to the Container to call the release() method when seemed fit, so you can't rely on this method being called at any specific time. In theory, this methodcould be called 12 days after the Tag was used. For this reason, any code that must be executed at the end of the Tag usage should be called from the doendtag() method.
54 Example: Hello World JSP file: starts with taglib directive taglib uri = "identifier" prefix = "prefix" %> Location of Tag Library Distinguishes different tag libraries <%@ taglib uri = "/taglib.tld" prefix = "nlib" %> <html> <body> <nlib: Helloworld /> </body> </html>
55 Tag Library Descriptor Hello World Tag Library Descriptor <?xml version= 1.0 encoding= ISO ?> <!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN" " <taglib> <tlibversion>1.0</tlibversion> <jspversion>1.1</jspversion> <shortname>nlib</shortname> <tag> <name>helloworld</name> <tagclass>mytags.helloworld</tagclass> <body context>empty</body context> </tag> </taglib> tag handler class
56 Tag class file HelloWorld.class package mytags; import javax.servlet.jsp.*; import javax.servlet.jsp.tagtext.*; public class HelloWorld implements Tag { private PageContext pagecontext; private Tag parent; public int dostarttag() throws JSPException { return SKIP_BODY; } public int doendtag() throws JSPException { try{ pagecontext.getout().write("hello World"); } catch(java.io.exception ex) { throw new JSPException("IO Exception"); } return EVAL_PAGE; } continued
57 Tag class file continued public void release (){} public void setpagecontext(pagecontext p) { pagecontext=p; } public void setparent(tag t) { parent = t; } } public void getparent() { return parent; } Doku: interface Tag, class PageContext
58 Tag XML file file "web.xml" (example) describes the mapping between the taglib uri and the location of the Tag Library Descriptor (maps action tags to tag handler classes). taglib-uri <web-app> <taglib> <taglib-uri> </taglib-uri> <taglib-location> associated with /WEB-INF/tld/utilitytags.tld </taglib-location> </taglib> </web-app> Tag Library Descriptor
59 Usage JSP directive to tell JSP container to use the URI "/taglib.tld" and the prefix "nlib" taglib uri = "/taglib.tld" prefix = "nlib" %> Call JSP tag: <nlib:helloworld />
60 JSTL JavaServer Pages Standard Tag Library The JavaServer Pages Standard Tag Library (JSTL) encapsulates as simple tags the core functionality common to many Web applications. JSTL has support for common, structural tasks such as iteration and conditionals, tags for manipulating XML documents, internationalization tags, and SQL tags. It also provides a framework for integrating existing custom tags with JSTL tags.
61 Servlet - JSP Comparison Servlet - Java Server Pages
62 Servlet or JSP? For complex pages, use a combination of both Servlet: get request, validate and process forward() to JSP to generate response dynamically pass information as request attributes Request Servlet URL Browser Response JSP
Services. Custom Tag Libraries. Today. Web Development. Role-Based. Development. Code Reuse. Tag Libraries Custom Tags. Tag Lifecycle.
JSP, and JSP, and 1 JSP, and Custom Lecture #6 2008 2 JSP, and JSP, and interfaces viewed as user interfaces methodologies derived from software development done in roles and teams role assignments based
More informationServer-Side Web Development JSP. Today. Web Servers. Static HTML Directives. Actions Comments Tag Libraries Implicit Objects. Apache.
1 Pages () Lecture #4 2007 Pages () 2 Pages () 3 Pages () Serves resources via HTTP Can be anything that serves data via HTTP Usually a dedicated machine running web server software Can contain modules
More informationComplete Java Web Development
Complete Java Web Development JAVA-WD Rev 11.14 4 days Description Complete Java Web Development is a crash course in developing cutting edge Web applications using the latest Java EE 6 technologies from
More informationBuilding Web Applications, Servlets, JSP and JDBC
Building Web Applications, Servlets, JSP and JDBC Overview Java 2 Enterprise Edition (JEE) is a powerful platform for building web applications. The JEE platform offers all the advantages of developing
More informationWeb Container Components Servlet JSP Tag Libraries
Web Application Development, Best Practices by Jeff Zhuk, JavaSchool.com ITS, Inc. dean@javaschool.com Web Container Components Servlet JSP Tag Libraries Servlet Standard Java class to handle an HTTP request
More informationIntroduction 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 informationControlling 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 informationExam Prep. Sun Certified Web Component Developer (SCWCD) for J2EE Platform
Exam Prep Sun Certified Web Component Developer (SCWCD) for J2EE Platform Core Servlets & JSP book: www.coreservlets.com More Servlets & JSP book: www.moreservlets.com Servlet and JSP Training Courses:
More informationIn this chapter, we lay the foundation for all our further discussions. We start
01 Struts.qxd 7/30/02 10:23 PM Page 1 CHAPTER 1 Introducing the Jakarta Struts Project and Its Supporting Components In this chapter, we lay the foundation for all our further discussions. We start by
More informationWeb 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 informationSSC - Web development Model-View-Controller for Java web application development
SSC - Web development Model-View-Controller for Java web application development Shan He School for Computational Science University of Birmingham Module 06-19321: SSC Outline Outline of Topics Java Server
More informationHello World Portlet Rendered with JSP for WebSphere Portal Version 4.1
1 of 11 16.10.2002 11:41 Hello World Portlet Rendered with JSP for WebSphere Portal Version 4.1 Table of Contents Creating the directory structure Creating the Java code Compiling the code Creating the
More informationOutline. 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 informationDeveloping XML Solutions with JavaServer Pages Technology
Developing XML Solutions with JavaServer Pages Technology XML (extensible Markup Language) is a set of syntax rules and guidelines for defining text-based markup languages. XML languages have a number
More informationCourse Name: Course in JSP Course Code: P5
Course Name: Course in JSP Course Code: P5 Address: Sh No BSH 1,2,3 Almedia residency, Xetia Waddo Duler Mapusa Goa E-mail Id: ITKP@3i-infotech.com Tel: (0832) 2465556 (0832) 6454066 Course Code: P5 3i
More informationCreating 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 informationClass Focus: Web Applications that provide Dynamic Content
Class Focus: Web Applications that provide Dynamic Content We will learn how to build server-side applications that interact with their users and provide dynamic content Using the Java programming language
More informationWeb Application Architecture (based J2EE 1.4 Tutorial)
Web Application Architecture (based J2EE 1.4 Tutorial) 1 Disclaimer & Acknowledgments Even though Sang Shin is a full-time employee of Sun Microsystems, the contents here are created as his own personal
More informationTopics. Incorporating JSP Custom Tags Into Your Web Apps. A Quick Example of Using One. What They Are. Why Developers Should Consider Them
Incorporating JSP Custom Tags Into Your Web Apps Charles Arehart Founder/CTO, Systemanage Laurel MD Topics Why They Can Be Useful 5 Steps to Using Them Finding Custom Tag Libraries The JSP Standard Tag
More informationCrownPeak Java Web Hosting. Version 0.20
CrownPeak Java Web Hosting Version 0.20 2014 CrownPeak Technology, Inc. All rights reserved. No part of this document may be reproduced or transmitted in any form or by any means, electronic or mechanical,
More informationJava Server Pages Tutorial
Java Server Pages Tutorial JAVA SERVER PAGES TUTORIAL by tutorialspoint.com tutorialspoint.com ABOUT THE TUTORIAL JSP Tutorial Java Server Pages (JSP) is a server-side programming technology that enables
More informationPure 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 informationDTS 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 informationAgenda. 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 informationGlassfish, JAVA EE, Servlets, JSP, EJB
Glassfish, JAVA EE, Servlets, JSP, EJB Java platform A Java platform comprises the JVM together with supporting class libraries. Java 2 Standard Edition (J2SE) (1999) provides core libraries for data structures,
More informationJBoss Portlet Container. User Guide. Release 2.0
JBoss Portlet Container User Guide Release 2.0 1. Introduction.. 1 1.1. Motivation.. 1 1.2. Audience 1 1.3. Simple Portal: showcasing JBoss Portlet Container.. 1 1.4. Resources. 1 2. Installation. 3 2.1.
More informationDevelopment. with NetBeans 5.0. A Quick Start in Basic Web and Struts Applications. Geertjan Wielenga
Web Development with NetBeans 5.0 Quick Start in Basic Web and Struts pplications Geertjan Wielenga Web Development with NetBeans 5 This tutorial takes you through the basics of using NetBeans IDE 5.0
More information2.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 informationGetting Started with Web Applications
3 Getting Started with Web Applications A web application is a dynamic extension of a web or application server. There are two types of web applications: Presentation-oriented: A presentation-oriented
More informationWeb Pages. Static Web Pages SHTML
1 Web Pages Htm and Html pages are static Static Web Pages 2 Pages tagged with "shtml" reveal that "Server Side Includes" are being used on the server With SSI a page can contain tags that indicate that
More informationSESM Tag Library. Configuring a Tag Library APPENDIX
APPENDIX A This appendix provides information on configuring an SESM tag library and describes the SESM tag libraries other than the Localization tag library: Iterator Tag Library, page A-2 Navigator Tag
More informationPA165 - 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 informationJava 2 Platform, Enterprise Edition (J2EE) Bruno Souza Java Technologist, Sun Microsystems, Inc.
Java 2 Platform, Enterprise Edition (J2EE) Bruno Souza Java Technologist, Sun Microsystems, Inc. J1-680, Hapner/Shannon 1 Contents The Java 2 Platform, Enterprise Edition (J2EE) J2EE Environment APM and
More informationJava Application Developer Certificate Program Competencies
Java Application Developer Certificate Program Competencies After completing the following units, you will be able to: Basic Programming Logic Explain the steps involved in the program development cycle
More informationWIRIS quizzes web services Getting started with PHP and Java
WIRIS quizzes web services Getting started with PHP and Java Document Release: 1.3 2011 march, Maths for More www.wiris.com Summary This document provides client examples for PHP and Java. Contents WIRIS
More informationCourse Information Course Number: IWT 1229 Course Name: Web Development and Design Foundation
Course Information Course Number: IWT 1229 Course Name: Web Development and Design Foundation Credit-By-Assessment (CBA) Competency List Written Assessment Competency List Introduction to the Internet
More informationA DIAGRAM APPROACH TO AUTOMATIC GENERATION OF JSP/SERVLET WEB APPLICATIONS
A DIAGRAM APPROACH TO AUTOMATIC GENERATION OF JSP/SERVLET WEB APPLICATIONS Kornkamol Jamroendararasame, Tetsuya Suzuki and Takehiro Tokuda Department of Computer Science Tokyo Institute of Technology Tokyo
More informationPowerTier Web Development Tools 4
4 PowerTier Web Development Tools 4 This chapter describes the process of developing J2EE applications with Web components, and introduces the PowerTier tools you use at each stage of the development process.
More informationCSI 2132 Lab 8. Outline. Web Programming JSP 23/03/2012
CSI 2132 Lab 8 Web Programming JSP 1 Outline Web Applications Model View Controller Architectures for Web Applications Creation of a JSP application using JEE as JDK, Apache Tomcat as Server and Netbeans
More informationPHP and XML. Brian J. Stafford, Mark McIntyre and Fraser Gallop
What is PHP? PHP and XML Brian J. Stafford, Mark McIntyre and Fraser Gallop PHP is a server-side tool for creating dynamic web pages. PHP pages consist of both HTML and program logic. One of the advantages
More informationwww.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 informationAnnouncements. Comments on project proposals will go out by email in next couple of days...
Announcements Comments on project proposals will go out by email in next couple of days... 3-Tier Using TP Monitor client application TP monitor interface (API, presentation, authentication) transaction
More informationOracle WebLogic Server
Oracle WebLogic Server Developing Web Applications, Servlets, and JSPs for Oracle WebLogic Server 10g Release 3 (10.3) July 2008 Oracle WebLogic Server Developing Web Applications, Servlets, and JSPs for
More informationWeb 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 informationOutline. Lecture 18: Ruby on Rails MVC. Introduction to Rails
Outline Lecture 18: Ruby on Rails Wendy Liu CSC309F Fall 2007 Introduction to Rails Rails Principles Inside Rails Hello World Rails with Ajax Other Framework 1 2 MVC Introduction to Rails Agile Web Development
More informationAn introduction to creating JSF applications in Rational Application Developer Version 8.0
An introduction to creating JSF applications in Rational Application Developer Version 8.0 September 2010 Copyright IBM Corporation 2010. 1 Overview Although you can use several Web technologies to create
More informationCSE 510 Web Data Engineering
CSE 510 Web Data Engineering Introduction UB CSE 510 Web Data Engineering Staff Instructor: Dr. Michalis Petropoulos Office Hours: Location: TA: Demian Lessa Office Hours: Location: Mon & Wed @ 1-2pm 210
More informationJava 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 informationJava Web Programming. Student Workbook
Student Workbook Java Web Programming Mike Naseef, Jamie Romero, and Rick Sussenbach Published by ITCourseware, LLC., 7245 South Havana Street, Suite 100, Centennial, CO 80112 Editors: Danielle Hopkins
More informationTutorial: Building a Web Application with Struts
Tutorial: Building a Web Application with Struts Tutorial: Building a Web Application with Struts This tutorial describes how OTN developers built a Web application for shop owners and customers of the
More informationJSP. Common patterns
JSP Common patterns Common JSP patterns Page-centric (client-server) CLIENT JSP or Servlet CLIENT Enterprise JavaBeans SERVER DB Common JSP patterns Page-centric 1 (client-server) Page View request response
More information10CS73:Web Programming
10CS73:Web Programming Question Bank Fundamentals of Web: 1.What is WWW? 2. What are domain names? Explain domain name conversion with diagram 3.What are the difference between web browser and web server
More informationWeb-JISIS Reference Manual
23 March 2015 Author: Jean-Claude Dauphin jc.dauphin@gmail.com I. Web J-ISIS Architecture Web-JISIS Reference Manual Web-JISIS is a Rich Internet Application (RIA) whose goal is to develop a web top application
More informationEfficiency of Web Based SAX XML Distributed Processing
Efficiency of Web Based SAX XML Distributed Processing R. Eggen Computer and Information Sciences Department University of North Florida Jacksonville, FL, USA A. Basic Computer and Information Sciences
More informationWeb Development. Owen Sacco. ICS2205/ICS2230 Web Intelligence
Web Development Owen Sacco ICS2205/ICS2230 Web Intelligence Introduction Client-Side scripting involves using programming technologies to build web pages and applications that are run on the client (i.e.
More informationProposal for DSpace Web MVC
Proposal for DSpace Web MVC QIN ZHENGQUAN Short description: In my experiences of building enterprise applications (Tourist Portal and Video rental system) my JSP pages were often peppered with scriptlets
More informationDeveloping Web Applications using JavaServer Pages and Servlets
Redpaper Martin Keen Rafael Coutinho Sylvi Lippmann Salvatore Sollami Sundaragopal Venkatraman Steve Baber Henry Cui Craig Fleming Developing Web Applications using JavaServer Pages and Servlets This IBM
More informationWeb. Services. Web Technologies. Today. Web. Technologies. Internet WWW. Protocols TCP/IP HTTP. Apache. Next Time. Lecture #3 2008 3 Apache.
JSP, and JSP, and JSP, and 1 2 Lecture #3 2008 3 JSP, and JSP, and Markup & presentation (HTML, XHTML, CSS etc) Data storage & access (JDBC, XML etc) Network & application protocols (, etc) Programming
More informationAccessing Data with ADOBE FLEX 4.6
Accessing Data with ADOBE FLEX 4.6 Legal notices Legal notices For legal notices, see http://help.adobe.com/en_us/legalnotices/index.html. iii Contents Chapter 1: Accessing data services overview Data
More informationJava 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 information4.2 Understand Microsoft ASP.NET Web Application Development
L E S S O N 4 4.1 Understand Web Page Development 4.2 Understand Microsoft ASP.NET Web Application Development 4.3 Understand Web Hosting 4.4 Understand Web Services MTA Software Fundamentals 4 Test L
More informationModern Web Application Framework Python, SQL Alchemy, Jinja2 & Flask
Modern Web Application Framework Python, SQL Alchemy, Jinja2 & Flask Devert Alexandre December 29, 2012 Slide 1/62 Table of Contents 1 Model-View-Controller 2 Flask 3 First steps 4 Routing 5 Templates
More informationCONTROLLING 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 informationInstructor: Betty O Neil
Introduction to Web Application Development, for CS437/637 Instructor: Betty O Neil 1 Introduction: Internet vs. World Wide Web Internet is an interconnected network of thousands of networks and millions
More informationA Guide to Understanding Web Application Development Corey Benson, SAS Institute, Inc., Cary, NC Robert Girardin, SAS Institute, Inc.
Paper 024-29 A Guide to Understanding Web Application Development Corey Benson, SAS Institute, Inc., Cary, NC Robert Girardin, SAS Institute, Inc., Cary, NC ABSTRACT You have been asked by your manager
More informationJava 2 Web Developer Certification Study Guide Natalie Levi
SYBEX Index Java 2 Web Developer Certification Study Guide Natalie Levi Index Copyright 2002 SYBEX Inc., 1151 Marina Village Parkway, Alameda, CA 94501. World rights reserved. No part of this publication
More informationWeb Presentation Layer Architecture
Chapter 4 Web Presentation Layer Architecture In this chapter we provide a discussion of important current approaches to web interface programming based on the Model 2 architecture [59]. From the results
More informationBuilding and Using Web Services With JDeveloper 11g
Building and Using Web Services With JDeveloper 11g Purpose In this tutorial, you create a series of simple web service scenarios in JDeveloper. This is intended as a light introduction to some of the
More informationJava 7 Recipes. Freddy Guime. vk» (,\['«** g!p#« Carl Dea. Josh Juneau. John O'Conner
1 vk» Java 7 Recipes (,\['«** - < g!p#«josh Juneau Carl Dea Freddy Guime John O'Conner Contents J Contents at a Glance About the Authors About the Technical Reviewers Acknowledgments Introduction iv xvi
More informationWeb Frameworks and WebWork
Web Frameworks and WebWork Problem area Mixing application logic and markup is bad practise Harder to change and maintain Error prone Harder to re-use public void doget( HttpServletRequest request, HttpServletResponse
More informationASP.NET: THE NEW PARADIGM FOR WEB APPLICATION DEVELOPMENT
ASP.NET: THE NEW PARADIGM FOR WEB APPLICATION DEVELOPMENT Dr. Mike Morrison, University of Wisconsin-Eau Claire, morriscm@uwec.edu Dr. Joline Morrison, University of Wisconsin-Eau Claire, morrisjp@uwec.edu
More informationProgramming the Web Server. Robert M. Dondero, Ph.D. Princeton University
Programming the Web Server Robert M. Dondero, Ph.D. Princeton University 1 Objectives You will learn: How to "program the web server" using... PHP JSP 2 Previously CGI Programming Browser Socket HTTP Web
More informationSoftware Architecture
Software Architecture Definitions http://www.sei.cmu.edu/architecture/published_definiti ons.html ANSI/IEEE Std 1471-2000, Recommended Practice for Architectural Description of Software- Intensive Systems
More informationThe end. Carl Nettelblad 2015-06-04
The end Carl Nettelblad 2015-06-04 The exam and end of the course Don t forget the course evaluation! Closing tomorrow, Friday Project upload deadline tonight Book presentation appointments with Kalyan
More informationCase Studies of Running the Platform. NetBeans UML Servlet JSP GlassFish EJB
September Case Studies of Running the Platform NetBeans UML Servlet JSP GlassFish EJB In this project we display in the browser the Hello World, Everyone! message created in the session bean with servlets
More informationVirtual Credit Card Processing System
The ITB Journal Volume 3 Issue 2 Article 2 2002 Virtual Credit Card Processing System Geraldine Gray Karen Church Tony Ayres Follow this and additional works at: http://arrow.dit.ie/itbj Part of the E-Commerce
More informationWeb Service Development Using CXF. - Praveen Kumar Jayaram
Web Service Development Using CXF - Praveen Kumar Jayaram Introduction to WS Web Service define a standard way of integrating systems using XML, SOAP, WSDL and UDDI open standards over an internet protocol
More informationMastering Tomcat Development
hep/ Mastering Tomcat Development Ian McFarland Peter Harrison '. \ Wiley Publishing, Inc. ' Part I Chapter 1 Chapter 2 Acknowledgments About the Author Introduction Tomcat Configuration and Management
More informationWhite Paper. JavaServer Faces, Graphical Components from Theory to Practice
White Paper JavaServer Faces, Graphical Components from Theory to Practice JavaServer Faces, Graphical Components from Theory to Practice White Paper ILOG, April 2005 Do not duplicate without permission.
More informationShort notes on webpage programming languages
Short notes on webpage programming languages What is HTML? HTML is a language for describing web pages. HTML stands for Hyper Text Markup Language HTML is a markup language A markup language is a set of
More informationJBoss SOAP Web Services User Guide. Version: 3.3.0.M5
JBoss SOAP Web Services User Guide Version: 3.3.0.M5 1. JBoss SOAP Web Services Runtime and Tools support Overview... 1 1.1. Key Features of JBossWS... 1 2. Creating a Simple Web Service... 3 2.1. Generation...
More informationCourse Number: IAC-SOFT-WDAD Web Design and Application Development
Course Number: IAC-SOFT-WDAD Web Design and Application Development Session 1 (10 Hours) Client Side Scripting Session 2 (10 Hours) Server Side Scripting - I Session 3 (10 hours) Database Session 4 (10
More informationT320 E-business technologies: foundations and practice
T320 E-business technologies: foundations and practice Block 3 Part 2 Activity 2: Generating a client from WSDL Prepared for the course team by Neil Simpkins Introduction 1 WSDL for client access 2 Static
More informationWeb 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 informationWWW. World Wide Web Aka The Internet. dr. C. P. J. Koymans. Informatics Institute Universiteit van Amsterdam. November 30, 2007
WWW World Wide Web Aka The Internet dr. C. P. J. Koymans Informatics Institute Universiteit van Amsterdam November 30, 2007 dr. C. P. J. Koymans (UvA) WWW November 30, 2007 1 / 36 WWW history (1) 1968
More informationWeb Application Developer s Guide
Web Application Developer s Guide VERSION 8 Borland JBuilder Borland Software Corporation 100 Enterprise Way, Scotts Valley, CA 95066-3249 www.borland.com Refer to the file deploy.html located in the redist
More information15-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 informationWeb and e-business Technologies
ActivePotato Corporation www.activepotato.com Web and e-business Technologies By Rohit Chugh rohit.chugh@activepotato.com For the IEEE Ottawa Chapter June 2, 2003 2003 by Rohit Chugh 1 Agenda Web Technologies
More informationApplets, RMI, JDBC Exam Review
Applets, RMI, JDBC Exam Review Sara Sprenkle Announcements Quiz today Project 2 due tomorrow Exam on Thursday Web programming CPM and servlets vs JSPs Sara Sprenkle - CISC370 2 1 Division of Labor Java
More informationCore Java+ J2EE+Struts+Hibernate+Spring
Core Java+ J2EE+Struts+Hibernate+Spring Java technology is a portfolio of products that are based on the power of networks and the idea that the same software should run on many different kinds of systems
More informationChapter 13 Computer Programs and Programming Languages. Discovering Computers 2012. Your Interactive Guide to the Digital World
Chapter 13 Computer Programs and Programming Languages Discovering Computers 2012 Your Interactive Guide to the Digital World Objectives Overview Differentiate between machine and assembly languages Identify
More informationACM 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 informationCS 55.17. Developing Web Applications with Java Technologies
CS 55.17 Developing Web Applications with Java Technologies Class Introduction Instructor: David B. Pearson Email: Dpearson@SantaRosa.edu Yahoo! ID: DavidPearson Website: http://www.santarosa.edu/~dpearson/
More informationDrupal CMS for marketing sites
Drupal CMS for marketing sites Intro Sample sites: End to End flow Folder Structure Project setup Content Folder Data Store (Drupal CMS) Importing/Exporting Content Database Migrations Backend Config Unit
More informationCredits: Some of the slides are based on material adapted from www.telerik.com/documents/telerik_and_ajax.pdf
1 The Web, revisited WEB 2.0 marco.ronchetti@unitn.it Credits: Some of the slides are based on material adapted from www.telerik.com/documents/telerik_and_ajax.pdf 2 The old web: 1994 HTML pages (hyperlinks)
More informationAdvantages of PML as an iseries Web Development Language
Advantages of PML as an iseries Web Development Language What is PML PML is a highly productive language created specifically to help iseries RPG programmers make the transition to web programming and
More informationJava 2 Web Developer Certification Study Guide Natalie Levi; Philip Heller
SYBEX Index Java 2 Web Developer Certification Study Guide Natalie Levi; Philip Heller Index Copyright 2002 SYBEX Inc., 1151 Marina Village Parkway, Alameda, CA 94501. World rights reserved. No part of
More informationJ2EE 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 informationReporting and JSF. Possibilities, solutions, challenges. Slide 1. Copyright 2009, Andy Bosch, www.jsf-portlets.net
Reporting and JSF Possibilities, solutions, challenges Slide 1 Agenda What is reporting? Why do we need it? The JSF example application Introduction to reporting engines Overview Eclipse BIRT JasperReports
More information