The array which are using to store values of checkboxes after form
submission; just initialize that array with the value which you wana
check.
e.g.
in form bean:
String[] array = {"1"}; // this is an array which will be used to store
values of the checkboxes
on jsp:
<html:multibox property="array"> 1 </html:multibox>
this checkbox will be checked when you render the page.
Regards,
MMS
----------
From: mohamed ebrahim faisal
[SMTP:[EMAIL PROTECTED]
Sent: Thursday, October 09, 2003 9:38 PM
To: [EMAIL PROTECTED]
Subject: checkbox checking???
Hi
I fetch data from the database abd store it in
the Form Bean. After that
while displaying the value in the JSP, i am associating
one of the property
to an array of checkboxes with the same property.
I want the checkbox to be checked based on my
property value, it might be
differnt for checkboxes in the array.
If it is a <input type="checkbox".....> i can
easily do it using attribute
checked, but how to do it in <html:checkbox .....> since
struts Checkbox
does not support "checked" attribute.
Can anyone pls tell me.
regards
faisal
_________________________________________________________________
The heat is on! Catch the latest action.
http://server1.msn.co.in/sp03/formula2003/ Speed along
with F1!
---------------------------------------------------------------------
To unsubscribe, e-mail:
[EMAIL PROTECTED]
For additional commands, e-mail:
[EMAIL PROTECTED]