wood burning stoves 2.0*
The moose likes Servlets and the fly likes Custom tags Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Custom tags" Watch "Custom tags" New topic

Custom tags

Vishakha Ahuja
Ranch Hand

Joined: Sep 13, 2000
Posts: 191
What are custom tags in JSP and how do you build it ?
Bhupinder Dhillon
Ranch Hand

Joined: Oct 12, 2000
Posts: 124
Originally posted by Vishakha Ahuja:
What are custom tags in JSP and how do you build it ?

Take a look here... http://java.sun.com/products/jsp/tutorial/TagLibrariesTOC.html
Matt Raible
Ranch Hand

Joined: Jan 11, 2001
Posts: 114
Custom tags are HTML-looking tags that you place in your JSP that look like HTML, but they call Java Servlets, classes, etc. You declare them with *.tld files, you reference the tld files in your web.xml files and go from there. According to Sun, this is the best way to separate your presentation layer from your java. I personnally think there's no problem with putting Java write in your JSP. http://www.jsptags.com is a great resource.

Matt<br /> <br />Author: <a href="http://springlive.com" target="_blank" rel="nofollow">Spring Live</a> and <a href="http://www.apress.com/book/bookDisplay.html?bID=256" target="_blank" rel="nofollow">Pro JSP</a><br />Weblogs: <a href="http://raibledesigns.com" target="_blank" rel="nofollow">Raible Designs</a> <a href="http://jroller.com/page/raible" target="_blank" rel="nofollow">Spring Live Blog</a>
Dustin Marx
Ranch Hand

Joined: Mar 06, 2001
Posts: 40
There is a very helpful "Introduction to JSP Tag Libraries" article located at several locations on the web including the link below:
Dustin Marx
Ranch Hand

Joined: Mar 06, 2001
Posts: 40
I agree. Here's the link: http://aspose.com/file-tools
subject: Custom tags
Similar Threads
PageContext and servletContext
Classsic Vs Simple?
Custom Tags
web-app advice