Page directive is used to define page attributes the JSP file. Below is a sample of the same:-
To summarize some of the important page attributes:-
Import: - Comma separated list of packages or classes, just like import statements in usual Java code.
Session: - Specifies whether this page can use HTTP session. If set "true" session (which refers to the javax.servlet.http.HttpSession) is available and can be used to access the current/new session for the page.
If "false", the page does not participate in a session and the implicit session object is unavailable.
buffer :- If a buffer size is specified (such as "50kb") then output is buffered with a buffer size not less than that value.
isThreadSafe :- Defines the level of thread safety implemented in the page. If set "true" the JSP engine may send multiple client requests to the page at the same time. If "false" then the JSP engine queues up client requests sent to the page for processing, and processes them one request at a time, in the order they were received. This is the same as implementing the javax.servlet.SingleThreadModel interface in a servlet.
errorPage: - Defines a URL to another JSP page, which is invoked if an unchecked runtime exception is thrown. The page implementation catches the instance of the Throwable object and passes it to the error page processing.
See the following video on overview Service Loader in Java: -
Click to get Java Training
Regards,
Get more Java training stuffs from author's blog
To summarize some of the important page attributes:-
Import: - Comma separated list of packages or classes, just like import statements in usual Java code.
Session: - Specifies whether this page can use HTTP session. If set "true" session (which refers to the javax.servlet.http.HttpSession) is available and can be used to access the current/new session for the page.
If "false", the page does not participate in a session and the implicit session object is unavailable.
buffer :- If a buffer size is specified (such as "50kb") then output is buffered with a buffer size not less than that value.
isThreadSafe :- Defines the level of thread safety implemented in the page. If set "true" the JSP engine may send multiple client requests to the page at the same time. If "false" then the JSP engine queues up client requests sent to the page for processing, and processes them one request at a time, in the order they were received. This is the same as implementing the javax.servlet.SingleThreadModel interface in a servlet.
errorPage: - Defines a URL to another JSP page, which is invoked if an unchecked runtime exception is thrown. The page implementation catches the instance of the Throwable object and passes it to the error page processing.
See the following video on overview Service Loader in Java: -
Click to get Java Training
Regards,
Get more Java training stuffs from author's blog
thanks nice blog i got more information.
ReplyDeletegay engagement rings in brighton
brighton based jewellery designer
Best handmade jewellery brighton
bespoke jewellery brighton
best jewellers in brighton
independent jewellers brighton
engagement rings in brighton
pendants for women in brighton
earrings for women in brighton
Illustration jewellery designer in brighton
Diamond Earrings jewelry shop in brighton lanes
antique jewellery shops in brighton
fine jewellery in brighton
cocktail rings in brighton
fashion rings in brighton
brighton contemporary jewellery
the illustrated jeweller
antique jewellery shops in brighton
ring jewellers brighton
jewellery Shop in brighton
wedding rings in brighton
personalised necklace silver
brighton lanes jewellers
handmade jewellery near me
jewellery makers near me
bespoke jewellery near me
gay mens jewellery near me
Illustration engagement rings in brighton lanes
Trending engagement rings brighton