You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by bu...@apache.org on 2002/01/21 13:43:04 UTC

DO NOT REPLY [Bug 5937] New: - html:form trims all extensions

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=5937>.
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=5937

html:form trims all extensions

           Summary: html:form trims all extensions
           Product: Struts
           Version: Nightly Build
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Custom Tags
        AssignedTo: struts-dev@jakarta.apache.org
        ReportedBy: husted@apache.org


The getActionMappingName method in taglib.html.FormTag.java trims all extensions 
"on the theory that extension mapping is being used to select the controller 
servlet". In practice, it can be useful to have an action return a dynamic page 
of a type mapped to a certain extension (.txt, .pdf, .xls) so that it can be 
saved to the client's file system. Even with the content/type set, browsers will 
save pages differently based on the extension. An action that uses a /do/* 
prefix and some extension works fine with through a hyperlink, but fails with a 
form. (So at least there is a workaround.) The test for prefix/suffix mapping 
should be generalized and applied in getActionMappingName and in 
getActionMappingURL. This has been the behavior since the beginning, but if 
there is a 1.0.2, we might classify it as a bug.

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>