Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Custom tags

 
Vishakha Ahuja
Ranch Hand
Posts: 191
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What are custom tags in JSP and how do you build it ?
 
Bhupinder Dhillon
Ranch Hand
Posts: 124
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 114
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Dustin Marx
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 40
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic