Win a copy of Java Persistence with Spring Data and Hibernate this week in the Spring forum!
  • 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
  • Ron McLeod
  • Tim Cooke
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Jeanne Boyarsky
Saloon Keepers:
  • Stephan van Hulst
  • Carey Brown
  • Tim Holloway
  • Piet Souris
Bartenders:

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
 
Anything worth doing well is worth doing poorly first. Just look at this tiny ad:
The Low Tech Laboratory Movie Kickstarter is LIVE NOW!
https://www.kickstarter.com/projects/paulwheaton/low-tech
reply
    Bookmark Topic Watch Topic
  • New Topic