• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Can Java Servlet be implemented with Standard Tag Library

 
Francis Siu
Ranch Hand
Posts: 867
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks for your time to answer
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
First, let's get some things straight:
1) The container compiles your JSPs into servlet source code and compiles that into a .class file
2) JSTL/taglibs is used by JSP code to encapsulate logic ("separate the logic from the HTML code")
In other words, the JSP using JSTL or custom taglibs is always transformed into a servlet through a couple of compilation steps by the container.
 
Jason Menard
Sheriff
Posts: 6450
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Aside from the fact that a JSP is a servlet, if you are asking whether or not JSP tags can be used directly inside servlet code, the answer is no.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic