| Author |
Can Java Servlet be implemented with Standard Tag Library
|
Francis Siu
Ranch Hand
Joined: Jan 04, 2003
Posts: 867
|
|
thanks for your time to answer
|
Francis Siu
SCJP, MCDBA
|
 |
Lasse Koskela
author
Sheriff
Joined: Jan 23, 2002
Posts: 11962
|
|
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.
|
Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
|
 |
Jason Menard
Sheriff
Joined: Nov 09, 2000
Posts: 6450
|
|
|
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.
|
Jason's Blog
|
 |
 |
|
|
subject: Can Java Servlet be implemented with Standard Tag Library
|
|
|