Not exactly, "request.getContextPath()" returns "/myroot", but somewhere
along the way ATG is adding the root one more time...
Although I could do a workaround with action mappings, this would not work
since the problem also applies to other tags
like <html:img>.
joachim
Ted Husted wrote:
> So are you saying that in response to "request.getContextPath()" ATG
> returns
>
> "/myroot/myroot"
>
> If the container is broken, a workaround until it is fixed would be to
> add the root context to your ActionMappings (and then just take them out
> again when the issue is resolved).
>
> -- Ted Husted, Husted dot Com, Fairport NY USA.
> -- Custom Software ~ Technical Services.
> -- Tel 716 737-3463.
> -- http://www.husted.com/about/struts/
>
> Joachim Gjesdal wrote:
> > protected String getActionMappingURL() {
> >
> > HttpServletRequest request =
> > (HttpServletRequest) pageContext.getRequest();
> > StringBuffer value = new
> > StringBuffer(request.getContextPath());
> >
> > (....)
> >
> > }
> >
> > Apparently ATG also does this somehow (Tomcat does not). I'm not sure
> > if the taglib should do this or the jsp engine?
> > Its tedious to customize STRUTS taglibs since this is done throughout
> > the taglibs (i.e also in the <html:img> tag).
> > I've seen references to this problem on this list before, but no
> > solutions.
> >
> > Any ideas would be greatly appreciated.
> >
> > thanks,
> >
> > joachim