File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Benefits of custom tags Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Benefits of custom tags" Watch "Benefits of custom tags" New topic
Author

Benefits of custom tags

Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8919

Hi All,
What are the benefits of custom tags?


Groovy
Valentin Crettaz
Gold Digger
Sheriff

Joined: Aug 26, 2001
Posts: 7610
From The JSP 2.0 Specification:

JSP.7.1.1 Goals
The tag extension mechanism described in this chapter addresses the following
goals. It is designed to be:
- Portable - An action described in a tag library must be usable in any JSP con-tainer.
- Simple - Unsophisticated users must be able to understand and use this mech-anism.
Vendors of JSP functionality must find it easy to make it available to
users as actions.
- Expressive - The mechanism must support a wide range of actions, including
nested actions, scripting elements inside action bodies, and creation, use and
updating of scripting variables.
- Usable from different scripting languages - Although the JSP specification
currently only defines the semantics for scripts in the Java programming lan-guage,
we want to leave open the possibility of other scripting languages.
- Built upon existing concepts and machinery- We do not want to reinvent what
exists elsewhere. Also, we want to avoid future conflicts whenever we can
predict them.

In clear, they allow you to define your own set of tags (i.e. your own tag library) as an extension of the existing set of basic JSP tags.


SCJP 5, SCJD, SCBCD, SCWCD, SCDJWS, IBM XML
[Blog] [Blogroll] [My Reviews] My Linked In
Rashid Ali
Ranch Hand

Joined: Jan 16, 2001
Posts: 349
An important benefit of custom tag is it's 'reusability' means you can once make a custom tag functional and can use its functionality/logic in multiple applications.
For example: you've defined a database connection in a custom tag, opening, calling db, iterating records and such types of things can be once defined in your tag and be used in multiple applications and you don't have to bother to write it again for other app.
Hope it helps a bit and clarifies your querry.
Good luck
Rashid
Simon Brown
sharp shooter, and author
Ranch Hand

Joined: May 10, 2000
Posts: 1913
    
    6
Check out this thread for some more points...
Simon
Frank Carver
Sheriff

Joined: Jan 07, 1999
Posts: 6920
and don't forget this thread either.


Read about me at frankcarver.me ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
 
GeeCON Prague 2014
 
subject: Benefits of custom tags