Overriding init() and destroy() methods in JSP document

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • anurag275125
    New Member
    • Aug 2009
    • 79

    #1

    Overriding init() and destroy() methods in JSP document

    Hello all,

    Can anyone please tell, is it possible to override the init() and destroy() methods of Servlet in JSP page. When I override the init() method then it gives no error, but when I override the destroy() method, then it gives an error something like--

    "cannot override final method??????? "

    plz help me out...
  • Dheeraj Joshi
    Recognized Expert Top Contributor
    • Jul 2009
    • 1129

    #2
    Yes you can override the methods.
    Are you overriding using declarative tags?

    Regards
    Dheeraj Joshi

    Comment

    • anurag275125
      New Member
      • Aug 2009
      • 79

      #3
      Yes I'm overriding methods using declarative tags. But destroy() method isn't working..

      Comment

      Working...