Date Tag
Steps - Basic Tag
- Create deployment descriptor. Path
- Create tag class. Path Note
- Compile tag class
- Add tag element to deployment descriptor.
- Create jsp page that uses our tag lib.
- Run UseDate.jsp
Steps - Add "format" Attribute
- Update deployment descriptor.
- Add "setter" method to tag class.
- Update UseDate.jsp.
- Run it
Final Source
Source: UseDate.jsp
Source: /WEB-INF/taglib.tld
Source: smartsoft/tutorial/tags/DateTag.java
Run It
UseDate.jsp