Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


what is custom tags with example?

Answers were Sorted based on User's Feedback



what is custom tags with example?..

Answer / rakesh

A custom tag is a user-defined JSP language element. When a
JSP page containing a custom tag is translated into a
servlet, the tag is converted to operations on an object
called a tag handler

ex-bodyless tag 2 tags with body
1<tagName attributeName="value"
anotherAttributeName="anotherValue"/>

2.<tagName attributeName="value"
anotherAttributeName="anotherValue">
...tag body...
</tagName>

Is This Answer Correct ?    2 Yes 0 No

what is custom tags with example?..

Answer / rex

JSP technology also provides a mechanism for encapsulating other types of dynamic functionality in custom tags, which are extensions to the JSP language. Custom tags are usually distributed in the form of a tag library, which defines a set of related custom tags and contains the objects that implement the tags.

Is This Answer Correct ?    0 Yes 0 No

what is custom tags with example?..

Answer / 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

More Core Java Interview Questions

What is java full form?

0 Answers  


What are the types of exceptions?

0 Answers  


What is the life cycle of Thread ?

12 Answers   HCL, Varnar Softech,


Why java is considered dynamic?

0 Answers  


In how many ways we can do synchronization in java?

0 Answers  


What does split function do in java?

0 Answers  


explain how many oops concepts available in java with realtime scenarios?

1 Answers   TCS,


What does method mean?

0 Answers  


What is a boolean flag in java?

0 Answers  


what is j2se

3 Answers  


What does regex mean?

0 Answers  


Does unicode support all languages?

0 Answers  


Categories