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 2003/01/14 20:05:51 UTC

DO NOT REPLY [Bug 16074] New: - html:form uses 'action' not 'input' to select mapping, etc.

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

html:form uses 'action' not 'input' to select mapping, etc.

           Summary: html:form uses 'action' not 'input' to select mapping,
                    etc.
           Product: Struts
           Version: Nightly Build
          Platform: All
               URL: http://jakarta.apache.org/struts/api/org/apache/struts/t
                    aglib/html/package-frame.html
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Documentation
        AssignedTo: struts-dev@jakarta.apache.org
        ReportedBy: programvaruverkstad@yahoo.se


Package org.apache.struts.taglib.html, subsection "About the form tag".

Hope I'm getting this right, not too experienced with Struts, reading the doco
with microscope to get my app working.

(1) Paragraph "The name of the bean and its class can be specified as a property
to the form tag..." This (i.e. the 'name' and 'type' attributes) is deprecated
as of 1.1b3 according to the taglib reference.

(2) Same paragraph. "If the current page is specified as the input property for
an action, the name of the action is used." Inspecting
org.apache.struts.taglib.html.FormTag.java I get the impression that the
'action' attribute is used to find a mapping. The 'input' attribute is not used
at all for this purpose, as far as I can see. Test runs confirm that the mapping
with a path that agrees with the 'action' attribute is selected. 'Agrees' means
that the extension may be chopped off.

(3) Same paragraph: "the name of the action is used." Extend the sentence to
include "as the name attribute of the generated HTML <FORM> tag". Vital information.

(4) The example after 'Here's a clip from the Struts Example configuration:'.
The struts-config DTD requires that 'form-beans' precedes 'action-mappings'. The
two should be swapped (as they indeed are in the real example configuration).

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