  | Mailing List | | Home | | Forum Home | | JBoss - Java Application Server | | Tomcat - JSP/Servlet container | | Struts - A MVC web framework | | iText - An open source PDF Java Library | | JDOM - JDOM XML Parser | | JSP - A mailing list about Java Server Pages specification and reference | | J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition | | J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog | | Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology | |
Struts & Hibernate
|
|
|
  | | | org.xml.sax.SAXParseException:Content is not allowed in prolog. | org.xml.sax.SAXParseException:Content is not allowed in prolog. 2005-09-07 - By Edward King
Back I have follow code,but it raise error in IE page: java.lang.NullPointerException org.apache.taglibs.standard.tag.common.xml .TransformSupport.doEndTag(TransformSupport.java:195)
and raise error in Tomcat5.59: org.xml.sax.SAXParseException:Content is not allowed in prolog.
rolodex.xml <?xml version="1.0" encoding="ISO-8859 (See http://ISO-8859.ora-code.com)-1"?> <rolodex> <contact> <firstName>Anna</firstName> <lastName>Keeney</lastName> <company>BSC, Inc.</company> <email>anna.keeney@(protected)</email> <phone type="work">716-873-9644</phone> <phone type="home">716-834-8772</phone> </contact> </rolodex>
example.jsp <html> <head> <title>Performing XSLT Transformations</title> </head> <body> <%@ taglib uri='http://java.sun.com/jsp/jstl/core' prefix='c' %> <%@ taglib uri='http://java.sun.com/jsp/jstl/xml' prefix='x' %> <c:import var='rolodex_xml' url='rolodex.xml'/> <c:import var='rolodex_xsl' url='rolodex.xsl'/> <x:transform xml='${rolodex_xml}' xslt='${rolodex_xsl}'/> </body> </html>
Why raise above error? How to solve it?
Thanks
=========================================================================== To unsubscribe: mailto listserv@(protected) with body: "signoff JSP-INTEREST". For digest: mailto listserv@(protected) with body: "set JSP-INTEREST DIGEST".
Some relevant archives, FAQs and Forums on JSPs can be found at:
http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com
|
|
 |