Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JSPF and Functions Taglib

843840Nov 28 2007 — edited Nov 29 2007
I have a JSPX 2.0 document which includes a JSPF via the jsp include directive:
<?xml version="1.0" encoding="UTF-8"?>
<jsp:root xmlns="http://www.w3c.org/1999/xhtml" 
    xmlns:jsp="http://java.sun.com/JSP/Page" 
    xmlns:c="http://java.sun.com/jsp/jstl/core"
    xmlns:fmt="http://java.sun.com/jsp/jstl/fmt"
    xmlns:fn="http://java.sun.com/jsp/jstl/functions"
    version="2.0">
<jsp:directive.page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" />
<jsp:output omit-xml-declaration="false" doctype-root-element="html"
    doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN"
    doctype-system="http://www.w3c.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" />
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>Title</title>
</head>
<body>
    <!-- . . . -->
    <jsp:directive.include file="includedFile.jspf" />
    <!-- . . . -->
</body>
</html>
</jsp:root>
I am encountering a problem where the "functions" taglib is not available to the JSPF when I try to use it.
org.apache.jasper.JasperException: /includedFile.jspf(1,5) The attribute prefix fn does not correspond to any imported tag library
includedFile.jspf:
<p>${fn:toUpperCase('test')}</p>
The 'core' and 'fmt' tags both compile and run fine in the JSPF; and the 'functions' tags work in the JSPX but not the JSPF. What might be missing to make the 'functions' tags work in the jspf?

(I am using Servlet 2.5, JSP 2.0, JSTL 1.1, and Tomcat 6.0.14.)
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 27 2007
Added on Nov 28 2007
2 comments
769 views