当前位置: 代码迷 >> Java Web开发 >> 【JSTL标签库】新手有关问题,求帮忙。多谢
  详细解决方案

【JSTL标签库】新手有关问题,求帮忙。多谢

热度:8479   发布时间:2013-02-25 21:04:21.0
【JSTL标签库】新手问题,求帮忙。谢谢。
本帖最后由 liqinglin06 于 2013-02-20 12:29:38 编辑
首先代码给上:
--------------------------------------------------------------------------

<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jst1/core" %>
<html>
  <head>
    <title>标签使用</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">    
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
  </head>
  <body>
    <c:set var="number" value="${1+1}" scope="page"></c:set>
  </body>
</html>

--------------------------------------------------------------------------
我已经在web-inf的lib下放了jstl.jar和standard.jar包了。但是在代码第二行uri处
还是会出现:
Can not find the tag library descriptor for "http://java.sun.com/jsp/jst1/core"
然后在调用自定义标签<c:set>的时候会显示:Unknown tag (c:set)的警告。
--------------------------------------------------------------------------
求问,我到底在哪个细节地方没做对?崩溃了。
JSTL taglib
/jsp/jst1[/size]/core  
我怎么看jst1 数字1 
是字母l吧