How does struts 1.X ActionForm handle pure html checkbox list?
Posted
by BlueDolphin
on Stack Overflow
See other posts from Stack Overflow
or by BlueDolphin
Published on 2010-04-20T01:30:54Z
Indexed on
2010/04/20
1:33 UTC
Read the original article
Hit count: 297
I am dealing with an old application which uses struts 1.2. And for some reason, we are using pure html form to submit to struts action. For example:
for the content output of testAction.do, I try to submit to itself.
item 1 item 2Then I associate an form bean TestForm with testAction.
I am not sure how to specify the properties in the form so that it take the value from myitem1 after user click "submit"
I tried to add getMyitem1(), setMyitem1(String[] items), getSelectedMyitem1(), setSelectedMyitem1(String[] items)
Those set methods are only called when page are loaded.
I guess my understanding of ActionForm in struts 1.x must be wrong.
Please advise, thanks.
© Stack Overflow or respective owner