Ronwaldo Cruz wrote:Hi,
I'm new to Spring 3. I'm trying to use @PathVariable as follows:
It works well for URLs like /test/someValueHere/test. However when someString needs to have a slash in it like /test/abc/abc/test, Spring doesn't recognize it anymore as matching the pattern. Previously I do it like /test/**/test in Spring 2.5 but this time I need to use PathVariable to easily extract out the someString value.
Anyone can help? Thanks
Well, to Spring those are two totally different URLs a slash has meaning in a URL. the "**" is just a wildcard the PathVariable isn't a wildcard.
Why would you want someString parameter to be "abc/abc"? Because each PathVariable usually has some kind of meaning and to me "abc" has one meaning and the other "abc" would have a different meaning.
Mark