martinc     01/10/19 22:02:42

  Modified:    doc      index.xml struts-html.xml
               doc/userGuide taglib_struts-html-ref.xml
  Log:
  Documentation fixes:
   - fix link to cvsweb
   - add more documentation for file upload requirements
  
  PR: 4168, 4268
  Submitted by: Joe Faith, Mark Mascolino
  
  Revision  Changes    Path
  1.10      +1 -1      jakarta-struts/doc/index.xml
  
  Index: index.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-struts/doc/index.xml,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- index.xml 2001/10/07 04:48:08     1.9
  +++ index.xml 2001/10/20 05:02:42     1.10
  @@ -91,7 +91,7 @@
     builds so you know what you are getting!</p>
   
     <p>Access to the CVS source repository for Struts is available through both
  -  <a href="http://jakarta.apache.org/cvsweb/index.cgi/jakarta-struts/";>web
  +  <a href="http://cvs.apache.org/viewcvs/jakarta-struts/";>web
     browser</a> and
     <a href="http://jakarta.apache.org/getinvolved/cvsindex.html";>CVS client</a>
     interfaces.</p>
  
  
  
  1.25      +10 -7     jakarta-struts/doc/struts-html.xml
  
  Index: struts-html.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-struts/doc/struts-html.xml,v
  retrieving revision 1.24
  retrieving revision 1.25
  diff -u -r1.24 -r1.25
  --- struts-html.xml   2001/10/15 17:33:34     1.24
  +++ struts-html.xml   2001/10/20 05:02:42     1.25
  @@ -881,15 +881,18 @@
                   the specified value or the specified property of the bean
                   associated with our current form. This tag is only valid when
                   nested inside a form tag body.
  -                In order for a form with a file to work, you need to set the
  -                form's "enctype" attribute to "multipart/form-data".
               </p>
               <p>
  -                <pre>
  -                &lt;html:form enctype="multipart/form-data"&gt;
  -                    &lt;html:file property="theFile" /&gt;
  -                &lt;/html:form&gt;
  -                </pre>
  +                As with the corresponding HTML &lt;input&gt; element, the
  +                enclosing form element must specify "POST" for the 
<code>method</code>
  +                attribute, and "multipart/form-data" for the <code>enctype</code>
  +                attribute. For example:
  +            </p>
  +            <p>
  +    <pre>
  +    &lt;html:form method="POST" enctype="multipart/form-data"&gt;
  +        &lt;html:file property="theFile" /&gt;
  +    &lt;/html:form&gt;</pre>
               </p>
           </info>
   
  
  
  
  1.2       +12 -0     jakarta-struts/doc/userGuide/taglib_struts-html-ref.xml
  
  Index: taglib_struts-html-ref.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-struts/doc/userGuide/taglib_struts-html-ref.xml,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- taglib_struts-html-ref.xml        2001/09/17 19:57:36     1.1
  +++ taglib_struts-html-ref.xml        2001/10/20 05:02:42     1.2
  @@ -887,6 +887,18 @@
                   associated with our current form. This tag is only valid when
                   nested inside a form tag body.
               </p>
  +            <p>
  +                As with the corresponding HTML &lt;input&gt; element, the
  +                enclosing form element must specify "POST" for the 
<code>method</code>
  +                attribute, and "multipart/form-data" for the <code>enctype</code>
  +                attribute. For example:
  +            </p>
  +            <p>
  +    <pre>
  +    &lt;html:form method="POST" enctype="multipart/form-data"&gt;
  +        &lt;html:file property="theFile" /&gt;
  +    &lt;/html:form&gt;</pre>
  +            </p>
           </info>
   
           <attribute>
  
  
  


Reply via email to