Exception (javax.servlet.jsp.JspException: Content is not allowed in prolog) when using x:parse tag
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anonymous
Posted On:   Friday, December 8, 2006 04:13 AM

In my application, i am using xml tag for jstl for processing xml data.

the code i used is :

<%@ taglib uri="http://java.sun.com/jstl/xml" prefix="x" %>

[Select]


'>





when i run the page on server, an exception is thrown which says: javax.servlet.jsp.JspException: Content is not allowed in prolog.

i have added the saxpath.jar to my lib along with jstl.jar and standard.jar.
where am i going wrong? can anyone help me?

Re: Exception (javax.servlet.jsp.JspException: Content is not allowed in prolog) when using x:parse tag

Posted By:   Robert_Lybarger  
Posted On:   Friday, December 8, 2006 08:49 AM

You probably have illegal whitespace/newlines ahead of your statement, or somewhere up in that area before your root element starts. At least, that's what I've always seens causes that message. Solution: remove the illegal whitespace. If it's being caused by some other automated process elsewhere, address that other process.
About | Sitemap | Contact