开发者

Struts2 parameter refilling on validation error

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜