<%@ 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:endsWith' tag of jstl
Here only .txt, .doc, .pdf are allowed.This application will check
that you have entered file with valid extension or not.
Enter file name with extension
Given file is text file. Given file is document file. Given file is pdf file. Error found.