value="<bean:write name="mailTemplateDetail" property="mailUsage"/>" 改成
value='<bean:write name="mailTemplateDetail" property="mailUsage"/>'

解决方案 »

  1.   

    value="<bean:write name="mailTemplateDetail" property="mailUsage"/>"
    这样写的话,系统会误认为是
    value="<bean:write name="到这里就结束了
    后面的东西因为格式不符合xml要求,自然会报错
      

  2.   

    value='<bean:write name="mailTemplateDetail" property="mailUsage"/>'
    或value="<bean:write name='mailTemplateDetail' property='mailUsage'/>"
    我都试过了,会把"<bean:write name='mailTemplateDetail' property='mailUsage'/>"当成一整串字符串做为value的值传送.
    继续求解
      

  3.   

    struts支持标签的嵌套吗?反正我一直没成功实现过,后来放弃了,外面的标签换成了html的。期待一个权威一点的答案
      

  4.   

    不可以那样嵌套的吧?一般特殊需要.我是这样处理.<input type="text" name="text" value='<bean:write name="mailTemplateDetail" property="mailUsage"/>' >这样就一定可以或者你一定要用hmtl:text,就不要setAttribute,把它set到formBean里面,让formBean跟
    jsp页面绑定,就不用嵌套了
      

  5.   

    那怎么和要传到的页面的form绑定呢?
    我在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;
    }
    页面上还是没反应的.谢谢