cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lassi Immonen <limmo...@malla.urova.fi>
Subject [C2]Sitemap resource bugs
Date Wed, 08 Nov 2000 09:42:22 GMT
Hi,

Following in sitemap doesn't work.
Should we be able to call resources this way?

--- sitemap.xmap -----
<map:match pattern="restest/*">
   	<map:redirect-to resource="{1}"/>
  </map:match>

<map:match pattern="restest1/*">
   	<map:redirect-to uri="/cocoon/{1}"/>
  </map:match>
------

Compiler throws exception on resource_{1} call.
Should there be different method calling resources? 

-----_sitemap_xmap.java------
if ((list = wildcardMatch(matcher_restest__wildcard_N14e_expr,
                                objectModel)) != null) {
      listOfLists.add (list);
      if (true)
           return resource_{1}(pipeline, listOfLists,
                              environment, cocoon_view);
        listOfLists.remove (list);
      }
if ((list = wildcardMatch(matcher_restest1__wildcard_N155_expr,
                                objectModel)) != null) {
        listOfLists.add (list);
        environment.redirect (substitute(listOfLists, "/cocoon/{1}"));
        if (true)
          return true;
        listOfLists.remove (list);
      }


Thanks,

 Lassi
Mime
View raw message