On Fri, 20 Jul 2001, Sean wrote:

> Hello All,
>
> I have a question reguarding the cocoon2 sitemap.  I want to support
> something like Tomcat and the Apache web server where users can have either
> a index.jsp, index.html, or get a directory listing for a directory when
> requested.  So if you have a directory call it "foobar" and it has an
> index.jsp file in it the cocoon will "generate" based on that, if it does
> not it will look for a index.html file, if that is not present it will do a
> directory listing.  Is something like this possible with the sitemap?

No this is not supported (and won't be). You'll need to have to know
your URI spaces.

Giacomo

>
> I figured it would look like this:
>
> <map:match pattern="**/">
>   <map:generate type="jsp" src="{1}/index.jsp"/>
>   <map:transform src="stylesheets/webpage/webpage-to-html.xsl"/>
>   <map:error>
>     <map:generate src="{1}/index.html"/>
>     <map:transform src="stylesheets/webpage/webpage-to-html.xsl"/>
>     <map:error>
>       <map:generate type="directory" src="{1}"/>
>       <map:transform src="stylesheets/system/directory-to-html.xsl"/>
>     </map:error>
>   </map:error>
>   <map:serialize/>
> </map:match>
>
> Is there another pattern I would use to do this via the sitemap other then
> maybe writing a jsp to do it for me?
>
> Thanks,
> Sean
>
>
> ---------------------------------------------------------------------
> 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: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
>
>
>
>


---------------------------------------------------------------------
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: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>

Reply via email to