将字符串数据放入输入值时丢失字符串数据

Losing String data when putting it into input value

我正在处理一个 jsp 页面,我想将一个字符串放入输入文本值中

<input type="text" class="form-control" name="adress" value=<%=adresse%>>

问题是,如果“地址”包含 "abc efg",它只会显示 "abc",space 之后的其余内容将丢失。

你忘了""

它必须像:

<input type="text" class="form-control" name="adress" value="<%=adresse%>">