-1
在我的項目,我在使用Spring MVC和Hibernate和UI引導Spring MVC的..與Hibernate自舉選擇選項值不填充
我在UI部分:
<div class='form-group'>
<label class='control-label col-md-2 col-md-offset-2'
for='id_equipment'>Department</label>
<div class='col-md-8'>
<div class='col-md-3'>
<div class='form-group internal'>
<select class='form-control' id='${student.student_department}'>
<option>cse</option>
<option>Fifth wheel</option>
<option>Electrical</option>
</select>
</div>
</div>
</div>
</div>
我的要求是:當學生想要添加詳細信息時,部門列表中的時間將顯示爲下拉列表。 學生可以選擇該值,並且可以添加該值,以及學生想要更新詳細信息的時間。當數據庫部門已經選擇時,他將首先出現在列表中。但是,我收到了錯誤信息。 Howw如何使用spring mvc在bootstrap中將值填充到select標籤中?
當我嘗試添加細節時,我從選擇路徑中獲得空值。
請更具體一些。錯誤日誌丟失。 –