Please enable JavaScript.
Coggle requires JavaScript to display documents.
Java Server Page
JSP - Coggle Diagram
Java Server Page
JSP
Implicit Objects
9 Implicit Objects
-
-
-
-
-
-
-
page
This is simply a synonym for this, and is used to call the methods defined by the translated servlet class
-
Java objects that the JSP Container makes available to the developers in each page and call them directly without being explicitly declared.
-
-
Directives
<%@ %>
Types
Page
-
-
Attributes
autoFlush
Specifies whether the buffered output should be flushed automatically when the buffer is filled, or whether an exception should be raised to indicate the buffer overflow.
contentType
Defines the MIME(Multipurpose Internet Mail Extension) type of the HTTP response.The default value is "text/html;charset=ISO-8859-1"
buffer
Sets the buffer size in kilobytes to handle output generated by the JSP page.The default size of the buffer is 8Kb.
-
isErrorPage
Define the error page, if exception occurs in the current page, it will be redirected to the error page.
import
import class,interface or all the members of a package.It is similar to import keyword in java class or interface.
-
info
Sets the information of the JSP page which is retrieved later by using getServletInfo() method of Servlet interface.
isThreadSafe
Servlet and JSP both are multithreaded.If you want to control this behaviour of JSP page, you can use isThreadSafe attribute of page directive.The value of isThreadSafe value is true.If you make it false, the web container will serialize the multiple requests, i.e. it will wait until the JSP finishes responding to a request before passing another request to it.
-
session
Defines the MIME(Multipurpose Internet Mail Extension) type of the HTTP response.The default value is "text/html;charset=ISO-8859-1"
isELIgnored
Ignore the Expression Language (EL) in jsp by the isELIgnored attribute. By default its value is false.
-
-
Scripting Elements
Types
-
Scriptlets
Syntax: <% Java Code; %>
Example, Use out variable to display output in page
-
Example: <% if (Math.random() < 0.5)
{ %> Have a <B>nice</B> day! <% } else { %> Have a <B>lousy</B> day! <% } %>
converts to: if (Math.random() < 0.5) {
out.println("Have a <B>nice</B> day!");
} else {
out.println("Have a <B>lousy</B> day!");
}
-
-