users@jsr311.java.net

Order of path templates <was> Re: JSR311: Re: Some comments to JSR 311

From: Paul Sandoz <Paul.Sandoz_at_Sun.COM>
Date: Tue, 08 Jan 2008 15:15:03 +0100

Hi Bill,

Bill Burke wrote:
>> You raise a tricky issue, it seems to me that generating an error
>> would be the right thing to do. Unless someone has a better idea for
>> how to pick amongst the alternatives ?
>>
>
> No error. The way I've implemented it was
>
> http://.../abc/def tries to match the more explicit mapping
> (@Path("abc/{var")) first before trying to match wildcards.
>

Did you order "abc/{var}" and "{var}/def? (or say "xyz/abc/{var}" and
"xyz/{var}/def")

i.e. how did you determine which was more explicit?

Paul.

-- 
| ? + ? = To question
----------------\
    Paul Sandoz
         x38109
+33-4-76188109