DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11021>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11021 ActionForward or <html:link> tag does not support absolute URIs ------- Additional Comments From [EMAIL PROTECTED] 2003-01-24 21:38 ------- Here are the diffs for Correcting this BUG. I had to modify three files, it works for me, dont know what the commiters will say. :) ---- Modified org.apache.struts.Globals.java --- 298,305d297 < /** < * The page attributes key under which a Struts is notified of a HTML:BASE. This may be "true" < * or "false". When set to true, the page contains an html:base tag. < * @since Struts 1.1 < */ < public static final String BASETAG_KEY = < "org.apache.struts.globals.BASETAG"; ---- Modified org.apache.struts.taglib.html.BaseTag.java ---- 154,160c154,155 < < // We have to Stick in an Attribute for later reference < // in RequestUtils.java, for making a correct Relative/Absolute Path < String basetag = "true"; < request.setAttribute(Globals.BASETAG_KEY, basetag); < ---- Modified org.apache.struts.util.RequestUtils.java to correct problems ---- 455,456c455 < // DONT Append de Context here, do it while forming the Page URL < // url.append(request.getContextPath()); --- > url.append(request.getContextPath()); 1443d1441 < 1445,1461c1443,1444 < // First Lets check if the Page contains an HTML:BASE tag. < String basetag = < (String) request.getAttribute(Globals.BASETAG_KEY); < < if (!page.startsWith("/")) { < // This means we have a Relative URL, lets append the Context here < sb.append(request.getContextPath()); < // Add Slash < sb.append("/"); < } else if ("true".equalsIgnoreCase(basetag)) { < // This means we have a Base Tag, add the Context to. < sb.append(request.getContextPath()); < } else { < // Simply do Nothing. < } < // Now lets append the Page < sb.append(page); --- > sb.append(appConfig.getPrefix()); > sb.append(page); -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>