Re: [OT] getting context path name

2007-03-07 Thread santhoshihrd
asy to write stuff like: > > ${pageContext.request.contextPath}/images/myMasthead.jpg > > If you really need the ROOT webapp to return "/", then you'll just have > to test for an empty string and handle that as a special case. > > --David > > santhoshihr

getting context path name

2007-03-07 Thread santhoshihrd
Hi all, I have an issue I have a context nemed "demo" with the following configuration I want to get the context name "demo" in a servlet . I am using Spring framework. It will be more usefule if I get it in Dispatcher servlet. If I am deploying the context in "/" , I should get it as "/"