ssh2写了一个修改,往修改的页面传值的时候总是报错,错误在下面

partyisover88 2011-07-15 03:43:22
15:41:48.856 [http-808-4] DEBUG c.o.x.util.InstantiatingNullHandler - Entering nullPropertyValue [target=[com.opensymphony.xwork2.DefaultTextProvider@630d2a], property=struts]
15:41:48.856 [http-808-4] DEBUG c.o.xwork2.DefaultActionProxy - Creating an DefaultActionProxy for namespace and action name recordmanage
15:41:48.856 [http-808-4] DEBUG o.s.b.f.s.DefaultListableBeanFactory - Returning cached instance of singleton bean 'recordmanageAction'
15:41:48.856 [http-808-4] DEBUG c.o.x.interceptor.I18nInterceptor - intercept '/recordmanage' {
15:41:48.856 [http-808-4] DEBUG c.o.x.interceptor.I18nInterceptor - requested_locale=null
15:41:48.856 [http-808-4] DEBUG c.o.x.interceptor.I18nInterceptor - before Locale=zh_CN
15:41:48.856 [http-808-4] DEBUG c.o.x.util.InstantiatingNullHandler - Entering nullPropertyValue [target=[com.dykj.erecord.web.app.recordmanage.action.RecordmanageAction@14e1819, com.opensymphony.xwork2.DefaultTextProvider@630d2a], property=struts]
15:41:48.856 [http-808-4] DEBUG o.a.s.i.FileUploadInterceptor - Bypassing / recordmanage
15:41:48.856 [http-808-4] DEBUG c.o.x.i.StaticParametersInterceptor - Setting static parameters {}
15:41:48.856 [http-808-4] DEBUG c.o.x.i.ParametersInterceptor - Setting params Rid => [ 126 ]
15:41:48.856 [http-808-4] DEBUG c.o.xwork2.util.CompoundRootAccessor - No object in the CompoundRoot has a publicly accessible property named 'Rid' (no setter could be found).
15:41:48.856 [http-808-4] DEBUG o.a.s.i.v.AnnotationValidationInterceptor - Validating /recordmanage with method selectid.
15:41:48.856 [http-808-4] DEBUG c.o.x.i.DefaultWorkflowInterceptor - Invoking validate() on action com.dykj.erecord.web.app.recordmanage.action.RecordmanageAction@14e1819
15:41:48.856 [http-808-4] DEBUG c.o.x.i.PrefixMethodInvocationUtil - cannot find method [validateSelectid] in action [com.dykj.erecord.web.app.recordmanage.action.RecordmanageAction@14e1819]
15:41:48.856 [http-808-4] DEBUG c.o.x.i.PrefixMethodInvocationUtil - cannot find method [validateDoSelectid] in action [com.dykj.erecord.web.app.recordmanage.action.RecordmanageAction@14e1819]
15:41:48.856 [http-808-4] DEBUG c.o.xwork2.DefaultActionInvocation - Executing action method = null
15:41:48.872 [http-808-4] DEBUG o.a.s.d.ServletDispatcherResult - Forwarding to location /jsp/wro-r.jsp
15:41:48.872 [http-808-4] DEBUG c.o.x.util.InstantiatingNullHandler - Entering nullPropertyValue [target=[com.opensymphony.xwork2.interceptor.ExceptionHolder@115a947, com.dykj.erecord.web.app.recordmanage.action.RecordmanageAction@14e1819, com.opensymphony.xwork2.DefaultTextProvider@630d2a], property=org]
...全文
588 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
数据流 2011-10-20
  • 打赏
  • 举报
回复
原因有二:
1.你的POJO对象中没有写setId方法,导致修改页面传递过来的主键id无法封装到POJO中

2.你的修改页面没有隐藏要修改的记录的id
lyl340321 2011-10-18
  • 打赏
  • 举报
回复
[b][b]sd[/b][/b]
partyisover88 2011-08-25
  • 打赏
  • 举报
回复
谢谢,已经解决了,呵呵
玩玩噌噌 2011-07-15
  • 打赏
  • 举报
回复
根据Id修改, 在action里面写System。out。print(id);看看能否获取到

能的话就时书写错误,不能就时根据Id查没查到咯
玩玩噌噌 2011-07-15
  • 打赏
  • 举报
回复
要么没有进入到修改的action,要么在修改页面获取值的对象书写有误
玩玩噌噌 2011-07-15
  • 打赏
  • 举报
回复
cannot find method 你跳到修改时有没有进入到action啊?

67,512

社区成员

发帖
与我相关
我的任务
社区描述
J2EE只是Java企业应用。我们需要一个跨J2SE/WEB/EJB的微容器,保护我们的业务核心组件(中间件),以延续它的生命力,而不是依赖J2SE/J2EE版本。
社区管理员
  • Java EE
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧