天天看點

Jsp通過ModelAndView傳值

// 查詢披露主體
    Dict dict = new Dict();
    dict.setDelFlag("0");
    dict.setType("HTZT");
    String key = ApolloApplicationUtil.getConfig(ApolloKey.QUERY_LOCAL_SUBJECT);
    dict.setValue(key);

    model.addAttribute("disclosureSubject", this.dictDao.findLabel(dict));
    model.addAttribute("disclosureSubjectValue", key);      
<div class='col-lg-5 col-md-5  col-xs-12 col-xss-12'>
                        <input value=${disclosureSubject}  htmlEscape="false" maxlength="400" class=" form-control input-sm required"
                               readonly="readonly"/>
                        <input name="disclosureSubject"  value="${disclosureSubjectValue}" type="hidden" />                         
                    </div>