Thanks!

Reply inline below.

> > The app will parse the URL in order to get its context (i.e. "green"
> > or "blue").
>
> Can you use "/" as your context root? You could then use "/green/*" and
> "/blue/*" servlet mappings, finding the color in the path
> info. Alternately, you could map the servlet as "/*" and parse the URL
> as you mention above.

Well, unless I'm missing something, I don't think that would work, since it
would no longer allow me to do this:

  www.example.com/square/

Which would be based on a totally different app.

I'm in the process of trying out the trick that Niclas suggested. Will post
my results once I'm done.


> Well, translating this freedom into the OSGi notion of an "alias" isn't
> obvious. Is the "alias" equivalent to a URL mapping? The syntactic
> restrictions are different.

Understood. A line needs to be drawn somewhere for various reasons. :-)

This is really only a problem because I'm trying to "beautify" the URL for
purely esthetic reasons.


Cheers,
Dave


_______________________________________________
OSGi Developer Mail List
[email protected]
http://www2.osgi.org/mailman/listinfo/osgi-dev

Reply via email to