You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Paul Benedict (JIRA)" <ji...@apache.org> on 2007/09/01 05:47:34 UTC

[jira] Updated: (STR-433) [taglib] html:form trims all extensions

     [ https://issues.apache.org/struts/browse/STR-433?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Paul Benedict updated STR-433:
------------------------------

    Fix Version/s: Future

> [taglib] html:form trims all extensions
> ---------------------------------------
>
>                 Key: STR-433
>                 URL: https://issues.apache.org/struts/browse/STR-433
>             Project: Struts 1
>          Issue Type: Improvement
>          Components: Taglibs
>    Affects Versions: Nightly Build
>         Environment: Operating System: other
> Platform: Other
>            Reporter: Ted Husted
>            Priority: Minor
>             Fix For: Future
>
>
> 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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.