cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Piroumian Konstantin <KPiroum...@protek.com>
Subject RE: JspGenerator Problem
Date Mon, 24 Jun 2002 10:53:07 GMT
> -----Original Message-----
> From: Cenk Uysal [mailto:cenk_uysal@yahoo.com] 
> Sent: Monday, June 24, 2002 2:42 PM
> To: cocoon-users@xml.apache.org
> Subject: Re: JspGenerator Problem
> 
> 
> I tried it but I still get the same error. What about JSP file? is it
> valid JSP that returns XML? I'm not sure. Interesting point is
> Cocoon's own JSP Generator examples run correctly. Here is my JSP:
> 
> <%@ page contentType="text/xml" %>
> <?xml version="1.0"?>
> <page>
>   <title>
> <%    
> out.println("With help from JSP");
> %>
>   </title>
> </page>

A hint: run your JSP through the JSPReader to see what is the pure output of
your page. This can give you an idea on what is wrong (there can be an empty
line before the <?xml ...?> - this causes problems in Xerces).

Also, see JSP examples in CVS HEAD branch to see how to setup a sitemap for
testing the pages (you can run the same JSP either a JSPReader or
JspGenerator at the same time). The samples are in webapp/samples/jsp/.

--
Konstantin Piroumian 
kpiroumian@apache.org

> 
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Yahoo! - Official partner of 2002 FIFA World Cup
> http://fifaworldcup.yahoo.com
> 
> ---------------------------------------------------------------------
> Please check that your question  has not already been answered in the
> FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>
> 
> To unsubscribe, e-mail:     <cocoon-users-unsubscribe@xml.apache.org>
> For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>
> 

---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>


Mime
View raw message