Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Why tomcat provides _jspInit() and _jspDestroy() methods if we use JSTL tags?  RSS feed

 
Chinmaya Chowdary
Ranch Hand
Posts: 437
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I am using Tomcat5.5, when I use JSTL tags, like <c:set..> the tomcat provides the following two methods at translation time(after converting .jsp file to .java file).

What is the reason behind it? If I use custom tags(tags created by own), it will not provide the above two methods. Why tomcat will not provide the above two methods for custom tags? Thankyou.


SCJP5.0(93%). Preparing for SCWCD5.0
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65891
135
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Apparently Tomcat has some setup and cleanup to do. What it does behind the scenes as long as things conform the the JSP and JSTL specifications is entirely up to them.
 
Chinmaya Chowdary
Ranch Hand
Posts: 437
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bear Bibeault wrote:Apparently Tomcat has some setup and cleanup to do. What it does behind the scenes as long as things conform the the JSP and JSTL specifications is entirely up to them.


Can you please tell me, what those methods will do in detail? Thankyou.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65891
135
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I do not know. And what's more to the point, as web developers we don't need to care.

If you are curious just for curiosity's sake, you'll need to consult the Tomcat source code.
 
Chinmaya Chowdary
Ranch Hand
Posts: 437
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thankyou Sir.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!