更新时间:2023-02-11 19:21:22
首先,您没有正确使用<form:select>
.您有两种选择:
First of all, you are not using the <form:select>
properly. You have two options:
<select>
标签,并在其中添加<option>
标签,并为其指定一个与模型对象字段相对应的名称(在这种情况下,请使用Lst_mnt
,但要避免使用下划线)Map
中使用<form:select>
,您可以在其中填充选择键和值<select>
tag with <option>
tags inside, and give it a name the corresponds to the model object field (Lst_mnt
in this case, but avoid that underscore)<form:select>
with a Map
in which you can fill the keys and values for the select因此,您将显示这些值.然后:
Thus you will show the values. Then: