cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From 王红宝 <wan...@greatom.com>
Subject How to use the pattern
Date Fri, 22 Mar 2002 03:43:29 GMT
Dear All:
  when I use the cocoon, I config the xmap file like follows:

 <map:match pattern="jsp/*.htm*">
    <map:generate type="jsp" src="/docs/samples/jsp/{1}.jsp{2}"/>
    <map:transform src="docs/samples/jsp/{1}.xsl"/>
    <map:serialize type="html"/>
   </map:match>

I request the url http://localhost:8080/cocoon/jsp/hello.htm?test=abc
the page http://localhost:8080/cocoon/jsp/hello.jsp?test=abc works well.

but I don't want the user feel this is a active page, so I change the
xmap to the follows:

 <map:match pattern="jsp/*_*.htm">
    <map:generate type="jsp" src="/docs/samples/jsp/{1}.jsp?test={2}"/>
    <map:transform src="docs/samples/jsp/{1}.xsl"/>
    <map:serialize type="html"/>
   </map:match>

but the webserver throw FileNotFound Exception.

FileUtil: in safePath(E:\tomcat\webapps\cocoon, /docs/samples/jsp/hello.
jsp?test
=abc),
realPath=E:\tomcat\webapps\cocoon\docs\samples\jsp\hello.jsp?test=abc
java.io.IOException: 系统找不到指定的路径。

I want to know how to implement this.



---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.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