TODAY JAVA SCHOOL

In java school, programming, design, computer general knowledge, web application, software, web services, social media, digital marketing, oops, concept of programming language, oops feature, console media, graphics medium, first programming, c, c ++ , Java, PHP, SQL, MySQL, HTML, HTML_5, J_query, JavaScript, Bootstrap, Framework, images with logos, examples, shared and explained.

https://www.amazon.in/b?node=26373545031&linkCode=ll2&tag=1234567801cdb-21&linkId=3b9882431b00409b44141e0344b35a15&language=en_IN&ref_=as_li_ss_tl

Breaking

Monday, 27 April 2020

JSP Taglib Directive In Java | JSP Taglib Directive Tag In Java

          JSP Taglib Directive

The JSP taglib directive is used to define a tag library that defines many tags. We use the TLD (Tag Library Descriptor) file to define the tags. In the custom tag section we will use this tag so it will be better to learn it in custom tag.

Syntax JSP Taglib directive


   <%@ taglib uri="uriofthetaglibrary" prefix="prefixoftaglibrary" %>  

download image of jsp directive
Fig: JSP Taglib Driective


Example of JSP Taglib directive

 We are using our tag named currentDate. To use this tag we must specify the taglib directive so the container may get information about the tag.

    <html>  
     <body>  
  
     <%@ taglib uri="http://www.blogger.com/tags" prefix="mytag" %>  
  
   <mytag:currentDate/>  
  
    </body>  
    </html>  

No comments:

Post a Comment