If you want to prove the value of a checkbox,
you have to check the request.
If the request doesn´t contain a value with the name of
the checkbox, you have to erase the value of your checkbox-variable in
FormBean.

Hope to help you,
Manuel


|---------+---------------------------->
|         |                            |
|         |                            |
|         |                            |
|         |"Ricky"                     |
|         |<[EMAIL PROTECTED]>   |
|         |28.11.2003 13:58            |
|         |Bitte antworten an "Struts  |
|         |Users Mailing List"         |
|---------+---------------------------->
  
>----------------------------------------------------------------------------------------------------------------------------|
  |                                                                                    
                                        |
  |     An:      "Struts Users Mailing List" <[EMAIL PROTECTED]>                       
                           |
  |     Kopie:                                                                         
                                        |
  |     Thema:   validatation : the select field and checkbox field origin value 
lost...                                       |
  
>----------------------------------------------------------------------------------------------------------------------------|




hi, i'am sorry to trouble you if you receive this mail list about struts, i
hope you can give me a suggetion.

first, i found a question about struts validation . when you submit a form
,
and the validate method will valiate the form field. if the form element is
a text filed, you un-inpute the text filed, you will be noticed that you
must fill the text filed,and the other text field you have filled with some
data, after the form submit, the other text field 's data still in the text
field , but the select field you have choiced before has changed to the
default value, it can't remain the value you choiced before. but the text
filed can keep the value,

what should do to keep the select field 's value to that my selected before
the form submit to check the validation. and the checkbox field is the same
as select field?

i don't know whether you can understand what i said, i don't think i can
express my problem to everyone...

i hope you can understand it... :)

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to