Ironically, this was added in to make it a bit easier to make a target resolver a bit more independent of the servlet context path. It's not critical and can be pulled back out if it's causing problems. Feel free to change it.
- James Ugo Cei wrote: > Hi, > > I was busy adapting some code of mine to the latest Abdera trunk and > noticed this contextPath parameter appearing in places where there was > nothing before, like in the constructor of RegexTargetResolver: > > public RegexTargetResolver(String contextPath) > > Is this supposed to be the _servlet_ context path? if it is, I am > finding myself a bit uncomfortable with it, as I am instantiating my > TargetResolver in a Spring application context configuration file, where > I have no idea what the servlet context path is (and don't want to have > to know, honestly). > > Can someone please explain why we need it? > > Ugo > > >
