cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "LAU Sze Sze (ECC)" <>
Subject JSPGenerator Error for <map:aggregate>
Date Fri, 05 Mar 2004 02:21:36 GMT
I am facing this problem for a long time and is not able to solve it.
When I aggregate a jsp file within the <map:aggregate>, I can get the
following error:
org.apache.cocoon.ProcessingException: Failed to execute pipeline.:
org.apache.cocoon.ProcessingException: Exception
JSPGenerator.generate(): java.lang.StringIndexOutOfBoundsException:
String index out of range: -1
cause: java.lang.StringIndexOutOfBoundsException: String index out of
range: -1
The following is my code in the sitemap.xmap
       <map:match pattern="login">
          <map:generate type="jsp" src="xdocs/login/login.jsp"/>
          <map:transform src="stylesheets/login2document.xsl"/>
         <map:serialize type="html"/>
       <map:match pattern="*.xsp">
            <map:aggregate element="site">
               <map:part src="cocoon:/bookmain-{1}.xml" />
               <map:part src="cocoon:/booktop-{1}.xml" />
               <map:part src="cocoon:/login" />
               <map:part src="cocoon:/body-{1}.xsp" label="content" />
            <map:transform src="stylesheets/sitemain2xhtml.xsl">
               <map:parameter name="use-request-parameters" value="true"
               <map:parameter name="base-url" value="/clearinghouse" />
            <map:serialize />
I am using cocoon 2.1.4. Thanks for your help and looking forward to
your reply soon.
Lau Sze Sze
Technical Consultant
E-Learning Competency Centre
National Institute of Education
1 Nanyang Walk
Singapore 637616
Tel: (65) 6790 3745
Fax: (65) 6861 7374 <> <> 

View raw message