• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

jstl - fmt Tag problem

 
Ranch Hand
Posts: 260
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 116
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
reply
    Bookmark Topic Watch Topic
  • New Topic