Only 48 hours left in the trailboss' kickstarter!

New rewards and stretch goals. CLICK HERE!



  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Can Java Servlet be implemented with Standard Tag Library  RSS feed

 
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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!