Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
-
Economics & Finance
Java Articles
Page 410 of 450
How to print a date using JSP Expression?
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 MoreI want to use <% literal in JSP page. But it is throwing error. How to escape this syntax in JSP?
You can escape it using backslash character. Replace
Read MoreWhat are JSP literals?
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 MoreWhat is the difference between JspWriter and PrintWriter?
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 MoreWhat is an application Object in JSP?
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 MoreWhat is info attribute in JSP?
The info attribute lets you provide a description of the JSP. The following is a coding example −
Read MoreWhat is isThreadSafe attribute in JSP?
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 MoreWhat is language attribute in JSP?
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 MoreWhat is session attribute in JSP?
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 MoreWhat is isELIgnored Attribute in JSP?
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