title: JSP taglib to select file path - Undefined attribute name type
body: <p>I am trying to create a form. Where the user need to select a file path.</p>
  
  <p>This can be done in html as</p>
  
  <pre><code>&lt;input type="file" name="inputFileName"/&gt;
  </code></pre>
  
  <p>If we use html then I don't know how to map that value to "fileObject" class.</p>
  
  <p>So how should I do this with the following code throwing a warning "Undefined attribute name type "</p>
  
  <pre><code>&lt;%@ page language="java" contentType="text/html; charset=ISO-8859-1"
      pageEncoding="ISO-8859-1"%&gt;
  &lt;%@taglib uri="http://www.springframework.org/tags/form" prefix="f" %&gt;    
  &lt;!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"&gt;
  &lt;html&gt;
  
  &lt;body&gt;
  &lt;f:form method="PUT" commandName="fileObject" &gt;
  &lt;f:input type="file" path="inputFileName"/&gt;
  &lt;/f:form&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Exception: 
  org.apache.jasper.JasperException: /WEB-INF/jsp/Main.jsp(9,0) Attribute type invalid for tag input according to TLD</p>