标签设置默认值

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/efine_dxq/article/details/72860372

这样写:

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

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

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

猜你喜欢

转载自blog.csdn.net/efine_dxq/article/details/72860372