Java Articles

Page 410 of 450

How to print a date using JSP Expression?

karthikeya Boyini
karthikeya Boyini
Updated on 30-Jul-2019 416 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 817 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 298 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 493 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 400 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 531 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

What is isELIgnored Attribute in JSP?

Samual Sam
Samual Sam
Updated on 30-Jul-2019 7K+ Views

The isELIgnored attribute gives you the ability to disable the evaluation of Expression Language (EL) expressions which has been introduced in JSP 2.0.The default value of the attribute is true, meaning that expressions, ${...}, are evaluated as dictated by the JSP specification. If the attribute is set to false, then expressions are not evaluated but rather treated as static text.Following directive sets an expression not to be evaluated −

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