Found 9326 Articles for Object Oriented Programming

What is a include directive in JSP?

Samual Sam
Updated on 30-Jul-2019 22:30:25

143 Views

The include directive is used to include a file during the translation phase. This directive tells the container to merge the content of other external files with the current JSP during the translation phase. You may code the include directives anywhere in your JSP page.The general usage form of this directive is as follows −

What is isScriptingEnabled Attribute in JSP?

karthikeya Boyini
Updated on 30-Jul-2019 22:30:25

218 Views

The isScriptingEnabled attribute determines if the scripting elements are allowed for use.The default value (true) enables scriptlets, expressions, and declarations. If the attribute's value is set to false, a translation-time error will be raised if the JSP uses any scriptlets, expressions (non-EL), or declarations.The attribute's value can be set to false if you want to restrict the usage of scriptlets, expressions (non-EL), or declarations −

What is isELIgnored Attribute in JSP?

Samual Sam
Updated on 30-Jul-2019 22:30:25

6K+ 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 −

What is session attribute in JSP?

karthikeya Boyini
Updated on 30-Jul-2019 22:30:25

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() −

What is language attribute in JSP?

Samual Sam
Updated on 30-Jul-2019 22:30:25

344 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 −

What is isThreadSafe attribute in JSP?

karthikeya Boyini
Updated on 30-Jul-2019 22:30:25

1K+ 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 −

What is info attribute in JSP?

Samual Sam
Updated on 30-Jul-2019 22:30:25

246 Views

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

What is import attribute in JSP?

karthikeya Boyini
Updated on 30-Jul-2019 22:30:25

1K+ Views

The import attribute serves the same function as and behaves like, the Java import statement. The value for the import option is the name of the package you want to import.To import java.sql.*, use the following page directive −To import multiple packages, you can specify them separated by comma as follows −By default, a container automatically imports java.lang.*, javax.servlet.*, javax.servlet.jsp.*, and javax.servlet.http.*.

What is extends attribute in JSP?

Samual Sam
Updated on 30-Jul-2019 22:30:25

576 Views

The extends attribute specifies a superclass that the generated servlet must extend.For example, the following directive directs the JSP translator to generate the servlet such that the servlet extends somePackage.SomeClass −

How to send an error code using JSP to browser?

George John
Updated on 30-Jul-2019 22:30:25

277 Views

Following example shows how a 407 error code is sent to the client browser. After this, the browser would show you "Need authentication!!!" message.           Setting HTTP Status Code     You will receive the following output −HTTP Status 407 - Need authentication!!! type Status report message Need authentication!!! description The client must first authenticate itself with the proxy (Need authentication!!!). Apache Tomcat/5.5.29

Advertisements