1.你jsp向action传值(例如<intput type="text" name="user.username" value="张三">)
你的action方法里面对成员变量(比如public User user;)没有设专置get ,set方法 ,在编写aciton的输入文本中右击鼠标找到Generate,选择添加set get 方法即可。基本属错误就是这..。
2.通俗讲,就是你在传值时,action并没有方法来得到你传的值.
Error setting expression 'action.id' with value '[Ljava.lang.String;@63fd2803' 《struts2错误》
最新推荐文章于 2022-01-26 18:30:00 发布