From: Khalil A. <ka...@te...> - 2004-11-11 21:22:35
|
Hi Andy, the leading slash on /abc/123 causes the behaviour you see. You would get http://stuff/home/abc/123 by resolving abc/123 against the base locator. Cheers, Kal On 11 Nov 2004, at 12:57, Andy Peel wrote: > Hi, > > I may be expecting the wrong thing here, but I have a topic map with a > base > locator of http://stuff/home/ and an occurrence in that map with a > locator > of /abc/123. > > I have some code that looks like this: > > String relativeURL = occurrence.getResource().toExternalForm(); > String occurrenceURL = > map.getBaseLocator().resolveRelative(relativeURL).toExternalForm(); > > I was expecting to get http://stuff/home/abc/123 but I got > http://stuff/abc/123. In other words, the resolution process is > ignoring the > "home/" on the end of the base URL. > > Is this correct? > > Thanks, > > > Andy. > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: > Sybase ASE Linux Express Edition - download now for FREE > LinuxWorld Reader's Choice Award Winner for best database on Linux. > http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click > _______________________________________________ > Tm4j-developers mailing list > Tm4...@li... > https://lists.sourceforge.net/lists/listinfo/tm4j-developers > > |