Java Articles

Page 410 of 450

What is the difference between include action and include directive in JSP?

Chandu yadav
Chandu yadav
Updated on 30-Jul-2019 2K+ Views

include action lets you insert files into the page being generated. The syntax looks like this −Unlike the include directive, which inserts the file at the time the JSP page is translated into a servlet, this action inserts the file at the time the page is requested.

Read More

How to print a date using JSP Expression?

karthikeya Boyini
karthikeya Boyini
Updated on 30-Jul-2019 434 Views

Following example shows a JSP Expression printing date on the browser −           A Comment Test     Today's date: The above code will generate the following result −Today's date: 11-Sep-2010 21:24:25

Read More

What are JSP literals?

Samual Sam
Samual Sam
Updated on 30-Jul-2019 828 Views

The JSP expression language defines the following literals −Boolean − true and falseInteger − as in JavaFloating point − as in JavaString − with single and double quotes; " is escaped as ", ' is escaped as ', and \ is escaped as \.Null − null

Read More

What is the difference between JspWriter and PrintWriter?

Chandu yadav
Chandu yadav
Updated on 30-Jul-2019 304 Views

The JspWriter object contains most of the same methods as the java.io.PrintWriter class. However, JspWriter has some additional methods designed to deal with buffering. Unlike the PrintWriter object, JspWriter throws IOExceptions.

Read More

What is an application Object in JSP?

George John
George John
Updated on 30-Jul-2019 509 Views

The application object is direct wrapper around the ServletContext object for the generated Servlet and in reality an instance of a javax.servlet.ServletContext object.This object is a representation of the JSP page through its entire lifecycle. This object is created when the JSP page is initialized and will be removed when the JSP page is removed by the jspDestroy() method.By adding an attribute to application, you can ensure that all JSP files that make up your web application have access to it.

Read More

What is info attribute in JSP?

Samual Sam
Samual Sam
Updated on 30-Jul-2019 415 Views

The info attribute lets you provide a description of the JSP. The following is a coding example −

Read More

What is isThreadSafe attribute in JSP?

karthikeya Boyini
karthikeya Boyini
Updated on 30-Jul-2019 2K+ Views

The isThreadSafe option marks a page as being thread-safe. By default, all JSPs are considered thread-safe. If you set the isThreadSafe option to false, the JSP engine makes sure that only one thread at a time is executing your JSP.The following page directive sets the isThreadSafe option to false −

Read More

What is language attribute in JSP?

Samual Sam
Samual Sam
Updated on 30-Jul-2019 543 Views

The language attribute indicates the programming language used in scripting the JSP page.For example, because you usually use Java as the scripting language, your language option looks like this −

Read More

What is session attribute in JSP?

karthikeya Boyini
karthikeya Boyini
Updated on 30-Jul-2019 2K+ Views

The session attribute indicates whether or not the JSP page uses HTTP sessions. A value of true means that the JSP page has access to a builtin session object and a value of false means that the JSP page cannot access the builtin session object.Following directive allows the JSP page to use any of the builtin object session methods such as session.getCreationTime() or session.getLastAccessTime() −

Read More
Showing 4091–4100 of 4,498 articles
« Prev 1 408 409 410 411 412 450 Next »
Advertisements