cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jacob Arnold <Jac...@envworld.com>
Subject Descriptor Sitemap Wildcard Difficulty
Date Mon, 02 Dec 2002 16:56:29 GMT
I'm using a fairly generic sitemap match to handle my edit forms. I'd like
to redirect the user back to the edit page after they've submitted the form,
but the "edit-{1}.xsp" wildcard within the action doesn't seem to work. I
get the error message:

java.io.FileNotFoundException:
d:\jakarta-tomcat-4.1.12\webapps\cocoon\encode\docs\accounting\edit-.xsp
(The system cannot find the file specified)

I'm using Cocoon 2.0.3 and my sitemap fragment is below. Any ideas?

Thanks,
Jacob


<map:match pattern="accounting/edit-*.html">
  <map:act set="process">
    <map:parameter name="descriptor" value="descriptors/{1}.xml"/>
    <map:aggregate element="document">
      <map:part src="cocoon:/menu.xml" strip-root="true"/>
      <!-- The problem seems to be in the following line. -->
      <map:part src="cocoon:/accounting/edit-{1}.xsp" strip-root="true"/>
    </map:aggregate>
    <map:transform src="stylesheets/encode-html.xsl"/>
    <map:serialize/>
  </map:act>
  <map:aggregate element="document">
    <map:part src="cocoon:/menu.xml" strip-root="true"/>
    <map:part src="cocoon:/accounting/edit-{1}.xsp" strip-root="true"/>
  </map:aggregate>
  <map:transform src="stylesheets/encode-html.xsl"/>
  <map:serialize/> 
</map:match>

---------------------------------------------------------------------
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