普通jsp页面的form表单与使用struts框架的form表单的区别
普通:
<form action="addStudent" method="post" >
学生姓名:<input type="text" name="name"/>
出生年月:<input type="text" name="birth"/>
主修课程:<input type="text" name="major"/>
</form>
使用struts框架:
<form action="<%=request.getContextPath() %>/addStudent.do" method="post" >
学生姓名:<input type="text" name="name"/>
出生年月:<input type="text" name="birth"/>
主修课程:<input type="text" name="major"/>
<input type="submit" value="add">
</form>