1 / 28

J2EE Web Fundamentals Lesson 9 JSTL

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 >

kyria
Télécharger la présentation

J2EE Web Fundamentals Lesson 9 JSTL

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. J2EE Web FundamentalsLesson 9JSTL Instructor: Dr. Segun Adekile

  2. 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

  3. Objectives

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

  5. JSTL – JSP Standard Tag Library

  6. <c:forEach>

  7. <c:forEach>

  8. <c:forEach>

  9. <c:if>

  10. <c:if>

  11. <c:choose>

  12. <c:choose>

  13. <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;.

  14. <c:out> example

  15. <c:out> example

  16. <c:set>

  17. <c:set>

  18. <c:set>

  19. <c:remove>

  20. <c:import>

  21. <c:url>

  22. Error pages

  23. Error pages

  24. Error pages

  25. Error pages

  26. <c:catch>

  27. Recap

More Related