JSP Custom Tag

JSP custom tag provides flexibility to programmers, to declare their own tag. Thus, a user-defined tag can be created through custom tags to perform various operations. These custom tags behave as operations on tag handler when JSP page is translated …

Read moreJSP Custom Tag

JSTL Function Tags

In JSTL, the purpose of function tags is similar to the various string methods in Java. Hence, these tag performs common string manipulation operations. Functional tag is represented by following URL: –

Function Tags These are some frequently used …

Read moreJSTL Function Tags

JSTL XML Tags

In JSTL, XML tags are used for creating and manipulating xml documents. The following syntax represent the URL of XML tag: –

To utilize the functionality of XML tags, it is required to download and add two jar files …

Read moreJSTL XML Tags

JSTL SQL Tags

In JSTL, SQL tags are used to access and manipulate various operations of database. It is responsible to interact the JSP page with any type of Database such as MySQL, Oracle, SQLite, etc. The below syntax is used to include …

Read moreJSTL SQL Tags

JSTL Formatting Tags

In JSTL, the role of formatting tag is to specify the type of format that represents date and time. The following syntax represent the URL of formatting tag: –

Formatting tags These are some commonly used formatting tags: – …

Read moreJSTL Formatting Tags

JSTL Core Tags

In JSTL, core tags are most frequently used tags that provides variable support, manages URL and control the flow of JSP page. To use JSTL it is required to associate the below URL in your JSP page: –

It …

Read moreJSTL Core Tags

JSP EL Implicit Objects

Apart from operators, JSP also provide expression language implicit objects. The role of these implicit objects is to get the attribute associated with various object. Here, is the list of expression language implicit objects with their purposes. Implicit Object    …

Read moreJSP EL Implicit Objects

JSP Expression Language

JSP introduced the concept of expression language (EL) in JSP 2.0 version. The purpose of expression language is to access and manipulate data easily without using any type of scriptlet. Why Expression language? Before JSP 2.0, scriptlets are used to …

Read moreJSP Expression Language

JSP Cookie Handling

Cookie is a small piece of information sent by server to recognize the user. This information is stored at client side in the textual form. In JSP, cookie is an object of javax.servlet.http.Cookie class. This object is used widely for …

Read moreJSP Cookie Handling

JSP Action Tags

As the name implies, JSP action tags are used to perform various actions during the execution of JSP page. Here, each action performs some specific task. These tasks include:  Forwarding the current page request to another page. Including external page …

Read moreJSP Action Tags

JSP exception

Like Java, exceptions can also be occurred in JSP. To handle these exceptions, JSP exception object is used. Handling exceptions in JSP using exception object is much easier approach. This object is needed to be declared in a separate exception …

Read moreJSP exception

JSP page

In JSP, the purpose of page object is to create the servlet instance. The role of page object is similar to this keyword in Java. The page object represents the entire JSP page. It is an instance of java.lang.Object class. …

Read moreJSP page

JSP pageContext

The object pageContext is used to access all the information of JSP page. It is an instance of javax.servlet.jsp.PageContext. The scope of pageContext can be defined explicitly. The object is valid up to the specified scope only. Several layers in …

Read moreJSP pageContext

JSP session

In JSP, session object is used to establish a connection between a client and a server. It maintains the state between them so that server recognize the user easily. The session object is an instance of servlet’s HttpSession interface. This …

Read moreJSP session

JSP application

JSP application object is an instance of servlet’s ServletContext interface. It is used initialize parameter of one or more JSP pages in an application. Thus, the scope of application object is wider than config object. Example of JSP Application This …

Read moreJSP application

JSP config

JSP config object is used to send the configuration information to JSP page. Here, config is an instance of servlet’s ServletConfig interface. In this case, the information is send to JSP page through web.xml file. Config object is used to …

Read moreJSP config

JSP response

Basically, JSP response object is an instance of servlet’s HttpServletResponse interface. It is used to resolve client request. Response object can be used to perform various functions such as encode URL, add cookies, add headers, send errors, set content type …

Read moreJSP response