wood burning stoves 2.0*
The moose likes JSP and the fly likes Can Java Servlet be implemented with Standard Tag Library Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Can Java Servlet be implemented with Standard Tag Library" Watch "Can Java Servlet be implemented with Standard Tag Library" New topic
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
    
    5
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Can Java Servlet be implemented with Standard Tag Library