action中:
LoginForm loginForm = (LoginForm) form;// TODO Auto-generated method stub
String name=loginForm.getName();
request.setAttribute("name", name);
request.setAttribute("form", loginForm);
jsp中显示:
<%=request.getParameter("name")%>
<bean:write name="name"/>
<bean:write name="form" property="name"/>
如果是传递持久化类的对象的话,显示同form的显示一样