Add a file header to add the form label of Spring to jsp.
<% @ Taglib prifix = "form" uri = "http://www.springframework.org/tags/form" %>
<Form: from name = "user" commandName = "user">
<Table>
<Tr>
<Td> First Name: </td>
<Td> <form: input path = "firstname"/> </td>
</Tr>
<Tr>
<Td> Last Name: </td>
<Td> <form: input path = "lastname"/> </td>
</Tr>
<Tr>
<Td colspan = "2"> <input type = "submit" value = "Submit"/> </td>
</Tr>
</Table>
</Form: form>
CommandName = "user", so the attribute of this page must have the user attribute, and the value corresponding to the user attribute must be a form: the bean (class) corresponding to form, so that the page can be correctly displayed, it will not be reported: Neither BindingResult nor plain target object for bean name "user" available as request attribute..
This article is from the "TinyKing" blog