Name

fn:toLowerCase

Synopsis

This function converts all characters in a string to lowercase and returns the resulting string.

Syntax

String: fn:toLowerCase(string)

Parameters

Parameter name

Java type

Description

string
String

The string to convert.

Example

<c:if test="${fn:startsWith(fn:toLowerCase(param:day), 'fri')}">
  It must be Friday!
</c:if>

Get JavaServer Pages, 3rd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.