extends page directive not working

前端 未结 1 1903
臣服心动
臣服心动 2021-01-29 02:48

Hi i am checking page directives but extends page directive is not working.
The below my jsp page

<%@ page language=\"java\" contentType=\"text/html; c         


        
相关标签:
1条回答
  • 2021-01-29 03:10

    You need to read the JSP specification, particularly section JSP.11.2.4 which sets out a number of requirements for the super class you use with extends and none of which are met by the super class in your question.

    ...the provided superclass:

    • Implements HttpJspPage if the protocol is HTTP, or JspPage otherwise.
    • All of the methods in the Servlet interface are declared final.

    Additionally, it is the responsibility of the JSP page author that the provided superclass satisfies:

    • The service method of the servlet API invokes the _jspService method.
    • The init(ServletConfig) method stores the configuration, makes it available via getServletConfig, then invokes jspInit.
    • The destroy method invokes jspDestroy.
    0 讨论(0)
提交回复
热议问题