Yeah correct! As Joe said, struts converts all 'property' values to 'name'
values in the Html page.
So you can use the property value instead of name value in the jsp page. But
be sure to follow the
exact syntax as all the values are case-sensitive.
-----Original Message-----
From: Joe Latty [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 15, 2002 3:01 PM
To: Struts Users Mailing List; [EMAIL PROTECTED]
Subject: RE: Check All checkboxes
This should have no effect as the name attribute in the struts html tag
relates to the bean to be used the name is derived from the property tag;
e.g. This tag;
<html:checkbox name="Clintons" property="Bill" value="Hilary" />
results in this HTML
<input type="checkbox" name="Bill" value="Hilary">
-----Original Message-----
From: days [mailto:[EMAIL PROTECTED]]
Sent: Monday, 15 April 2002 4:42 PM
To: Struts Users Mailing List
Subject: Check All checkboxes
Dear All
In my jsp page, I have a checkbox named "Select All" that will automatically
select all the checkboxes that are loaded dynamically according to the
number of records I have in the database. And I'm trying to do this using
javascript like the following:
function CheckAll(){
var len;
len=document.forms[0].deleted.length;
if(len==null){
document.forms[0].deleted.checked = document.forms
[0].chkall.checked;
}
else{
for (var i=0;i<len;i++){
document.forms[0].deleted[i].checked =
document.forms[0].chkall.checked;
}
}
}
However, I have got difficulty implementing it coz unlike the "name"
attribute for normal html checkbox tag, the "name" attribute in the struts
html tag refers to the name of the bean. Anyone out there knows how to
overcome this problem?
Thanks in advance. (=^_^=)
See Dave Matthews Band live or win a signed guitar
http://r.lycos.com/r/bmgfly_mail_dmb/http://win.ipromotions.com/lycos_020201
/splash.asp
--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
This e-mail and any files transmitted with it are for the sole use of the intended
recipient(s) and may contain confidential and privileged information.If you are not
the intended recipient, please contact the sender by reply e-mail and destroy all
copies of the original message.
Any unauthorised review, use, disclosure, dissemination, forwarding, printing or
copying of this email or any action taken in reliance on this e-mail is strictly
prohibited and may be unlawful.
Visit us at http://www.cognizant.com
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>