Answer Posted / ravi
Custom tags are 5 type they are
1. simple custom tag
2. param custom tag
3. iterator custom tag
4. body custom tag
5. nested custom tag
if we want write a simple custom tags, we need to follow
these 5 steps
1. we need write directory taglib and uri to ur jsp page
2. we need call custom tag to ur jsp page
3. we need declare taglib uri and taglib loaction in web.xml
4. we need write taglib Discriptor(TLD) file
5. we need write tag handler class
if u want to write tag handler class, our class must
implements tag interface, it available in
javax.servlet.jsp.tagext.Tag package
Tag is an Interface it contains 6 abstract methods and 4
constant variables i.e,
Abstract methods Constants
PageContext EVAL_BODY_INCLUDE
setParent SKIP_BODY
getParent EVAL_PAGE
doStartTag SKIP_PAGE
doEndTag
relase
it contain some more explanation is there....!
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Which non-unicode letter characters may be used as the first character of an identifier?
take an array with -ve and +ve value both.find out the nearest value of 0(zero).if two values are same like(-2 and +2)then extract +2 is nearest of 0(zero).
how to write a program for sending mails between client and server
What is the significance of listiterator?
Can an object be null?
State differences between C and Java?
what do you understand by synchronization? : Java thread
What is constructor chaining in java?
How do I print a “?
Can we call virtual funciton in a constructor ?
What is difference between string and new string?
How many bits is a float?
What are features of java?
Explain inheritance in java?
Why do you canvas?