'Unknown tag (form:form) JSP page warning in Spring MVC Login Application

I am getting unknown form tag warning, Unknown tag (form:form) in spring mvc login validation application. How to resolve this. Please suggest me to fix this.

<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<html>
<head>
 <title>Cable Vision UserLogin </title>
</head>
<body>
  <form:form id="login" action="login.do" method="post"
       commandName="loginDetails">
       <table>
         <tr>
           <td colspan="3"><h3>Cable Vision UserLogin</h3></td>
         </tr>
          <tr>
          <td><label>UserName</label></td>
          <td><form:input path="userName"></form:input></td>
          <td><font color="red"><form:errors path="userName"></form:errors></font></td>
          </tr>
          <tr>
            <td><label>Password</label></td>
            <td><form:input path="Password"></form:input></td></td>
            <td><font color="blue"><form:errors path="Password"></form:errors></font></td>
          </tr>
          <tr>
            <td colspan="2" align="center"><input type="submit" value="Login"></td>
            <td></td>
          </tr>
          <tr>
            <td colspan="3" align="center"><font color="red"><form:errors/></font></td> 
          </tr>  
       </table>
       </form:form>
</body>
</html>


Solution 1:[1]

Code looks fine for all attributes which have been defined in form:form tag. Whatever you can check two thinks

(1) Rebuild your application (2) Check your code for action="login.do" that, how have you configured this in xml.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 surya