Can we call destroy method inside init method?
Answer / Chandan Kishore
No, it is not recommended or allowed to call the destroy() method inside the init() method in JSP. The init() method is called when the JSP page is loaded, while the destroy() method is called when the page is unloaded. Calling the destroy() method prematurely can lead to unexpected behavior.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is difference between page and pagecontext in jsp?
Can you call jsp from servlet?
Explain the difference between include directive and include action in jsp?
What is the difference between include and jsp directive: include action?
How to get session in Jsp other than session object?
Can you use javascript in jsp?
Can you stop multiple submits to a web page that are initiated by clicking to refresh button?
Why is _jspservice () method starting with an '_'?
What are directives? What are the different types of directives available in jsp?
What is the use of 'out' implicit object?
What do jsp literals consist of?
How does a jsp work?