JSP Standard Tag Library (JSTL) Internet Computing KUT Youn-Hee Han.

Slides:



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

8 Copyright © 2005, Oracle. All rights reserved. Creating the Web Tier: JavaServer Pages.
JSP and web applications
A Blackboard Building Block™ Crash Course for Web Developers
JavaServerPages Some examples. About JSP Java server pages are a combination of html (or xml), java code appearing within tagged regions, and structures.
WEB1P servintro1 Introduction to servlets and JSP Dr Jim Briggs.
DT211/3 Internet Application Development
Generate Dynamic Content On Cache Server Master’s Project Proposal by Aparna Yeddula.
CS320 Web and Internet Programming JSP Standard Tag Library (JSTL) Chengyu Sun California State University, Los Angeles.
CS 112 Intro to Computer Science II Sami Rollins Spring 2007.
DT228/3 Web Development JSP: Directives and Scripting elements.
Three types of scripting elements: 1.Expressions 2.Scriptlets 3.Declarations Scripting elements.
Web programming for project students Dr Jim Briggs.
Introduction to Java web programming Dr Jim Briggs JWP intro1.
Eclipse is an open source IDE (Integrated Development Environment) for developing applications in Java, C/C++, HTML, Cobol, Perl, etc. The official Eclipse.
 2002 Prentice Hall. All rights reserved. JavaServer Pages.
JSP Standard Tag Library
Java for the WWW November 2012Slide Tag Libraries What are they? –Custom libraries Custom tags – see examples in following slides.
JSP Tag Library CSCI 4300 Notes from Steve Small, /jw-0228-jstl.html.
CSC 2720 Building Web Applications Using Java Beans, Custom Tags and Tag Libraries in JSP pages.
Internationalization and the Java Stack Matt Wheeler.
Using JavaBeans and Custom Tags in JSP Lesson 3B / Slide 1 of 37 J2EE Web Components Pre-assessment Questions 1.The _____________ attribute of a JSP page.
® IBM Software Group © 2007 IBM Corporation JSP Custom Tags
Organization of the platform Your application Java language Java Servlet API JavaServer Pages (JSP) JSTL Your web pages.
Middleware Technology JavaServer Pages (JSP)
CSCI 6962: Server-side Design and Programming Java Server Faces Components and Tags.
Internationalization in the Java Stack Matt Wheeler.
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.
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,
JSTL, XML and XSLT An introduction to JSP Standard Tag Library and XML/XSLT transformation for Web layout.
PHP - Basic Language Constructs CSCI 297 Scripting Languages - Day Two.
JSTL Lec Umair©2006, All rights reserved JSTL (ni) Acronym of  JavaServer Pages Standard Tag Library JSTL (like JSP) is a specification, not an.
Fall 2007cs4201 Advanced Java Programming Umar Kalim Dept. of Communication Systems Engineering
Chapter 7 Using Custom Tag Libraries and the JSP Standard Tag Library.
Department of computer science and engineering Two Layer Mapping from Database to RDF Martin Švihla Research Group Webing Department.
Chapter 5 Generating Dynamic Content. Creating a JSP Page A Sample JSP Page: easy.jsp JSP is Easy JSP is as easy as =
COMP 321 Week 10. Overview Using Beans in JSP Expression Language JSTL Lab 10-1 Introduction Exam Review.
JSTL The JavaServer Pages Standard Tag Library (JSTL) is a collection of useful JSP tags which encapsulates core functionality common to many JSP applications.
Electives autumn 2009 Courses in the 4th semester –Systems development (continued) –2 elective courses N subjects are provided Each of you have to choose.
CS320 Web and Internet Programming Custom Tag Library Chengyu Sun California State University, Los Angeles.
JSP Expression Language (EL) 25-Nov-15. JSP - E XPRESSION L ANGUAGE (EL) Introduction Expression Language was first introduced in JSTL 1.0 (JSP Standard.
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.
JSP Custom Tags. Prerequisites Servlet API Mapping to JSP implicit objects JavaServer Pages Basic syntax Implementation via servlet API XML.
JSP Pages. What and Why of JSP? JSP = Java code imbedded in HTML or XML –Static portion of the page is HTML –Dynamic portion is Java Easy way to develop.
1 Web Programming with Servlets & JSP ASSIGNMENT GUIDELINE.
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.
10 When even JSTL is not enough: custom tag development Sometimes JSTL and standard actions aren’t enough. When you need something custom, and you don’t.
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 ( )
Intermediate JSP Matt Wheeler. Notes This is a training NOT a presentation Please ask questions Prerequisites – Introduction to Java Stack – Basic Java.
JSP JavaServer Pages. What is JSP? Java based technology that simplifies the development of dynamic web sites JSP pages are HTML pages with embedded code.
DT228/3 Web Development JSP: Actions elements and JSTL.
10 Copyright © 2004, Oracle. All rights reserved. Building ADF View Components.
® IBM Software Group © 2007 IBM Corporation JSP Tag Files
CS320 Web and Internet Programming Custom Tag Library Chengyu Sun California State University, Los Angeles.
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 
Web browser Web server HTML request Scripted pagedatabase The following components will be used: Apache Jakarta Tomcat servlet engine Derby JavaServer.
JSP Elements Chapter 2.
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.
Internationalization
CS3220 Web and Internet Programming JSP Standard Tag Library (JSTL)
COMP9321 Web Application Engineering Semester 2, 2017
CS320 Web and Internet Programming JSP Standard Tag Library (JSTL)
Knowledge Byte In this section, you will learn about:
JSP Standard Tag Library
Internet Computing KUT Youn-Hee Han
Presentation transcript:

JSP Standard Tag Library (JSTL) Internet Computing KUT Youn-Hee Han

Web Programming2 JSTL 기본 문법 OR some body content Web root ( ) WEB-INF lib classes jstl.jar standard.jar 다운로드 하여 lib 디렉토리에 추가

Web Programming3 JSTL 기본 JSP 에 taglib Directive 추가 import into your JSP page each JSTL library that the page will reference. taglib directives  core: Basic scripting functions such as loops, conditionals, and input/output  xml: XML processing  fmt: Internationalization and formatting of values such as currency and dates  sql: Database access  fn: JSTL functions

Web Programming4 JSTL “Hello World” JSTL 기본 예제 Setting the value: "Hello World!" / /hellojstl.jsp

Web Programming5 JSTL Sample JSTL Example 1 0) { for (int i=0; i<list.size(); i++) { Data data = (Data) list.get(i); %> … 데이터가 없습니다. <% } %> ${data.title} 데이터가 없습니다.

Web Programming6 JSTL Sample JSTL Example 2 <% String op1 = request.getParameter("option1"); if ( op1 != null ) { %> <% } %> ${param.option1} JSTL Example 3 <% Map likeMap = request.getParameterMap(); String[] like = (String[])likeMap.get("like"); for(int i=0; i<like.length;i++){ %> <% } %> ${i}

Web Programming7 JSTL Sample JSTL Example 4-1 Customer Names <% List addresses = (List)request.getAttribute("addresses"); Iterator addressIter = addresses.iterator(); while(addressIter.hasNext()) { String addr = (String)addressIter.next(); if ((addr != null) && (addr.getLastName() != null) && (addr.getLastName().length() > 0)) { %> <% } else { %> N/A <% } %> Last Updated on:

Web Programming8 JSTL Sample JSTL Example 4-2 Customer Names N/A Last Updated on:

Web Programming9 JSTL Sample JSTL Example 5 ABC " /> ${a} JSTL Example 6 ( 교재 433page 소스코드를 JSTL 코드로 변환 ) " /> ${i}