<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %> <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> Example of 'fn:substringBefore' and 'fn:substringAfter' tag of jstl
Enter first string from which you want to retrieve substring.
Enter second string before/after that you want to retrieve subString.
Enter First String
Enter Second String
Before After