You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Cenk Uysal <ce...@yahoo.com> on 2002/06/23 19:36:48 UTC

JspGenerator Problem

I try to use JspGenerator with following sitemap entry:

   <map:pipeline>

     
   <map:match pattern="cenk/*.*">
    <map:generate src="jspxml.jsp" type="jsp"/>
    <map:transform src="jspxml.xsl"/>
    <map:serialize type="html"/>
   </map:match>
   
    </map:pipeline>

Jsp file is just like this:

<%@ page contentType="text/xml" %>
<?xml version="1.0"?>
<page>
  <title>
<%    
out.println("With help from JSP");
%>
  </title>
</page>

And my XSL is as follows:

<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version='1.0'>

<xsl:template match="/">
<html>
<body>
    <xsl:for-each select="page">
    
    <xsl:value-of select="title"/>
     
    
    </xsl:for-each>
    
  </body>
  </html>
</xsl:template>



</xsl:stylesheet>

When I try to run this application Cocoon gives "SAXException
JspGenerator.generate()" error?

What is wrong? Cocoon's own JSP examples run without problem. I use
Cocoon 2.0.2

__________________________________________________
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:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>


Re: JspGenerator Problem

Posted by Cenk Uysal <ce...@yahoo.com>.
Nothing changed. Same error again. Can you try them in your system
for me? I want to learn is it my fault or Cocoon's fault?

__________________________________________________
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:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>


Re: JspGenerator Problem

Posted by yuryx <yu...@mobicomk.donpac.ru>.
Cenk Uysal wrote:

>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:
>  
>
try <%@ page language="java" %>

instead of

><%@ page contentType="text/xml" %>
>  
>
Regards.
Yury.



---------------------------------------------------------------------
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:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>


Re: JspGenerator Problem

Posted by Cenk Uysal <ce...@yahoo.com>.
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>



__________________________________________________
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:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>


Re: JspGenerator Problem

Posted by yuryx <yu...@mobicomk.donpac.ru>.
Cenk Uysal wrote:

>I try to use JspGenerator with following sitemap entry:
>
>   <map:pipeline>
>
>     
>   <map:match pattern="cenk/*.*">
>    <map:generate src="jspxml.jsp" type="jsp"/>
>    <map:transform src="jspxml.xsl"/>
>    <map:serialize type="html"/>
>   </map:match>
>   
>    </map:pipeline>
>  
>
try define in sitemap <map:generate src="/jspxml.jsp" type="jsp"/>
instead the <map:generate src="jspxml.jsp" type="jsp"/>

Regard.
Yury.



---------------------------------------------------------------------
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:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>