可试一下如下方法:
<bean:hidden id="Name" name="old" property="Name" />
<html:text property="Name" value="<%= String.valueOf(Name) %>" />

解决方案 »

  1.   

    用<html:text>标签就可以显示旧数据阿,搂主是不是再说明白一点阿,hoho
      

  2.   

    你要在actionform里面设置此值,,
    String name="value";
    public  String getName()
    {
    return name;
    }
    public void setName(String value)
    {
    name=value;
    }
    然后在jsp文件中引用<html:text property="name" size="10"/>就可以
    而不在action设置..
      

  3.   

    是dynamicform还是staticform,if the form type is staticform , u must write the form class yourself !
      

  4.   

    实际数据在数据库里拿,应该是属于action吧现在只是为了方便实验(因为我是菜鸟)才做成这个样子按照例子却发现mapping.getAttribute()是个空值    request.setAttribute(mapping.getAttribute(), form);
      

  5.   

    用<html:text name="old" property="name" />另外, ActionForward perform 是struts 1.0的东西, 赶快更新吧, 用execute