answersLogoWhite

0

How we can develop JSP pages using Custom Tags?

Updated: 8/18/2019
User Avatar

Wiki User

13y ago

Best Answer

What is a Custom Tag?

The custom tag is a convention that allows you to have the container call the tag library life cycle event methods (for example, doStartTag), including the attribute get/set calls automatically invoked when attributes are declared in the custom tag. doStartTag and doEndTag methods are called when the JSP page request is processed.

Ex:

< tagHandlerPrefix:customTagName / >

The above is a simple custom tag with no tag body.

Ways to use Custom Tags:

There are 4 ways of using Custom tags. They are:

1. < libraryPrefix : handlerName />

The custom tag with no body, said to be an empty custom tag.

2. < libraryPrefix : handlerName parameterName="value" >

This tag causes the container to call the setParameterName method and pass the "value" to it.

3. < libraryPrefix : handlerName parameterName="value" >

< % = 23 * counter % >

< b > Congratulations ! < / b >

< / libraryPrefix : handlerName >

A custom tag with a body. The body can contain core tags, scripting elements, HTML text, and tag-dependent body content between the start and end tags.

4. < library : outerTag >

< library : innerTag >

< / library : innerTag > < / library : outerTag >

This syntax is how you nest custom tags. The XML is easy, but the handler is more involved. Note that the following is wrong: .

User Avatar

Wiki User

13y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How we can develop JSP pages using Custom Tags?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is the connection of a notepad with HTML tags?

You can use Notepad to write HTML pages, and HTML consists of tags. So you would be writing a lot of tags when using Notepad to create a HTML page.


Where can a person find regular sales on custom gift tags?

Custom gift tags can be found for free at Customized Printable Gift Tags, Dr. Seuss Gift Tags and Free Printable Collectible Gift Tags. Vistaprint has them too, but they are not without charge.


What does HTML progamming means?

HTML programming means using tags in HTML. It is a way of creating interactive web pages.


Where can you have custom business luggage tags made?

You can have custom business luggage tags made at a local craft shop near you, along with places such as www.luggagepros.com/myflytag and www.tagsformybags.com.


A custom file property that is read during searches is the property?

Tags


How do you connect HTML on MySpace?

Connect? Myspace supports HTML so you should be able to input HTML tags like &lt;h1&gt; and whatnot into your page, if not then I can only suggest using &lt;html&gt;&lt;/html&gt; tags at the beginning and end of your pages.


Where can someone buy a custom laser engraved dog tags?

It is advisable to have identification tags for one's pets, in case they get out or get lost. One can purchase custom ID tags at most pet stores such as Petco and Pet Smart as well as smaller independent pet stores. Online sources include Pet Tags and Pet Tags 4 Less.


What is tag lib directive in jsp?

The taglib directive in JSP is used to declare a set of custom tags defined in tag libraries that are used in the JSP page. It must be placed at the top of the JSP page and specifies the location of the tag library descriptor (TLD) file and the prefix to use when referencing the custom tags within the page. This allows developers to use custom tags in their JSP pages to encapsulate reusable functionality.


What is difference between custom JSP tags and beans?

They are two totally different concepts and are entirely different when compared to one another. The similarity is that - they both are used by JSP Pages to enhance the features and functionality of the JSP Technology


What is a custom file properties such as names places when add to files are call?

tags


What are deprecated tags in context of HTML?

A deprecated tag is one that is being phased out and at some future point will no longer work on new browsers. You are encouraged to avoid using deprecated tags. You should use either newer tags that do the same operations or do some of your work using styles. This can be a little bit more complicated at first and involves learning how to use styles and style sheets, but the advantages outweigh the difficulties. Most properly designed web pages use styles for a lot of their design, and avoid the need to use deprecated tags. It makes your pages and sites a lot easier to maintain and means that your pages will function well on most browsers into the future.


Is HTML proprietary?

In general it isn't, but some tags were invented by particular companies to work only on their browsers. Netscape and Microsoft invented a lot of tags that only work on their respective browsers. As a rule of designing web pages, you should test your code on all the main browsers and avoid using the proprietary tags.