Bom dia a todos,
Estou estudando EL e implementei um exemplo mas quando executo da o seguinte erro:
org.apache.jasper.JasperException: File "/StringFunctions" not found
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:510)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:375)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
com.example.web.ServletExpression.doPost(ServletExpression.java:22)
javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
Meu código:
Classe Java
package com.example.model;
public class UtilString {
public String reverseUpString(String text) {
return text.toUpperCase();
}
}
Arquivo tdl
<?xml version="1.0" encoding-"ISO-8859-1" ?>
<taglib xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sin.com/xml/ns/j2ee/web-jsptaglibrary_2.0.xsd" version="2.0">
<tlib-version>1.2</tlib-version>
<uri>StringFunctions</uri>
<function>
<name>uper</name>
<function-class>com.example.model.UtilString</function-class>
<function-signature>
String reverseUpString(String text)
</function-signature>
</function>
</taglib>
Meu JSP
<%@ taglib prefix="fc" uri="StringFunctions"%>
<html>
<body>
<h1 align="center"> Using EL Example</h1>
${fc:uper(${param["name"]})}
</body>
</hmtl>
Alguém poderia de dar uma luz?
Obrigado