in the Action, you need a list;
List checklist;//getter & setter
then, you can get the fieldValue="Y" in the struts tag, from field
"checklist" in the Action.
and the value is the same value in html tag value="Y".
On Wed, Oct 22, 2008 at 3:50 PM, Harden ZHU <[EMAIL PROTECTED]> wrote:
> I have a
I have a checkbox in jsp:
,
after html rendering it is shown as , that is good.
But once a user selects the checkbox and submits the form,
user.contactConfidential is set to true. However, on the database side
the value should be stored as 'Y' or 'N'. Is there anyway that I can
get user.contact
Hi... you can do tag in another tag... cause its a recursive, and
well.. Dave can explain better why!! ehehheh sorry.. my english is not
good..
But you can try create a new boolean attribute in you action class and
"tranform" the bd type ("Y"/"N") to a boolean type (true/false)..
Or
I have a checkbox as follows in a jsp:
Once a user selects the checkbox and submits the form, ccUpdateFlag is set to
true. However, on the database side the value is stored as 'Y' or 'N' . So my
getCcUpdateFlag returns 'Y' or 'N' depending on the fact ccUpdateFlag is set to
true or false.
Now
4 matches
Mail list logo