Latest Tutorials| Questions and Answers|Ask Questions?|Site Map




Have Programming Question? Ask it here!
 
 
 


P.SURESH
jsp tag
1 Answer(s)      5 years and 7 months ago
Posted in : JSP-Servlet



Advertisement
View Answers

October 13, 2008 at 6:10 PM


Hi friend,


In JavaServer Pages technology, actions are elements that can create and access programming language objects and
affect the output stream.A custom action is invoked by using a custom tag in a JSP page.
A tag library is a collection of custom tags.

Some features of custom tags are:

* They can be customized via attributes passed from the calling page.

* They have access to all the objects available to JSP pages.

* They can modify the response generated by the calling page.


How to declare TagLibrary in Jsp :


Tag libraries are declared by using the <%@taglib %> directive of the JSP.


<%@taglib prifix="nameWhatever" uri="/WEB-INF/tldDirectory/tldName.tld" %>.


Attributes of the taglib directive are as follows:

* uri
* prifix
* tagdir

uri: This is the attribute of the taglib directive in JSP that contains the absolute and relative URIs for the TLD
(Tag Library Descriptor) file which is with the ".tld" extension. This attribute must have the value as Tag
Library Descriptor (TLD).

prefix: This is the attribute of the taglib directive in JSP that is used for naming for the identification of the tag.
You can say simply that this attribute of the taglib directive contains the name of the specified Tags or
the TLDs for using in your JSP code easily and in efficient manner.

tagdir: This is also a type of the taglib directive in JSP that is used for specifying your customized tags.
These customized tags are made by specifying all the action in a file that must have the ".tag" or the ".tld" extension.
This is the used in the place of the uri attribute of the taglib directive of JSP.


For more information and example on Taglibrary in Jsp visit to :

http://www.roseindia.net/jstl/


Thanks



Related Tutorials/Questions & Answers:
jsp tag - JSP-Servlet
stream.A custom action is invoked by using a custom tag in a JSP page. A tag... TagLibrary in Jsp : Tag libraries are declared by using the directive...jsp tag   i am basic jsp learner,so i cann't understand th
JSP include directive tag
JSP include directive tag  What is include directive tag in JSP
Advertisements
JSP tag lib directive
JSP tag lib directive   What is tag lib directive in the JSP?   Hi, The answer is: Defines a tag library and prefix for the custom tags used in the JSP page. Thanks
JSP Directives Tag
JSP Directives Tag   Defined JSP Directives Tag ?   The directive tag gives special information about the page to JSP Engine. This changes the way JSP Engine processes the page. Using directive tag, user can import
jsp:forward tag ussage
jsp:forward tag ussage  can you give me example of how to use jsp:forward tag... i intend to call action class   Hi Friend, Please visit the following links: http://www.roseindia.net/jsp/jsp-forward-request.shtml
Tag extension in JSP
Tag extension in JSP  What is Tag extension in JSP model?   JSP supports the authors to add their own custom tags that perform custom actions. This is performed by using JSP tag extension API. A java class is written
JSP Directive Tag
JSP Directive Tag  What is JSP Directive tag?   Hi, The answer is: The directive tag gives special information about the JSP Engine... packages, specifying the error handling page or to handle sessionin a JSP page. Thanks
Type of JSP Directive Tag
Type of JSP Directive Tag  How many types of directive tag in the JSP?   Hi, The answer is given below: There are three types of directive tag. 1. page 2. Include 3. Tag Lib Thanks
JSP Action Tag
JSP Action Tag   Defined JSP Action Tag ?   Action tag... JSP action tags to either link to a Java Bean set its properties, or get its properties. syntax of Action Tag : <jsp:action attributes /> The most
jsp forward action tag
jsp forward action tag  Defined jsp forward action tag ?   The <jsp:forward> element forwards the request object containing... application context as the forwarding JSP file. Syntax of forward action Tag: <
JSP Scriptlet Tag
JSP Scriptlet Tag   Defined JSP Scriptlet Tag ?   A scriptlet tag is used within a Java Server page to execute a java source code scriplet which is enclosed between "<%" and "%>" tag elements.User can write
Tag Libraries in JSP - JSP-Servlet
Tag Libraries in JSP  What is the role of Tag Libraries in JSP?  Hi friend, I an sending you a link. This link will help you. Please visit for more information. http://www.roseindia.net/jsp/Declare_Tag
Tag library - JSP-Servlet
Tag library  Hi, although i read a lot about tag library in jsp but it's not clear to me please tell me what is tag library and why it's use in struts. Please give me some simple example so that i can make my concept clear
link tag in jsp - JSP-Servlet
link tag in jsp  Hi, how to write link in a jsp page. give me... this in jsp page it will work although it is html tag.  Visit for more information. http://roseindia.net/jsp/jspsession/SessionCount.shtml Thanks
jsp include action tag
jsp include action tag  Defined jsp include action tag ?   The <jsp:include> element allows you to include either a static or dynamic... Tag: <jsp:include page="relativeURL" flush="{true|false}" /> <jsp
JSP page directive tag
JSP page directive tag  What is page directive tag in JSP?.   Hi, The answer given below: The page directive applies to an entire JSP... unit. or Defines attributes that apply to an entire JSP page. Thanks
JSP include directive tag
JSP include directive tag  What is include directive tag in JSP?   Hi, The JSP include directive includes a static file or sends a request to a dynamic file. or The JSP include directive is used to include
jsp:forward tag usage and stntax
jsp:forward tag usage and stntax  jsp:forward tag usage and syntax with an example
how to use image tag in jsp
how to use image tag in jsp  How to use image tag in JSP
JSP page directive tag atributes
JSP page directive tag atributes  The list of the page directive tag attributes in the JSP.   Hi, The list of the JSP page directive tag attributes is: language extends import session info errorPage
JSP Applet Tag - JSP-Servlet
JSP Applet Tag  Hi, I am using Eclipse Ganymede. I have develloped a simple Dynamic Web Project. In this projetc I have Jsp in WebContent Folder and my applet(Basic Hello World Applet) under Java Resources folder. I have jsp
JSP page directive tag syntax
JSP page directive tag syntax  Descibe the syntax of the page directive with example In JSP.   Hi, The JSP page directive tag syntax is: <%@ page attributeName="values" %> The JSP page directive tag
Action tag - JSP-Servlet
Action tag  Hello, I want to help ....i hav one feedback form there is action , .. can i use two action at the same form because i want html page on submitting feedback form and instead of above tag i change form
flush attribute in jsp:include tag - JSP-Servlet
flush attribute in jsp:include tag  what is the use of flush attribute in jsp:include tag ?  hi friend, ------------------------------ Read for more information, http://www.roseindia.net/jsp
What is a Tag Library in JSP
What is a Tag Library in JSP   ... explanation of the Tag Library in JSP. In the Java Server Pages Technology, multiple actions are accessed by using the tags of the JSP whether the tag is standard
Struts ForwardAction vs Forward tag in jsp - Struts
Struts ForwardAction vs Forward tag in jsp  difference between struts ForwardAction class and Forward tag in jsp
JSP include directive tag syntax and example
JSP include directive tag syntax and example  The syntax and example of the JSP include directive tag.   Hi, The syntax of the JSP include... of the JSP include directive tag is: <%@include file="filename" /> Thanks
JSP Tag Libraries
JSP Tag Libraries       JSP Tag Libraries is the collection of standard tags. JSP tags are the Java components that can be used in a JSP file. JSP tag libraries allow us to make Java
jsp tag handler - Java Server Faces Questions
jsp tag handler  How to write tag handler program? what are the classes, methods use? can any explain me step by step. tld file tag handler file jsp file
The AJAX JSP Tag Library
The AJAX JSP Tag Library       The AJAX JSP Tag Library is a set of JSP tags that simplify the use of Asynchronous JavaScript and XML (AJAX) technology in JavaServer Pages. This tag
JSP CUSTOM TAG - Design concepts & design patterns
JSP CUSTOM TAG   I am Barani Kumar I am trying to use jsp custom tag in my web application I want to now advantages in jsp custom tag I want material for jsp custom tag   Hi Friend, Custom tag avoids
JSP Controls Tag Library
JSP Controls Tag Library       JSP Controls Tag Library provides the lifecycle for portlet-like JSP.... The components built with the Library can be used in any JSP-based application
How to access the Title tag from xml to jsp
How to access the Title tag from xml to jsp  How to access the Title tag from xml to jsp   Please visit the following link: http://www.roseindia.net/jsp/parsing-xml.shtml The above link will provide you an example
Declaring Tag Libraries In JSP
Declaring Tag Libraries In JSP   ... the <%@taglib %> directive of the JSP. This tag has some own attributes... folder in your JSP application directory. If you declare the tag library through
Tag Handler in JSP
Tag Handler in JSP      ... library descriptor file and the tag handlers. With the help of this a JSP is able... taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN"
Custom Iterator Tag in JSP
Custom Iterator Tag in JSP       Example program to make custom iterator tag in JSP This example will demonstrate you how you can make a custom iterator tag in JSP? You can
How to access the following tag from xml to jsp
How to access the following tag from xml to jsp  How can i get... the following link: http://www.roseindia.net/jsp/parsing-xml.shtml The above link... into jsp table
JSP:select image for db and display in image tag
JSP:select image for db and display in image tag  Hi, i am new to this forum. My query is that, i am trying to display image in tag but i am..., but i am not able to use thin in tag of html
JSP:select image for db and display in image tag
JSP:select image for db and display in image tag  Hi, i am new to this forum. My query is that, i am trying to display image in tag but i am..., but i am not able to use this in tag of html
JSP:select image for db and display in image tag
JSP:select image for db and display in image tag  Hi, i am new to this forum. My query is that, i am trying to display image in image tag but i am... image, but i am not able to use this in img tag of html
Jstl c:if tag in jsp
JSTL c:if TAG IN JSP In this Section, we will discuss about how to use JSTL tag ' c:if ' in JSP with a simple example. The "c:if" tag...;test" attribute of JSTL "c:if" tag ,have the condition block. EXAMPLE
Error in Custom tag program - JSP-Servlet
Error in Custom tag program  Dear Sir,This is my problem concern to custom tag.Please review.. Browser show: Browser show: Parsing of JSP... be terminated by the matching end-tag "". (line 12, column 3). probably occurred due
JSP JSTL c:when tag
JSP JSTL c:when tag   ... the jstl when tag in jsp. Basically, the choose, when, and otherwise tags can be used to construct an if statement. The choose tag embedded the subtag when
XML Parsing Error: mismatched tag. Expected: </br>. - JSP-Servlet
XML Parsing Error: mismatched tag. Expected: .  i had an error:"XML Parsing Error: mismatched tag. Expected: ." when uploading and writing them.../jsp/jdo-mparsing-xml.shtml http://www.roseindia.net/jsp/java-beans.shtml
JSP JSTL c:if tag
JSP JSTL c:if tag   ... jstl if tag in jsp.  The c:if tag is used for a decision need, to be made... pageContext.request.method=='POST' is true, the body of the tag is processed otherwise
we want to send requiest to server by html select tag - JSP-Servlet
send requiest to server using html select tag. and pass the value also  Hi Request Information In JSP Request Method...://www.roseindia.net/jsp/javaserverpagestutorial.shtml
jsp:include action tag
jsp:include action tag In this section we will discuss about JSP "include" action tag. The jsp "include" tag is used to include... into Servlet. The include tag is used to include another resource it may be jsp
Difference between class,name,id attributes in each JSP tag
Difference between class,name,id attributes in each JSP tag  Can i know the difference between class,name,id attributes in each JSP tags.................. These 3 are only used for reference ..... And what are the differernces
Declare tag methods in jsp
Declare tag methods in jsp       JSP is a extended technology to the java servlet that allows... of web page HTML will be as it is but dynamic part is enclosed in special tag
passing values between jsp file through hyperlink in div tag
passing values between jsp file through hyperlink in div tag  <...;script src="js/AdminHeader.js"&gt;&lt;/script&gt; &lt;jsp:include page="/jsp/admin/Adminmenu.jsp" &gt; &lt;/jsp:include&gt
Advertisements
 

 

 

DMCA.com