This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jstl - fmt Tag problem

 
Vijay Kumar
Ranch Hand
Posts: 260
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi..
I am facing problem in jstl. I have written a jsp file wich is using jstl,
<fmt> tag when I execute this file its gioves me an error







my jsp file is give blow

<%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt" %>
<html>
<body>
<h1>Formatting with the default locale</h1>
<jsp:useBean id="now" class="java.util.Date" />
Date: <fmt:formatDate value="${now}" pattern="yyyy-MM-dd HH:mm"/>
Number: <fmt:formatNumber value="${now.time}" />
</body>
</html>


I am using apache-tomcat-5.5.12
please help me out.....
thanks
 
Balasubramani Dharmalingam
Ranch Hand
Posts: 116
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Vijay
use jstl 1.1 instead of jstl 1.0 then it will work.
 
Vijay Kumar
Ranch Hand
Posts: 260
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi...
Balasubramani thanks for it..
but I am already using jstl 1.1 (two jar files jstl.jar & statndard.jar)
I have used core tag like <c:set>,<c:forEach>,<c:choose> etc. they are runnig fine...
but with the <fmt> I am facing this problem..


regards
vijay
 
Balasubramani Dharmalingam
Ranch Hand
Posts: 116
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Vijay
In jstl1.1 uri will be "http://java.sun.com/jsp/jstl/fmt"
But in your jsp it is
<%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt" %>
where u get jstl.jar and standard.jar ?
 
Vijay Kumar
Ranch Hand
Posts: 260
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi....
Balasubramani
thank you very much a lot actually in I was using wrong uri..
thanks for supporting me.....

vijay
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic