deelan [mailto:[EMAIL PROTECTED] wrote:
>
> yes, this is the issue i wanted to point out with my post.
> after "index" servlet everything is fictional: "param1" and "param2"
> are just used to make the URL more friendly, so instead of write:
> http://somehost.com/context/servlet?key=1param1&key2=param2
> 
> you reduce the url to:
> http://somehost.com/context/servlet/param1/param2/
> 
> resources (images, CSS) should looked up after the context:
> http://somehost.com/context/

Of course, Webware does know where the context starts, but unfortunately it
doesn't know where the extra parameters end. Therefore, you really need some
kind of "base" element in your HTML to avoid the confusion.

[...]

> however i think i'll drop extrapathinfo, given its current state
> it's too much tricky to get everything right. i'm gonna
> investigate apache's mod_rewrite and possibly generate static
> HTML pages upon request.

One thing that I forgot to mention was that in Apache Cocoon (Java/XML/XSLT
framework), there are various pattern matching features which can be used to
detect things like "all files ending with .css", and whilst one can take a
simplistic approach and divert accesses to such resources to a single fixed
directory of such files, usually that's good enough. In other words, it's
rare to have hierarchies of stylesheets, in my experience, and so you just
put them all in one place and let the framework find them there when it sees
one of them mentioned anywhere in the URL.

So with mod_rewrite, which is probably even more powerful, you could
certainly consider retaining extrapathinfo and introduce pattern matching
for those special "diversions" to common directories. For example:

  http://somehost.com/context/servlet/param1/param2/styles.css

This would cause the Apache to realise that a stylesheet is being requested
and just serve up that document from some directory, rather than having
Webware trying to work out whether styles.css is dynamic content, an
argument or whether a servlet should be invoked or not.

Hope that made sense!

Paul


-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss

Reply via email to