[ajug-members] Help on Submitting Form Value
eko at gamatechno.com
eko at gamatechno.com
Fri Sep 22 06:32:42 EDT 2006
Dear All,
I am sorry for the general problem of the case, but here it is
I am submitting a form with hidden value, in a FreeMarker template, like this:
<form action="pikitring!save.action" method="post">
<hidden name="formMode" value="${formMode}" />
<hidden name="pikitring.pikitring_id" value="${pikitring.pikitring_id}" />
...
</form>
In the corespoding WebWork ActionSupport, namely PikitringAction.java, off course I have added a field String formMode;
and it setter/getter mode.
But, after I check in the save() of PiktitringAction.java, the value of formMode like never been manipulated.
It still empty, or null regarding my initialization value. Meanwhile all the field of the POJO (that is, Pikitring.java) were filled with right value all the time.
What happen?
I have another string variable in PikitringAction.java, that is String searchCriteria, but it works well.
Was it the case were the value was stored as HIDDEN form element?
But if it is, then the pikitring.pikitring_id was just fine!
Because searchCriteria was used as plain input text form element.
Thanks forward for your help.
Eko
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.ajug.org/pipermail/ajug-members/attachments/20060922/3a50ef45/attachment.html
More information about the ajug-members
mailing list