DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=31836>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=31836 Non-wildcard mapped actions cause <html:form>'s action render to fail Summary: Non-wildcard mapped actions cause <html:form>'s action render to fail Product: Struts Version: 1.2.4 Platform: All OS/Version: All Status: NEW Severity: Normal Priority: Other Component: Custom Tags AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] If you don't use wildcard mappings within your web.xml (i.e. *.do -> ActionServlet), but instead use static mappings (i.e. /authenticate -> ActionServlet, /help -> ActionServlet, etc.), TagUtils:getActionMappingURL() will render the action in an <html:form> tag to be /contextroot. Here is a patch I believe to correct the problem: *** TagUtils.java Sun Sep 12 20:36:10 2004 --- TagUtils-new.java Thu Oct 21 16:44:38 2004 *************** *** 782,788 **** servletMapping.substring(0, servletMapping.length() - 2)); value.append(actionMapping); ! } else if (servletMapping.equals("/")) { value.append(actionMapping); } if (queryString != null) { --- 782,788 ---- servletMapping.substring(0, servletMapping.length() - 2)); value.append(actionMapping); ! } else { value.append(actionMapping); } if (queryString != null) { --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
