add.jsp
<form action="my.action" method="post">
description:<textarea name="bname" rows="5" cols="25">说明泰诺健</textarea>
<input type="submit" value="add"/>
</form>
Controller
@RequestMapping("/my")
public String my(ModelMap map,Book book) throws Exception {
System.out.println(book.getBname());
return "redirect:all.action";
}
效果:
单击ADD按钮