On Wed, Jan 01, 2003 at 09:48:47AM -0800, Chris Nokleberg wrote:
> On Wed, Jan 01, 2003 at 12:36:38PM +0100, Rickard Öberg wrote:
> > Chris Nokleberg wrote:
> > >I think it would be more useful if instead of applying directly to
> > >actions, the filters/interceptors applied to paths (URLs). The paths
> > >could support wildcards, either Servlet-style or a more complete regexp
> > >style. e.g.
> >
> > The problem is that people will then start naming their pages in order 
> > to make it easy to apply filters. And that's bad. URL's should not 
> > reveal the underlying technology, and should be as long-lived as 
> > possible. Also imagine if you have a page that is initially unsecured, 
> > but after a while you see that it needs to be secured. Will you then add 
> > its path to the configuration or move it to /secure? Probably the 
> > latter, and you then broke all bookmarks to it.
> > 
> > Nah, there's gotta be a better way.
> 
> This is probably mostly a philosophical discussion, but...
> 
> If the URL hierarchy reflects the structure of the application(*), I
> think many cross-cutting aspects such as persistence and security will
> be very cleanly expressed as URL patterns.

The URL we talk about here, as URLs used by the end-user because that's
what the see and bookmark. The user does not care about persistence or
security in the URL but it does care if his bookmark works. I posted a
link to Tim Berners-Lees article "Cool URI's don't change" some time ago
(http://www.w3.org/Provider/Style/URI.html).

> While we're on the subject of URL design, it is also bad to have every
> action end in ".do" or whatever. This is an artificial requirement
> imposed by the framework (and the sucky servlet 2.2 spec). At least a
> Filter-based controller should be provided as an alternative to the
> current Servlet one; this would allow servlet 2.3-compatible container
> users to map actions to any URL.

I agree with you, here. Anybody working already on such a Dispatcher?

-billy.

-- 
Meisterbohne       Söflinger Straße 100          Tel: +49-731-399 499-0
   eLösungen       89077 Ulm                     Fax: +49-731-399 499-9

Attachment: msg00912/pgp00000.pgp
Description: PGP signature

Reply via email to