#Advance #Java #JSP #Programming #Tutorial | #adv java | #JSP #API | #What#is #API |
#JSP #API:
A set of functions and procedures that allow the creation of applications which access the features or data of an operating system, application, or other service.
OR
An application programming interface (API) is a set of routines, protocols, and tools for building software applications as per the requierment of developer.
Basically, an API specifies how software components should interact.
Additionally, APIs are used when programming graphical user interface (GUI) components
JSP specification gives API having set of rules and guidelines to develope JSP Container.
JSP API Means: working with follwing packages
----------
javax.servlet.jsp.* package
javax.servlet.jsp.el.* package
javax.servlet.jsp.tagext.* package
etc
Jsp container represent in tomcat server under .jar called : jasper.jar
C:\Program Files\Apache Software Foundation\Tomcat 9.0\lib\jasper.jar
jasper.jar-----\org\apache\jasper\compiler - Compiler.class
- In jasper.jar file org.apache.jasper.JspC (JSP compiler) represents JSP page compiler that gives JSP equivalent Serlvet Program.
- JSP API is present in tomcat server under "jsp-api.jar"
- In Tomcat server, the JSP container name is "jasper"
- In Tomcat server, the servlet container name is "catalina"