value="<bean:write name="mailTemplateDetail" property="mailUsage"/>" 改成
value='<bean:write name="mailTemplateDetail" property="mailUsage"/>'
value='<bean:write name="mailTemplateDetail" property="mailUsage"/>'
解决方案 »
- jboss在MyEclipse中无法启动,在外面可以启动
- struts2 练习jquery ajax读取xml的parsererror
- 奇怪的问题!!!我没分析出来哪错了!!
- 几款主流JAVA报表工具比较欢迎补充
- webwork 迭代问题
- apache与tomcat集成场合,tomcat停止时,apache如何实现判断(tomcat停止)与显示出错页面
- 怎样把Spring自带的例子petclinic导入myeclipse的project中啊?
- 怎么用webservices返回对象的结果集(list,ventor)这种,急,分数不够可以再加
- 哪里有petstore的源码下载阿?
- 关于war包在tomcat上面的发布问题!
- (在线等 急呀,拜托各位大哥帮帮忙200分相送)在struts中怎样实现对数据的显示分页
- DispatchAction使用时碰到的问题
这样写的话,系统会误认为是
value="<bean:write name="到这里就结束了
后面的东西因为格式不符合xml要求,自然会报错
或value="<bean:write name='mailTemplateDetail' property='mailUsage'/>"
我都试过了,会把"<bean:write name='mailTemplateDetail' property='mailUsage'/>"当成一整串字符串做为value的值传送.
继续求解
jsp页面绑定,就不用嵌套了
我在action中这样:
public ActionForward execute(
ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response) {
ActionErrors errors = new ActionErrors();
ActionForward forward = new ActionForward();
forward = mapping.findForward(MailForwardPattern.MAILTEMPLATEDETAIL);
MailTemplateForm mailForm = new MailTemplateForm();
mailForm.setMailUsage("mailusage");
form = mailForm;
return forward;
}
页面上还是没反应的.谢谢