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

FormTag.getActionMappingURL() assumes 1 servlet mapping

           Summary: FormTag.getActionMappingURL() assumes 1 servlet mapping
           Product: Struts
           Version: 1.0 Final
          Platform: All
        OS/Version: Other
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Custom Tags
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


It appears to be an assumption in the form tag code that there be just one servlet 
mapping per servlet; only the last mapping per servlet in web.xml is retreived 
(retreivable) by the form tag.  

Further, the form tag code only generates a good URL if the servlet mapping has an 
asterisk.  

To duplicate, add a servlet mapping to web.xml BELOW the original, and note that it is 
then used by the form tag.  If the mapping has an asterisk, a functional URL is 
generated, and vice-versa.

Consider using the "action" string in the URL even if it does not have an asterisk.  

As far as a "fix" for multiple mappings, I suppose this is just something to document: 
that the last mapping will be used.  If the asterisk is a key, perhaps iterate through 
choices to select one that has an asterisk, if available.

let me know if I've missed something.

larry hamel

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

Reply via email to