Java for the WWW November 2012 Slide 1 [email protected]Tag Libraries • What are they? – Custom libraries • Custom tags – see examples in following slides – Standard Tag Library (JSTL) – recommend that you read the following: • http://today.java.net/pub/a/today/2003/10/07/js tl1.html • http://today.java.net/pub/a/today/2003/11/27/js tl2.html • Purpose and benefits for JSP web development – Lot of development and includes the AJAX technology but this is outside the scope of this module • For further reading on Tag libraries – here is nice tutorial to back up the following notes <link>
13
Embed
Java for the WWW November 2012Slide [email protected] Tag Libraries What are they? –Custom libraries Custom tags – see examples in following slides.
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
• You Java class needs to extend the TagSupport class.
• This class is only available in the Enterprise version of the Java Development Kit (from version 1.3.1).
• Or, the Java Web Services Developer Pack.
• However, you just need the lib/j2ee.jap file (in the case of J2EE) or the lib/servlet.jar for the JWSDP.
• You can then extract the javax.servlet.jsp.tagext class from the .jar file (using WinZip etc.) and put it into folder containing your tag classes – see screen grab on next powerpoint