cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lally Singh" <>
Subject No block for /test
Date Tue, 08 May 2007 19:25:41 GMT
Hi everyone, me again.  My sitemap's suddenly decided to stop working.

Although this works:
http://localhost:8888/, it correctly goes to the demo.xml from my one
mounted block,

This won't.
http://localhost:8888/test will not, even though I have a matcher for
exactly that string, and the XSP worked fine from that URL a while

I've listed my sitemap below.  I get nothing in the logfiles about why
it doesn't work.  Any ideas?

<?xml version="1.0" encoding="UTF-8"?>
  Licensed to the Apache Software Foundation (ASF) under one or more
  contributor license agreements.  See the NOTICE file distributed with
  this work for additional information regarding copyright ownership.
  The ASF licenses this file to You under the Apache License, Version 2.0
  (the "License"); you may not use this file except in compliance with
  the License.  You may obtain a copy of the License at

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  See the License for the specific language governing permissions and
  limitations under the License.
<map:sitemap xmlns:xsi=""

		<map:generators default="file">
		   <map:generator  name="xsp"
	   		<!-- ... other generator declarations ... -->
	   	   <map:generator  name="qgen"
	   	                   src="edu.vt.iddl.meval.qgenerator.QGenerator" />

  <map:flow language="javascript">
    <map:script src="demo.js"/>
    <map:script src="survey.js" />
        Block default Values
      <map:match pattern="">
        <map:call function="demo"/>

      <!-- screens/demo is calleed by demo.js -->
      <map:match pattern="screens/demo">
        <map:generate src="demo.xml" type="jx"/>
        <map:serialize type="xml"/>

        Basic test XSP
      <map:match pattern="test">
      	<map:generate type="xsp" src="test.xsp"/>
      	<map:serialize type="html"/>

       Survey System
     <map:match pattern="*.continue">
       <map:call continuation="{1}"/>

      <map:match pattern="survey">
      	<map:call function="beginSurvey" />

      <map:match pattern="surveyPage/*/*">
        <map:generate src="qgen_origin.xml" type="qgen">
          <map:parameter name="term" value="{1}" />
          <map:parameter name="course" value="{2}" />
        <!-- for now, just serialize.  We'll put in a lookup
transformer next -->
        <map:serialize type="xml" />

      <map:match pattern="favicon.ico">
      	<map:read src="favicon.ico" />

	  <map:match pattern="generate-questions">

    <map:pipeline id="internal-resource" internal-only="true">
      <!-- Put matchers for internal (accessible only to Cocoon
blocks) resources here
        More details: -->
      <map:match pattern="resource/internal/**">
        <map:read src="resource/internal/{1}"/>

    <map:pipeline id="external-resource">
      <!-- Put matchers for extnernal (accessible to the outside
world, e.g. browser) resources here.
        More details: -->
      <map:match pattern="resource/external/**">
        <map:read src="resource/external/{1}"/>

    <map:pipeline id="service">
      <!-- Put your servlet service matchers here.
        More details: -->


Thanks again for your help!!

H. Lally Singh
Ph.D. Candidate, Computer Science
Virginia Tech

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

View raw message