Yearly Archive: 2013

Servlet Life Cycle

The life cycle of a servlet is controlled by the container in which the servlet has been deployed. When a request is mapped to a servlet, the container performs the following steps. Servlet Life Cycle …

Servlets – Environment Setup

To get Java servlets up and running requires more than knowledge about Java in general or servlets in particular: one needs to know about servers, servlet containers, and XML.Like any other Java program, you need …

JSTL fn:trim() Function

JSTL Trim function is used to remove white space from the start and end of the String. The fn:trim() function removes white space from both ends of a string. Syntax: The fn:trim() function has following …

JSTL fn:toUpperCase() Function

The fn:toUpperCase() function converts all the characters of a string to uppercase. JSTL toLowerCase Function returns String that contains all characters in lower case. Syntax: The fn:toUpperCase() function has following syntax: java.lang.String toLowerCase(java.lang.String) Example: Following …

JSTL fn:toLowerCase() Function

JSTL toLowerCase Function returns String that contains all characters in lower case. The fn:toLowerCase() function converts all the characters of a string to lowercase. Syntax: The fn:toLowerCase() function has following syntax: java.lang.String toLowerCase(java.lang.String) Example: Following …

JSTL fn:substringBefore() Function

JSTL SubstringBefore function is used to get the substring of target string. This function takes 2 parameters. First parameter in JSTL SubstringBefore function is the target String from which you want to derive the substring. …