页面表单提交后怎么保留用户在该页面输入的数据

页面表单提交后如何保留用户在该页面输入的数据
可以在Action中将form表单存储在request请求域中,例如

request.setAttribute("form", form);;
form指的是方法execute(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response)
中的form

然后在JSP中利用<bean:write>标签进行输出
例如
<input type="text" name="department" id="department"
size="60" value="<bean:write name="form" property="department"/>"/>

即可