what is the use of custom tags? with example?



what is the use of custom tags? with example?..

Answer / namita

custom tags are userdefined tags.

use of custom tags is u can defined ur own tags in ur code.
u need not to depend upon system defined tags. u can create
and use ur own tags.

eg,

<email>
<to></to>
<from></from>
</email>

u just need to define this tags in xml file and use that
tags in ur code by including <@taglib> directive.

Is This Answer Correct ?    2 Yes 0 No

Post New Answer

More Core Java Interview Questions

Can we add two byte variables and assign the result to a byte variable ? b=b1+b2 where b,b1,b2 are byte types

4 Answers   TCS,


Is null a string?

0 Answers  


what is request processor?

1 Answers   Virtusa,


What exactly is a .class file?

0 Answers  


Write a program to reverse a number in java?

0 Answers  


What is an object in Java and what are its benefits?

4 Answers   IBM,


When is the finally clause of a try-catch-finally statement executed?

0 Answers  


can abstract class have constructor how can you achive this ?

4 Answers   Fidelity,


Differentiate Vector and ArrayList?

6 Answers   Max Telecom, Wipro,


How do you decide when to use arraylist and linkedlist?

0 Answers  


what is the form of storage space in java?

5 Answers  


Does java have a compiler?

0 Answers  


Categories