解决方案 »

  1.   

    http://blog.csdn.net/withiter/article/details/5466977
      

  2.   

    和我的例子差不多,我忘贴了testAction-conversion.properties
    KeyProperty_tms=testString
    Element_tms=test.TestModel
    CreateIfNull_tms=true
      

  3.   

    始终报 ognl.OgnlException: source is null for getProperty(null, "makeNew")
    是什么原因呢?做的和这个例子基本上是一样的啊?
      

  4.   

    struts本身就没有这样的封装,最终还是要自己写
      

  5.   

    已经搞定了,好几个问题:
    1、Action里对tms忘写了setter和getter
    2、Action-conversion.properties里得写KeyProperty_tms=id//这个id是什么意思不明白
    3、在TestModel中要定义一个long类型的id
      

  6.   

    我也遇到这个问题了?具体怎么解决啊?这个properties文件怎么写?文件名有要求吗?文件里面具体要写什么东西?还有这个Long型的Id是数据库的ID吗?