Java Server Pages - The directives
On April 25,2022 by Tom RoutleyIntroduction to JSP directives
JSP directives are instructions inserted into special HTML tags. The syntax is as follows:
JSP directives are used to indicate:
the language used
classes to include
classes to extend
...
Presentation of JSP directives
The version 1.0 Revision B of Java Server Pages JSP provides three guidelines:
The page directive provides information on the JSP page. This directive has many attributes (explained below):
the include directive to include files in the HTML page
the taglib directive defining the address and prefix of a library of tags that can be used in the page
This directive allows the creation of tags of this form:
Attributes of the page directive
Here is the list of attributes for the page directive
Attribut Possible values Description language java Specifies the language to be used to process to the instructions of the page. Java is the language used predominantly, but servlets can be written in another language extends packagelass Define the class to be extended, that is to say, the parent class of the servlet generated by JSP import pakage.* Allows you to import a list of classes or packages to top of the page, as for a Java application.. session true>false Sets whether the current page can access the data stored in the session. This attribute is true by default buffer none/8kb/sizekb Sets whether the output stream will be placed in a buffer before sending. Default buffer size is 8kb, but it is possible to set the size in kb. This attribute is used with the autoflush attribute autoflush true>false La valeur true (par défaut) indique que le tampon doit être vidé lorsqu'il est plein isThreadSafe true>false True indicates that multiple clients can simultaneously uses the servlet. If set to false, the servlet switches to monothread mode, which means that only one client can access the servlet at a time. info Text return a description using the servlet.getServletInfo() method. errorPage URL Allows you to specify a JSP page to manage unhandled exceptions. isErrorPage false Specify whether the current page is an error page contentType text/html;charset=ISO-8859-1 Indicates the MIME type of the page as well as the character set used
Original document published on CommentcaMarcheet
Article Recommendations
Latest articles
Popular Articles
Archives
- November 2024
- October 2024
- September 2024
- August 2024
- July 2024
- June 2024
- May 2024
- April 2024
- March 2024
- February 2024
- January 2024
- December 2023
- November 2023
- October 2023
- September 2023
- August 2023
- July 2023
- June 2023
- May 2023
- April 2023
- March 2023
- February 2023
- January 2023
- December 2022
- November 2022
- October 2022
- September 2022
- August 2022
- July 2022
- June 2022
- May 2022
- April 2022
- March 2022
- February 2022
- January 2022
- December 2021
- November 2021
- October 2021
- September 2021
- August 2021
- July 2021
- January 2021
Leave a Reply