cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bucholdt, Christian" <christian.bucho...@BANCOTEC.DE>
Subject JSP-Generator-problem
Date Wed, 30 Jan 2002 11:52:01 GMT

I have a problem with the JSP-Generator.
The small "hello"-JSP-example works fine.
If i install a own example it's doesn't work.
The Error is:
org.apache.cocoon.ProcessingException: SAXException JspGenerator.generate():
org.xml.sax.SAXParseException:The root element is required in a well-formed

Here is my Code:

The JSP-Code:
<%@ page language='java' session='false'%>

String uri_include, form_action, form_method;
ServletContext context;

public void jspInit()
	context = getServletConfig().getServletContext();
	uri_include = "menue_include";
	form_action = "form_action";
	form_method = "form_method";

	<form action="<%=context.getInitParameter(form_action)%>"
method="<%=context.getInitParameter(form_method)%>" />
	<jsp:include page="<%=context.getInitParameter(uri_include)%>"
flush="true" />

The include JSP:

The Stylesheet:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
	<xsl:template match="/">
			<xsl:apply-templates select="page"/>
		      <!--<xsl:apply-templates select="form" />-->
	<xsl:template match="page">
		<xsl:apply-templates select="content"/>
	<xsl:template match="content">
		<xsl:value-of select="para"/>

The Sitemap-Entries:
<map:match pattern="jsp/*">
	<map:generate type="jsp" src="bancotec/floxco/src/jsp/{1}.jsp"/>
	<map:transform src="stylesheets/page/simple-page2html.xsl"/>
	<map:serialize type="html"/>

The Code is in TOMCAT_HOME/webapps/cocoon/bancotec/floxco/src/View/menue.jsp

Can anybody helps me?

christian bucholdt

Please check that your question has not already been answered in the
FAQ before posting. <>

To unsubscribe, e-mail: <>
For additional commands, e-mail: <>

View raw message