I am using IBM RAD7.5 and WebSphere application server 7.0. I have been to the Project Facets options and activated JavaServer Faces 1.1 and JSTL 1.1.
I am trying to use the code given in HeadFirst
Servlets and JSPs.
My code is as follows-->
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@ taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
<%@ taglib prefix="mine" uri="DiceFunctions"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
<f:view>
${ mine:rollIt()_ }
</f:view>
</body>
</html>
Only the text colored in red shows error. Rest is fine. The first error is that 'cannot find taglib descriptor' and the second is 'EL syntax error'.
Please tell me how to solve this problem.
Also, is there a standard way of making TLDs in Eclipse or RAD? I have made it manually by saving an XML file as .tld
Please help. Thanks!