Since I didn't get a response from the list, I did what any self-respecting 
java programmer would do.  I dug into the struts code.

From FormTag.java:
/**
 * Renders the action attribute
 */
protected void renderAction(StringBuffer results) {
    HttpServletResponse response =
        (HttpServletResponse) this.pageContext.getResponse();

    results.append(" action=\"");
    results.append(
        response.encodeURL(
            TagUtils.getInstance().getActionMappingURL(
                this.action,
                this.pageContext)));

    results.append("\"");
}

From TagUtils:
/**
 * Return the form action converted into a server-relative URL.
 */
public String getActionMappingURL(String action, PageContext pageContext) {
    return getActionMappingURL(action,null,pageContext,false);
}

/**
 * Return the form action converted into a server-relative URL.
 */
public String getActionMappingURL(String action, String module, PageContext 
pageContext, boolean contextRelative) {




So it looks like the URL being written is server-relative.  I want a 
context-relative URL, but the rendering is hard-coded to to server-relative.  
So the next thing I do is search bugzilla to see if anyone has already 
requested this change.  Bingo!

http://issues.apache.org/bugzilla/show_bug.cgi?id=17449

And there's even a patch posted for it.  Now to dig up my ancient bugzilla 
account, log in, and vote for it =]
-- 
Jonathan Corbin
Payment Technologies, Inc
Phone: 717-506-2200 x2565

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

Reply via email to