这是Action中的代码: List <CardInfo> newCardList = this.infoBiz.findNewCard(); ActionMessage newcardName = new ActionMessage( "card.newcardNameandPrice", newCardList); messages.add("zhnewcardName", newcardName); // 传递国际化消息
this.saveMessages(request, messages); 这是页面的代码: <html:messages id="nc" message="true"
property="zhnewcardName"> <bean:write name="nc" property="cardName" > </html:messages> <html:messages>标签本身是个迭代标签 为什么在bean:write标签内,加property就出错了。。Exception:No getter method for property: 我换用EL表达式也是一样。${nc.cardName}
this.saveMessages(request, messages); 这是页面的代码: <html:messages id="nc" message="true"
property="zhnewcardName"> <bean:write name="nc" property="cardName" > </html:messages> <html:messages>标签本身是个迭代标签 为什么在bean:write标签内,加property就出错了。。Exception:No getter method for property: 我换用EL表达式也是一样。${nc.cardName}
解决方案 »
- 初学小白求教字符错误
- applicationContext.xml报错,急急急~~解决
- 90后女孩:进公司后从Java转向Flex,需要学些什么。。
- 推荐一本--数据结构的书(JAVA)
- struts2+Hibernian+spring实现分页
- logic:iterate 中的id与bean:write的name什么关系
- DAO相关的问题
- 只要保证Action中只使用局部变量就可以保证多线程么?
- 请高手解答EJB的 CMT问题
- 在项目中 Hibernate 调用存储过程 使用频率多么???
- struts+hibernate+ajax 仿google所搜问题
- JAVA SWING 中的异常怎么处理
在nc对象的类中定义一个getCardName()试试
。
<bean:write name="nc" property="cardName" > 应该是
<bean:write name="nc" property="zhnewcardName" > 吧