28
J2EE Web Fundamentals Lesson 9 JSTL Instructor: Dr. Segun Adekile

J2EE Web Fundamentals Lesson 9 JSTL

  • Upload
    kyria

  • View
    69

  • Download
    0

Embed Size (px)

DESCRIPTION

J2EE Web Fundamentals Lesson 9 JSTL. Instructor: Dr. Segun Adekile. Outline. Objectives Course Text Book Basham, Bryan; Sierra, Kathy; Bates, Bert (2012-10-30). Head First Servlets and JSP (Kindle Location 1349). O'Reilly Media. Kindle Edition. JSTL. Objectives. Agenda. < c:forEach > - PowerPoint PPT Presentation

Citation preview

Page 1: J2EE Web Fundamentals Lesson 9 JSTL

J2EE Web FundamentalsLesson 9

JSTL

Instructor: Dr. Segun Adekile

Page 2: J2EE Web Fundamentals Lesson 9 JSTL

Outline

• Objectives• Course Text Book– Basham, Bryan; Sierra, Kathy; Bates, Bert (2012-

10-30). Head First Servlets and JSP (Kindle Location 1349). O'Reilly Media. Kindle Edition.

• JSTL

Page 3: J2EE Web Fundamentals Lesson 9 JSTL

Objectives

Page 4: J2EE Web Fundamentals Lesson 9 JSTL

Agenda• <c:forEach>• <c:if>• <c:choose>• <c:out>• <c:set>• <c:remove>• <c:import>• <c:url>• Error pages• <c:catch>

Page 5: J2EE Web Fundamentals Lesson 9 JSTL

JSTL – JSP Standard Tag Library

Page 6: J2EE Web Fundamentals Lesson 9 JSTL

<c:forEach>

Page 7: J2EE Web Fundamentals Lesson 9 JSTL

<c:forEach>

Page 8: J2EE Web Fundamentals Lesson 9 JSTL

<c:forEach>

Page 9: J2EE Web Fundamentals Lesson 9 JSTL

<c:if>

Page 10: J2EE Web Fundamentals Lesson 9 JSTL

<c:if>

Page 11: J2EE Web Fundamentals Lesson 9 JSTL

<c:choose>

Page 12: J2EE Web Fundamentals Lesson 9 JSTL

<c:choose>

Page 13: J2EE Web Fundamentals Lesson 9 JSTL

<c:out>• It is used to output to the current JspWriter. This is

similar to using the JSP expression <%=scripting language expression %> to write dynamic data to the client.

• The value to be written to the JspWriter is specified as a value attribute. You can use expressions in the value attribute. This allows for the resulting evaluation to be sent to the JspWriter. The <c:out> tag can perform XML character-entity encoding for <, >, &, ", and '. This means that a < will be automatically encoded to &lt;.

Page 14: J2EE Web Fundamentals Lesson 9 JSTL

<c:out> example

Page 15: J2EE Web Fundamentals Lesson 9 JSTL

<c:out> example

Page 16: J2EE Web Fundamentals Lesson 9 JSTL

<c:set>

Page 17: J2EE Web Fundamentals Lesson 9 JSTL

<c:set>

Page 18: J2EE Web Fundamentals Lesson 9 JSTL

<c:set>

Page 19: J2EE Web Fundamentals Lesson 9 JSTL

<c:remove>

Page 20: J2EE Web Fundamentals Lesson 9 JSTL

<c:import>

Page 21: J2EE Web Fundamentals Lesson 9 JSTL

<c:url>

Page 22: J2EE Web Fundamentals Lesson 9 JSTL

Error pages

Page 23: J2EE Web Fundamentals Lesson 9 JSTL

Error pages

Page 24: J2EE Web Fundamentals Lesson 9 JSTL

Error pages

Page 25: J2EE Web Fundamentals Lesson 9 JSTL

Error pages

Page 26: J2EE Web Fundamentals Lesson 9 JSTL

<c:catch>

Page 27: J2EE Web Fundamentals Lesson 9 JSTL

Recap

Page 28: J2EE Web Fundamentals Lesson 9 JSTL