<%@taglib uri="http://jakarta.apache.org/taglibs/io-1.0" prefix="io" %> <%@page import="java.net.*" %> <%-- Serves up a file via file system --%> <% // a scriptlet to get a valid file name URL url = pageContext.getServletContext().getResource( "/examples.css" ); String name = url.toString(); %>

Fetch a file from a URL using the file: protocol

Loading file: <%= name %>