开发者

Struts2 parameter refilling on validation error

开发者 https://www.devze.com 2023-03-08 12:32 出处:网络
Suppose I have struts2 select tag in a form, when the form is submitted, according to the validation xml there\'s an error so input is returned.

Suppose I have struts2 select tag in a form, when the form is submitted, according to the validation xml there's an error so input is returned.

Now my question is when input is returned the select box becomes empty. How to prevent it from becoming empty since bec开发者_开发技巧ause in validation error the execution never reaches the action's method (where we can possibly fill the select again).

One possible solution could be to validate the form within the action's method but I want to check the validation through XML only.

0

精彩评论

暂无评论...
验证码 换一张
取 消