Craig McClanahan <craigmcc <at> gmail.com> writes:

> For Tomcat specifically, the context path "ROOT" is treated as a magic
> name that corresponds to the root web application.  Note that you'll
> have to remove the webapps/ROOT directory, because that's where the
> root webapp shipped with Tomcat lives.  You can get additional help
> with this sort of thing on the Tomcat user mailing list.

I have made a small change to org.apache.struts.taglib.TagUils.java in order 
to consider "/" context path as "" :
754,758c754
<         String contextPath = request.getContextPath();
<         if ("/".equals(contextPath))
<               contextPath = "";
<         StringBuffer value = new StringBuffer(contextPath);
<
---
>         StringBuffer value = new StringBuffer(request.getContextPath());

It is simple and solves the issue.
Do you think doing this is bad ?

Thanks,


Ludo.



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to