我用的Ext3.0+struts1.2。在struts中定义了一个LazyValidatorForm类型userForm
  <form-bean name="userForm" type="org.apache.struts.validator.LazyValidatorForm">
      <form-property name="user" type="com.ssh1.po.User"></form-property>
  </form-bean>
Action中获得数据并将其转换成Json对象在Ext中显示:
//将信息设置到userForm中
DynaBean userForm = (DynaBean) form;
userForm.set("user", user);
String json=null;
if(user!=null)
{
JSONObject JsonObject=JSONObject.fromObject(userForm);
json="{success:true,data:"+JsonObject.toString()+"}";
}
else
{
json="{success:false}";
}
response.getWriter().write(json);
System.out.println(json);
return null; 然后在Ext中的FormPanel中用user.属性能显示数据吗?
 {xtype:'textfield',fieldLabel:'姓名',name:'user.userName',allowBlank:false,blankText:'姓名不能为空!'}