JSP pages are high level extension of servlet and it enable the developers to embed java code in html pages. JSP files are finally compiled into a servlet by the JSP engine. Compiled servlet is used by the engine to serve the requests.
javax.servlet.jsp package defines two interfaces:
These interfaces defines the three methods for the compiled JSP page. These methods are:
In the compiled JSP file these methods are present. Programmer can define jspInit() and jspDestroy() methods, but the _jspService(HttpServletRequest request,HttpServletResponse response) method is generated by the JSP engine.
We have 1000s of tutorials on our website. Search Tutorials tutorials on our website.
Posted on: February 7, 2008 If you enjoyed this post then why not add us on Google+? Add us to your Circles