jakarta-taglibs-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 30258] - java.lang.IllegalStateException: can't declare any more prefixes in this context
Date Tue, 28 Sep 2004 14:09:01 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=30258>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=30258

java.lang.IllegalStateException: can't declare any more prefixes in this context





------- Additional Comments From francoinamsterdam@yahoo.com  2004-09-28 14:09 -------
I have two taglib includes at the top of my JSP.  One for the jstl core and one
for jstl xml.  When I try the transformation I get a similair error
(java.lang.IllegalStateException: can't declare any more prefixes in this
context) .  When I remove one of the taglibs I get a different error.  

I am running tomcat 5.0.28 on the Java SDK 1.4.2_05 on windows.  Tomcat is
running as a service. 


Here is an example of the jsp:

<%@ page language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="x" uri="http://java.sun.com/jsp/jstl/xml" %>
<html> 
 <head>
  <title>XML Test</title>
 </head>
 <body bgcolor="white">
  <center>
  <c:import url="http://localhost:8080/jsp-examples/test/note.xml" var="myxml" />
  <c:import url="http://localhost:8080/jsp-examples/test/note.xsl" var="myxslt" />
  <x:transform xml="${myxml}" xslt="${myxslt}" />   
  </center>
 </body>
</html>

The xml to parse:

<?xml version="1.0"?>
<note>
 <to>Pete</to>
 <from>Franco</from>
 <heading>Example</heading>
 <body>My JSP XML transformation!</body>
</note>

And finally the xslt:

<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="note">
   <table border="0" width="50%">
     <tr>
      <td>From:</td>
      <td><xsl:value-of select="from"/></td>
     </tr>
     <tr>
      <td>To:</td>
      <td><xsl:value-of select="to"/></td>
     </tr>
     <tr>
      <td>Title:</td>
      <td><xsl:value-of select="heading"/></td>
     </tr>
     <tr>
      <td>Message:</td>
      <td><xsl:value-of select="body"/></td>
     </tr>
   </table>
  </xsl:template>
</xsl:stylesheet>

Within my WEB-INF/lib folder I only have two jars, namely jslt.jar and standard.jar

---------------------------------------------------------------------
To unsubscribe, e-mail: taglibs-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: taglibs-dev-help@jakarta.apache.org


Mime
View raw message