Web browser Web server HTML request Scripted pagedatabase The following components will be used: Apache Jakarta Tomcat servlet engine Derby JavaServer.

Slides:



Advertisements
Similar presentations
9 Copyright © 2005, Oracle. All rights reserved. Modularizing JavaServer Pages Development with Tags.
Advertisements

JavaServerPages Some examples. About JSP Java server pages are a combination of html (or xml), java code appearing within tagged regions, and structures.
Servlets Enterprise Systems Programming. Servlets  Servlets: server-side Java programs that enable dynamic processing of web-based requests  Web-based.
Using JavaServer Pages Harry R. Erwin, PhD CIT304/CSE301.
JSP: JavaServer Pages Juan Cruz Kevin Hessels Ian Moon.
WEB1P servintro1 Introduction to servlets and JSP Dr Jim Briggs.
Fast Track to ColdFusion 9. Getting Started with ColdFusion Understanding Dynamic Web Pages ColdFusion Benchmark Introducing the ColdFusion Language Introducing.
DT211/3 Internet Application Development
18-Jun-15 JSP Java Server Pages Reference: Tutorial/Servlet-Tutorial-JSP.html.
CS320 Web and Internet Programming JSP Scripting Elements and Page Directives Chengyu Sun California State University, Los Angeles.
JSP Java Server Pages Reference:
Layers & Tiers Umair Javed Lec - 41.
DT228/3 Web Development JSP: Directives and Scripting elements.
Apache Tomcat Server Typical html Request/Response cycle
DT228/3 Web Development Databases. Database Almost all web application on the net access a database e.g. shopping sites, message boards, search engines.
Java Server Pages Russell Beale. What are Java Server Pages? Separates content from presentation Good to use when lots of HTML to be presented to user,
DT211/3 Internet Application Development Databases.
Web programming for project students Dr Jim Briggs.
JavaServer Pages TM Introduce by
Introduction to Java web programming Dr Jim Briggs JWP intro1.
Intro to Servlets Lec 26. Web-Based Enterprise Applications in Java Figure shows a simplified view of one application and its layers.
Eclipse is an open source IDE (Integrated Development Environment) for developing applications in Java, C/C++, HTML, Cobol, Perl, etc. The official Eclipse.
Java Server Pages CS-422. What are JSPs A logical evolution of java servlets –most servlets dynamically create HTML and integrate it with some computational.
M. Taimoor Khan * Java Server Pages (JSP) is a server-side programming technology that enables the creation of dynamic,
JSP Standard Tag Library
JSP Tag Library CSCI 4300 Notes from Steve Small, /jw-0228-jstl.html.
JSP Java Server Pages Softsmith Infotech.
Deploying CFML on J2EE Servers Vince Bonfanti President New Atlanta Communications, LLC.
JSTL JSP Standard Tag Library 12-Oct-15. W HAT IS JSTL? JSTL (JSP Standard Tag Libraries) is a collection of JSP custom tags developed by Java Community.
Struts J2EE web application framework “ Model 2 ” Model View Controller Controller Servlet Key features XML metadata Struts taglib Simplified form validation.
Stanisław Osiński, 2002JSP – A technology for serving dynamic web content Java Server Pages™ A technology for serving dynamic web content Stanisław Osiński,
Fall CIS 764 Database Systems Design L8. Web ….
JSTL, XML and XSLT An introduction to JSP Standard Tag Library and XML/XSLT transformation for Web layout.
March 28, 2001XSP Session O’Reilly Enterprise Java Conference 1 XSP Session Sue Spielman President/Consulting Engineer President/Consulting Engineer
JSTL Lec Umair©2006, All rights reserved JSTL (ni) Acronym of  JavaServer Pages Standard Tag Library JSTL (like JSP) is a specification, not an.
JSP Fundamentals Elements of a JSP Using Beans with JSP Integrating Servlets and JSP.
Chapter 5 Generating Dynamic Content. Creating a JSP Page A Sample JSP Page: easy.jsp JSP is Easy JSP is as easy as =
Jsp (Java Server Page) Is a server side program.
Copyright © 2002 ProsoftTraining. All rights reserved. JavaServer Pages.
JSTL The JavaServer Pages Standard Tag Library (JSTL) is a collection of useful JSP tags which encapsulates core functionality common to many JSP applications.
DT228/3 Web Development Databases. Querying a database: Partial info Search engines, on-line catalogues often need to allow user to search a database.
3/6/00jsp00 1 Java Server Pages Nancy McCracken Northeast Parallel Architectures Center at Syracuse University.
Chapter 9 Using JSTL. Sometimes you need more than EL or standard actions What if you want to loop through the data in an array, and display one item.
An Introduction to JavaServer™ Pages Prepared by Nicole Swan.
WHAT IS SERVER SIDE SCRIPTING? Server-side scripting is a web server technology in which a user's request is verified by running a script directly on the.
OOSSE Week 8 JSP models Format of lecture: Assignment context JSP models JSPs calling other JSPs i.e. breaking up work Parameter passing JSPs with Add.
An Introduction to JavaServer™ Pages Prepared by Nicole Swan.
CS562 Advanced Java and Internet Application Introduction to the Computer Warehouse Web Application. Java Server Pages (JSP) Technology. By Team Alpha.
JAVA BEANS JSP - Standard Tag Library (JSTL) JAVA Enterprise Edition.
Basic JSP Celsina Bignoli Problems with Servlets Servlets contain –request processing, –business logic –response generation all lumped.
COMP9321 Web Application Engineering Semester 2, 2015 Dr. Amin Beheshti Service Oriented Computing Group, CSE, UNSW Australia Week 3 1COMP9321, 15s2, Week.
Core basic Java web server technologies. Tools Eclipse IDE for Java EE Developers (Netbeans also works) nloads/packages/eclipse-
Chapter 3 JSP Overview. The Problem with Servlets processing the request and generating the response are both handled by a single servlet class Java programming.
STRUCTURE OF JSP PRESENTED BY: SIDDHARTHA SINGH ( ) SOMYA SHRIVASTAV ( ) SONAM JINDAL ( )
JSP Standard Tag Library (JSTL) Internet Computing KUT Youn-Hee Han.
Chapter 6 Chapter 6 Server Side Programming (JSP) Part 1 1 (IS 203) WebProgramming (IS 203) Web Programming.
 Java Server Pages (JSP) By Offir Golan. What is JSP?  A technology that allows for the creation of dynamically generated web pages based on HTML, XML,
Java Programming: Advanced Topics 1 Building Web Applications Chapter 13.
10 Copyright © 2004, Oracle. All rights reserved. Building ADF View Components.
Lecture Transforming Data: Using Apache Xalan to apply XSLT transformations Marc Dumontier Blueprint Initiative Samuel Lunenfeld Research Institute.
A Presentation Presentation On JSP On JSP & Online Shopping Cart Online Shopping Cart.
Struts 2 Development. Topics  Roles in Struts Development  Control Flow  Actions  Struts 2 Views and Target  Struts 2 Custom Tags  Validation 
JSP: Actions elements and JSTL
JSP (Java Server Page) JSP is server side technology which is used to create dynamic web pages just like Servlet technology. This is mainly used for implementing.
COMP9321 Web Application Engineering Semester 2, 2017
Knowledge Byte In this section, you will learn about:
Chengyu Sun California State University, Los Angeles
Introduction to Struts
MSIS 655 Advanced Business Applications Programming
JSP Standard Tag Library
Presentation transcript:

Web browser Web server HTML request Scripted pagedatabase The following components will be used: Apache Jakarta Tomcat servlet engine Derby JavaServer Pages Standard Tag Library (JSTL) WTP Apache Jakarta Tomcat servlet engine Derby JavaServer Pages Standard Tag Library (JSTL) Eclipse support for creating an Testing Web Applications Internet Explorer, Firefox, or internal browser

JSTL (JavaServerPages Standard Tag Library) The JSP Standard Template Library (JSTL) is a very new component released by Sun for JSP programming. JSTL allows you to program your JSP pages using tags, rather than the scriptlet code that most JSP programmers are already accustomed to. JSTL was introduced was to allow JSP programmers to program using HTML-style tags rather than Java code.

Count to 10 Example (using JSTL) Count to 10 in JSP scriptlet JSP vs. JSTL

JSTL (JavaServerPages Standard Tag Library) The JSP Standard Tag Library (JSTL) is a collection of custom tag libraries that implement general-purpose functionality common to Web applications, including iteration and conditionalization, data management formatting, manipulation of XML, and database access. Core Tag Library – looping, expression evaluation, basic input/output Formatting/Internationalization Tag Library – parsing data, such as dates. Database Tag Library – tags that can be used to access SQL databases XML Tag Library – tags can be used to access XML elements

JSTL (JavaServerPages Standard Tag Library) Count to 10 Example (using JSTL) Core Tag Library Example

Core XML Formatting Database Taglib for JSTL Components

Guess what computer language I am thinking of?

Check Language You guessed it! You are wrong

Check Language You guessed it! You are wrong

Check Language You guessed it! You are wrong

JSTL (JavaServerPages Standard Tag Library) Database Tag Library The Available Actions There are six actions provided in this tag library: for exporting a variable that defines a data source for querying to the database for updating the database for establishing a transaction context for doing queries and updates for setting parameter markers ("?") used in SQL statements.

JSTL (JavaServerPages Standard Tag Library) Database Tag Library <sql:setDataSource var=“datasource” driver=“org.gjt.mm.mysql.driver“ url="jdbc:mysql://localhost/db” user="guest" password="guest"/> Setting the datasource:

JSTL (JavaServerPages Standard Tag Library) Database Tag Library <sql:query var="titles" sql="SELECT * FROM books WHERE title = 'JSTL' ORDER BY author" <sql:query var="titles“ SELECT * FROM books WHERE title = 'JSTL' ORDER BY author Issuing a query:

JSTL (JavaServerPages Standard Tag Library) SELECT CITY_NAME, COUNTRY, AIRPORT FROM APP.CITIES ORDER BY \ CITY_NAME, COUNTRY Database Tag Library

Find a Movie Search.html

Movie Locator <sql:setDataSource driver="org.apache.derby.jdbc.ClientDriver" url ="jdbc:derby://localhost:1527/famudb" user="bob" password="bob" /> SELECT * from movies where title='${param.moviename}' findAMovie.jsp