• Post Reply Bookmark Topic Watch Topic
  • New Topic

overriding jspInit() and jspDestroy() methods  RSS feed

 
Brij Garg
Ranch Hand
Posts: 234
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When should we override these two methods in JSP ?

One reason can be .. when we want a member to be available throughout the lifetime of the generated servlet.

Is there are other reasons also ?

Thanks
 
laoying Yin
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
these two method is the same with init() & destory() in servlet spec, I'm not sure if it works that add them in jsp files, you can run a test for it, but the defination and usage should be the same, so just google "servlet init destory" then you can get what you want.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66207
151
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please take the time to choose the correct forum for your posts. This forum is for questions on Servlets.

For more information, please read this.

This post has been moved to a more appropriate forum.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!