Sorry for my hard headedness, but I still don't understand.  

Perhaps if you could explain this, I would see it.  In looking at the aspect 
sitemaps, I was expecting to find only one pipeline match per possible uri, but 
that is I not the case.  For example, "/community-list"  exist in two places:

> grep -r  "<map:match pattern="  */*.xmap | grep community-list
ArtifactBrowser/sitemap.xmap:                        <map:match 
pattern="community-list">
BrowseArtifacts/sitemap.xmap:            <map:match pattern="community-list">

How does the code know to use the match in  the ArtifactBrowser dir, as oppose 
to what is in the BrowseArtifacts dir?

-Jose

-----Original Message-----
From: Mark H. Wood [mailto:[email protected]] 
Sent: Friday, November 11, 2011 4:49 PM
To: [email protected]
Subject: Re: [Dspace-tech] adding new uri

On Fri, Nov 11, 2011 at 05:03:59PM +0000, Blanco, Jose wrote:
> I guess my problem is that I'm having a real hard time understanding the flow 
> of a request in the manakin world.
> 
> I know that in the jspui world the web.xml file is the starting point for a 
> request and gets you going on the path, but how does it work in cocoon.  When 
> a uri, say, "/abc" comes in. what is the path it takes before the page is 
> rendered?  I think this would be great to know, and could really help me 
> better understand the xmlui interface.  

At the bottom it all rests on servlets.  That's what web.xml is doing:
it tells the servlet container (e.g. Tomcat) how to map the local-part of a 
request to some servlet.

IIRC the JSP engine is just a fancy way of creating servlets on the fly from 
something that looks more like the page you want to deliver.
Similarly Cocoon has to provide at least one servlet to the servlet container 
and you need to have the necessary servlet mapping(s) for it.

Cocoon then looks at the rest of the local-part and applies the
sitemap(s) to it to figure out what to do with it.

-- 
Mark H. Wood, Lead System Programmer   [email protected]
Asking whether markets are efficient is like asking whether people are smart.

------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to