• 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:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

IllegalStateException

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hello,
i m using JSTL........and i m getting this error.......can any body help me..........i have copied latest standard.jar and jstl.jar

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
Zhtml>
<head>
<title>Count to 10 Example (using JSTL)</title>
</head>

Zbody>
<c:forEach var="i" begin="1" end="10" step="1">
<cut value="${i}" />

<br />
</c:forEach>
</body>
</html>




I ,am getting error here only


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

Validation error messages from TagLibraryValidator for c
null: java.lang.IllegalStateException: can't declare any more prefixes in this context



i m using tomcat 5.0 and jdk 1.4.2



Regards
Hrushi
 
Ranch Hand
Posts: 186
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Was this just a typo?



Also, how are you including the JSTL libraries - in your WAR file or have you stuck them in ${TOMCAT_HOME}/common/lib ?
 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes that is only typo .... I included jar files also properly but the same problem is coming to me also even .tlds ara also in right place
 
Daniel Rhoades
Ranch Hand
Posts: 186
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Might be an XML parsing issue, which patch version of tomcat are you using?

Try using 5.0.28
 
There are no more "hours", it's centi-days. They say it's better, but this tiny ad says it's stupid:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic