File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSP and the fly likes  describe about custom tags in jsp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark " describe about custom tags in jsp" Watch " describe about custom tags in jsp" New topic

describe about custom tags in jsp

Raghu ram
Ranch Hand

Joined: Oct 19, 2007
Posts: 34
Hello Frnds,

I am new to jsp. Can anybody tell me about what is differences between JSTL and custom tags. what is the importance of custom tags? Because there are so many custom tags.
Ben Souther

Joined: Dec 11, 2004
Posts: 13410

JSTL, as its name implies is an attempt by Sun to minimize the number of custom tags that need to be written by standardizing the most common tasks that programmers usually write custom tags to do.

Before JSTL, if you wanted tags that branch or loop over a collection, you had to either write them yourself or adopt one of the many frameworks out there that provide them for you. This causes a lot of duplication of effort and meant that the tags used for these things varied greatly from company to company. With a standard set, it is easier to write scriptless JSPs without having to re-invent the wheel over and over again.

There are still plenty of cases where it make sense to write your own tags but the JSTL should cover most of the common cases.

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
I agree. Here's the link:
subject: describe about custom tags in jsp
It's not a secret anymore!