![]() |
The JSTL fn:replace() function or method in JSP (Java Server Pages) is mainly used for the manipulation of strings. This function allows developers to replace the occurrence of a specified substring with another substring in the given input string. This article will see the Syntax, parameters, and two practical examples of the fn:replace() function. We need to note that the replace function performs case-sensitive processing of string. Syntax of fn:replace()${fn:replace(sourceString, targetSubstring, replacementSubstring)}
Where,
Example of fn:replace() functionBelow is the implementation of the fn:replace() function: HTML
Output:Original String: GeeksforGeeks is a platform for computer science students. GeeksforGeeks is good. Final Output Shown in the Browser:Explanation of the above Program:
|
Reffered: https://www.geeksforgeeks.org
Advance Java |
Related |
---|
![]() |
![]() |
![]() |
![]() |
![]() |
Type: | Geek |
Category: | Coding |
Sub Category: | Tutorial |
Uploaded by: | Admin |
Views: | 14 |