0
试图抓住<spring:bind>
标签。我正在尝试打印一个字符串值。代码看起来是这样的:
春季MVC春季:绑定标签
mySimpleBean myBean = presentStudent.getSubjects().getTeacherName();
String firstName = myBean.getTeacherFirstName()
从哪里获得从另一个豆 “presentStudent” “为myBean”。在jsp上我试过:
<spring:bind path="presentStudent.subjects.teacherName.teacherFirstName">
<input type="text" name="${status.expression}" value="${status.value}">
但它没有打印任何东西。 也是“presentStudent”是commandObject这种形式:
<form:form id="stuTeachForm" name="stuTeachForm" method="post" commandName="presentStudent"
action="getStuTeachData.html">
Thanks Objects .. Will try this :) – t0mcat