ola pessoal, estou tentando começar a utilizar JSTL,
(o tomcat esta funcionando e ja baixei e descompactei os jstl
o meu web.xml esta assim
<?xml version="1.0" encoding="ISO-8859-1"?>
<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
version="2.4">
<!--tag libs -->
<taglib>
<taglib-uri>http://java.sun.com/jstl/fmt</taglib-uri>
<taglib-location>/WEB-INF/fmt.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>http://java.sun.com/jstl/fmt-rt</taglib-uri>
<taglib-location>/WEB-INF/fmt-rt.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>http://java.sun.com/jstl/core</taglib-uri>
<taglib-location>/WEB-INF/c.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>http://java.sun.com/jstl/core-rt</taglib-uri>
<taglib-location>/WEB-INF/c-rt.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>http://java.sun.com/jstl/x</taglib-uri>
<taglib-location>/WEB-INF/x.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>http://java.sun.com/jstl/x-rt</taglib-uri>
<taglib-location>/WEB-INF/x-rt.tld</taglib-location>
</taglib>
</web-app>
coloquei isso no site e funcionou
[code]
<%@ taglib prefix=“c” uri=“http://java.sun.com/jstl/core” %>
<c:out value=“Ola mundo… heheh”/>
[/code]agora ao adicionar as linhas 10 e 11
[code]
<%@ taglib prefix=“c” uri=“http://java.sun.com/jstl/core” %>
(…)
<c:out value=“Ola mundo… heheh”/>
<c:set var=“strNome” value=“valor da variavel”/>
<c:out value="${strNome}"/>
da o seguinte erro na linha 11 (<c:out value="${strNome}"/>)
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: /teste.jsp(11,0) According to TLD or attribute directive in tag file, attribute value does not accept any expressions
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:39)
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:405)
(..)
o que será que esta acontecendo??
Me disseram que jsp era dificil, e por isso que o PHP era melhor , mas vou insistir !!!
Desde já agradeço!!