听到的是代码
<spring:form modelAttribute="commonBean" action="saveStock.htm">
<div class="content" align="center">
<div class="box"><br>
<h1>
<spring:label path=""> Stock Entry</spring:label>
</h1><br><hr>
<table>
<tr>
<th align='left'><spring:label path="">Item Name: </spring:label>
</th>
<td colspan='5'><spring:input path="" ></spring:input>
<span style="font-style: italic;color: red;">
<spring:errors path="" id="iname" onkeyup="iname()">
<img src="green.png" class="def" id="iname_true"/>
<img src="cross.png" class="def" id="iname_false"/>
</spring:errors></span>
</td>
</tr>
及其给出的错误,如
HTTP错误:500
/WEB-INF/jsp/corefiles/stock.jsp(19,22)PWC6239:根据TLD,标签弹簧:输入必须为空,但不是
Plz有人建议我如何实现
答案 0 :(得分:0)
变化:
<spring:input path="" ></spring:input>
为:
<spring:input path="CommonBeanPropertyName" />
您必须设置一个路径,以便Spring能够将输入字段绑定到相应的bean属性。