Problemas para startar as tags jstl

Estou estudando jstl, nas minhas páginas eu quero startar as tags jstl,

estou fazendo conforme está no livro que estou lendo.

<%@taglib prefix="c" uri="http://java.sun.com/jstl/core"%>

mas o netbeans fica aparecendo a seguinte mensagem.

The absolute uri http://java.sun.com/jstl/core cannot be resolved in either web.xml or the jar files deployed with this application

Será que alguém poderia me ajudar?

Tem que colocar o jar da JSTL no classpath da aplicação, no container tem o jar, procura nos exemplos que vem no container.

[quote=marcoslogan]Estou estudando jstl, nas minhas páginas eu quero startar as tags jstl,

estou fazendo conforme está no livro que estou lendo.

<%@taglib prefix="c" uri="http://java.sun.com/jstl/core"%>

mas o netbeans fica aparecendo a seguinte mensagem.

The absolute uri http://java.sun.com/jstl/core cannot be resolved in either web.xml or the jar files deployed with this application

Será que alguém poderia me ajudar?[/quote]

Olá,

Tenta assim: <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

[]'s

É que estou desenvolvendo no NetBeans, e eu não sei onde procurar.

Caso você esteja usando o TomCat procure os jars na instalação (caso tenha instalado os exemplos), coloque os dois jars no classpath da aplicação, no eclipse você pode colocar no diretório [SUA APLICAÇÃO]/WebContent/WEB-INF/lib, ou configure o Build Path, não sei como é no NetBeans, acredito que deve se algo parecido, clique com botão direto na sua aplicação e procure por algo parecido com Build Path, depois vá em Libraries.

[INTALAÇÃO DO TOM CAT]/webapps/examples/WEB-INF/lib/jstl.jar
[INTALAÇÃO DO TOM CAT]/webapps/examples/WEB-INF/lib/standard.jar

Abaixo um exemplo tirado do TomCat

<%@ taglib uri=“http://java.sun.com/jsp/jstl/core” prefix=“c” %>

<!--
 Licensed to the Apache Software Foundation (ASF) under one or more
  contributor license agreements.  See the NOTICE file distributed with
  this work for additional information regarding copyright ownership.
  The ASF licenses this file to You under the Apache License, Version 2.0
  (the "License"); you may not use this file except in compliance with
  the License.  You may obtain a copy of the License at

      http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
-->
<html>
  <head>
    <title>Tag Examples - choose</title>
  </head>
  <body>
    <h1>Tag Plugin Examples - &lt;c:choose></h1>

    <hr>
    </br>
    <a href="notes.html">Plugin Introductory Notes<font <font color="#0000FF"></
a>
    <br/>
    <a href="howto.html">Brief Instructions for Writing Plugins<font color="#000
0
FF"></a>
    <br/> <br/>
    <hr>

    <font color="#000000"/>
    </br>

    <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

    <c:forEach var="index" begin="0" end="4">
      # ${index}: 
      <c:choose>
	<c:when test="${index == 1}">
          One!</br>
	</c:when>
	<c:when test="${index == 4}">
          Four!</br>
	</c:when>
	<c:when test="${index == 3}">
          Three!</br>
	</c:when>
	<c:otherwise>
          Huh?</br>
	</c:otherwise>
      </c:choose>
    </c:forEach>
  </body>
</html>