# HttpJspPageTest

### Summary

The contract between the JSP engine and JSP author is that the Servlet class corresponding to the JSP page must implement the HttpJspPage interface ( if protocol is HTTP)

### Tests

positiveJSPInitExtends: define a class which implements the HttpJspPage and in the jsp page use extends directive to make the defined java class as the super class. now we check the result of getServletConfig if we get a non null value we pass the test

title | HttpJspPageTest
source | HttpJspPageTest.java SuperPage.java
executeClass | engine.HttpJspPage.HttpJspPageTest
executeArgs | -TestCaseID positiveJSPInitExtends -ServerHost $servletServerHost -ServerPort $servletServerPort -UrlMaps $servletMaps
keywords | positive JSP extensionAPI

positiveJSPInitJSP: here we override the jspInit method in the JSP page itself now we check the result of getServletConfig if we get a non null value we pass the test

title | HttpJspPageTest
source | HttpJspPageTest.java
executeClass | engine.HttpJspPage.HttpJspPageTest
executeArgs | -TestCaseID positiveJSPInitJSP -ServerHost $servletServerHost -ServerPort $servletServerPort -UrlMaps $servletMaps
keywords | positive JSP extensionAPI