WDD_lec_38 - JSP Tag Libraries Lec 38 Last Lecture Example...

Info iconThis preview shows pages 1–9. Sign up to view the full content.

View Full Document Right Arrow Icon
    JSP Tag Libraries Lec - 38
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
    Last Lecture Example We incorporated JavaBeans in “Course Outline”  Example web.jsp As discussed, JSPs are built for presentation  purpose  
Background image of page 2
    Last Lecture Example What if we replace all code of scriptlet with one single  line (custom tag)    <%          CourseDAO courseDAO = new CourseDAO();           ……          for ( ……. ) {           ……. .          }          ……     %> <mytag:displaycourse pageName=“java” />
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
    Contents What is a Custom Tag ? Why build Custom Tag? Types of Tags Developing Custom Tags Using Custom Tags Examples
Background image of page 4
    What is Custom Tag ? A user defined component to perform certain  action. Provides mechanism for encapsulating complex  functionality for use in JSPs.  tags <jsp:useBean/> <jsp:include/> <jsp:forward/> etc
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
    Advantages More cleaner separation of processing logic and  presentation, than Java Beans Have access to all the JSP page objects  Can be customized using attributes
Background image of page 6
    Types of Tags
Background image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
    Types of Tags 1. Simple Tag 1. Tag with Attributes 1. Tag with Body
Background image of page 8
Image of page 9
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 28

WDD_lec_38 - JSP Tag Libraries Lec 38 Last Lecture Example...

This preview shows document pages 1 - 9. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online