<s:textfield> 标签设置默认值

来源:互联网 发布:mac如何更新软件 编辑:程序博客网 时间:2024/05/21 15:07

这样写:

<s:textfield name="dto.price" label="商品价格:" ></s:textfield>

直接在name中写,不需要value值。也不需要写#号。

前提是action中要有定义所表示的对象。

原创粉丝点击