• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

jstl - fmt Tag problem

 
Ranch Hand
Posts: 260
  • 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
 
Ranch Hand
Posts: 116
  • 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
  • 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
  • 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
  • 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
 
They worship nothing. They say it's because nothing is worth fighting for. Like this tiny ad:
the value of filler advertising in 2020
https://coderanch.com/t/730886/filler-advertising
    Bookmark Topic Watch Topic
  • New Topic