Directives are those which tell the JSP engine how to translate a JSP page into the corresponding servlet. Directives provide directions and instructions to the container, telling it how to handle certain aspects of JSP processing. JSP directive affects the overall structure of the servlet class. It usually has the following form: <%@directiveattribute=”value”%> Page Directive:…