permaculture playing cards*
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


JavaRanch » Java Forums » Java » Servlets
Bookmark "Custom tags" Watch "Custom tags" New topic
Author

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
author
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:
http://www.jspinsider.com/articles/jsp/intrototags.html
Dustin Marx
Ranch Hand

Joined: Mar 06, 2001
Posts: 40
http://developer.java.sun.com/developer/Books/cservletsjsp/chapter14.pdf
 
GeeCON Prague 2014
 
subject: Custom tags