• Post Reply Bookmark Topic Watch Topic
  • New Topic

Can we call JspDestroy method,.

 
perry arora
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi.,

Can we call the jspDestroy method in out code. we can provide a implementation for this method but can we call it explicity!
ThxS~!
 
Pradeep bhatt
Ranch Hand
Posts: 8933
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
perry,
Yes you can call jspDestroy in your code but remember that it is a lifecycle method which will be invoked by the JSP Container when the jsp instance will be removed.
Why do you want to call jspDestroy?
 
Java Brewer
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi perry,

you can always call _jspDestroy() in you JSP anywhere.
It doesn't really makes any difference as though specification says its
a life cycle method, but even calling at the begining of ur JSP doesn't
stops the JSP to execute the _jspService() method and sending the
response back to the client.
Try it once for your clarification.
Regards
GoodieGuy
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!