cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Giacomo Pati <giac...@apache.org>
Subject Re: DispatcherServlet
Date Wed, 16 May 2007 12:41:53 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1



Grzegorz Kossakowski wrote:
> Daniel Fagerstrom pisze:
>> A Spring bean with directory info seem like a good idea. For
>> increasing the usability I would suggest to implement a new source as
>> well "servlets:" e.g. This source should be a listable source so that
>> you can use it with e.g. the directory generator. The source would of
>> course only be listable at the root level the listed sources would of
>> course be ordinary servlet: sources.
> 
> So would it be possible to access resources via servlets: source (by
> using internally a servlet: source) or not?

I don't get you here.

> 
>> So in
>> http://svn.apache.org/repos/asf/cocoon/trunk/core/cocoon-webapp/src/main/webapp/blocks/sitemap.xmap
>> we could use:
>>
>> <map:generate type="xpathtraversable" src="servlets:/">
>>
>> instead of the current construction. I started to work on something
>> like that half a year ago but never finished it.
> 
> After having a list of servlets we would have to find out which one
> contain samples. I guess that it's good idea to ask every servlet for
> certain resource (e.g. samples.xsamples file). But how we do this not
> being connected to all these servlets?

No, no. That's not the point. The cocoon-webapp already has a way to find those .xsample files.
I
didn't wanted to construct such an additional thing

- --
Giacomo Pati
Otego AG, Switzerland - http://www.otego.com
Orixo, the XML business alliance - http://www.orixo.com

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.3 (GNU/Linux)

iD8DBQFGSvwRLNdJvZjjVZARAtGbAJ43Xftua+25L0MR3fCf4Sahqlx0NQCdGVoM
dPbMQNtpMF5VecgOdYrgir8=
=aN5U
-----END PGP SIGNATURE-----

Mime
View raw message