eclipse maven jsp hello world

Eclipse maven jsp hello world:

Eclipse provides m2eclipse plugin to integrate Maven and Eclipse together.

Steps to create maven java web project in eclipse:

  1. In eclipse, click
Read More
Categories JSP

JSP lifecycle phases

A JSP page is converted into servlet before service requests. JSP Lifecycle consists of following phases:

JSP Page Translation:

The container validates the JSP page and parse … Read More

Categories JSP

JSP Expression Language

JSP Expression Language provides the facility to access the properties of java bean components or other implicit object. It is introduced in the JSP version 2.0. We … Read More

Categories JSP

Custom tag with attributes

Custom tags:

Custom tags are the user defined tags. These tags are mainly used for code re-usability. We can define a custom tag with any number of … Read More

Categories JSP

Custom tags

Custom tags:

Custom tags are the user defined tags. These tags are mainly used for code re-usability.

Advantages of custom tags:

  1. Code re-usability.
  2. Scriptlet tags are not
Read More
Categories JSP

JSTL fn:trim() function

The JSTL fn:trim() function returns the input string after removing the all white spaces from both ends of the string.

Syntax:

String trim(String inputString)

Example:

test.jsp

<%
Read More
Categories JSP

JSTL fn:toUpperCase() function

The JSTL fn:toUpperCase() function returns the input string after converting the all characters of the string to upper case.

Syntax:

String toUpperCase(String inputString)

Example:

test.jsp

<%@ 
Read More
Categories JSP

JSTL fn:toLowerCase() function

The JSTL fn:toLowerCase() function returns the input string after converting the all characters of the string to lower case.

Syntax:

String toLowerCase(String inputString)

Example:

test.jsp

<%@ 
Read More
Categories JSP

JSTL fn:subStringBefore() function

The JSTL fn:subStringBefore() function returns a sub string of the input string before a specified string.

Syntax:

Strung subStringBefore(String inputString, String specifiedString)

Example:

test.jsp

<%@ taglib 
Read More
Categories JSP

JSTL fn:subStringAfter() function

The JSTL fn:subStringAfter() function returns a sub string of the input string after a specified string.

Syntax:

Strung subStringAfter(String inputString, String specifiedString)

Example:

test.jsp

<%@ taglib 
Read More
Categories JSP