YouTip LogoYouTip

Jstl Function Substring

JSTL fn:substring() Function | Tutorial

Tutorial -- Learning is not just about technology, but also about dreams!

JSP Tutorial

JSP Tutorial JSP Introduction JSP Development Environment Setup Eclipse JSP/Servlet JSP Architecture JSP Life Cycle JSP Syntax JSP Directives JSP Action Elements JSP Implicit Objects JSP Client Request JSP Server Response JSP HTTP Status Codes JSP Form Processing JSP Filters JSP Cookie Handling JSP Session JSP File Uploading JSP Date Handling JSP Page Redirect JSP Hits Counter JSP Auto Refresh JSP Sending Email

JSP Advanced Tutorial

JSP Standard Tag Library (JSTL) JSP Database Access JSP XML Data Processing JSP JavaBean JSP Custom Tags JSP Expression Language JSP Exception Handling JSP Debugging JSP Internationalization

JSP Sending Email

JSP Database Access

fn:substring() Function

JSP Standard Tag Library JSP Standard Tag Library

The fn:substring() function returns a substring of a string between the specified start and end indices.

Syntax

The syntax for the fn:substring() function is as follows:

${fn:substring(<string>, <beginIndex>, <endIndex>)}

Example

The following example demonstrates the function:

Using JSTL Functions

Generated substring is : ${string2}

The result is as follows:

Generated substring is : is first S


JSP Standard Tag Library JSP Standard Tag Library

JSP Sending Email

JSP Database Access

iFlytek Star Coding Plan includes free model call quotas, DeepSeek, GLM, Kimi, MiniMax, one-stop experience and deployment platform. Configuration Guide Β₯3.9/month Subscribe Now

Click to Share Notes

Cancel

Write notes...

Image URL

Image Description

Image Size Γ—

Share Notes

  • Nickname (Required)
  • Email (Required)
  • Reference URL

Category Navigation

← Jstl Function SubstringafterJstl Function Startswith β†’