File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jspInit() is Tomcat specific?

 
ankur rathi
Ranch Hand
Posts: 3830
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If suppose I write jspInit() method in declaration element of JSP:



If I use Tomcat then this method will be called from init() method of servlet that is going to be generate from this JSP. Something like this:



But If I deploy this on any other server (Web Logic or Web Sphere Application Server) then it's not necessary that this method will be called from init() method. Something like this:




Is everything is right?

Thanks.
[ December 07, 2005: Message edited by: Bear Bibeault ]
 
Stefan Evans
Bartender
Posts: 1640
9
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
jspInit is not just a Tomcat thing. Its part of the JSP specification, and has been from the beginning.

Does the jspInit() method get called in WebSphere/WebLogic? Does it do the System.out.println()?
Maybe the jspInit() is being called from somewhere else in those appservers?
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic