how do I count array in logic:iterate
Hi, I've an array list called fruits. And, I want to count the number of fruit. How can I do it to write out the number? logic:iterate id=fruit name=fruits indexId=index %=index% /logic:iterate Thanks. --MM CONFIDENTIALITY NOTICE: The information in this e-mail is privileged and confidential. Any use, copying or dissemination of any portion of this e-mail by or to anyone other than the intended recipient(s) is unauthorized. If you have received this e-mail in error, please reply to sender and delete it from your system immediately. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: how do I count array in logic:iterate
I miss this tag. Thanks. --MM -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Bill Siggelkow Sent: Wednesday, November 03, 2004 3:45 PM To: [EMAIL PROTECTED] Subject: Re: how do I count array in logic:iterate bean:size id=numFruits name=fruits/ Number of fruits: bean:write name=numFruits/ -Bill Siggelkow Peng, Meimin wrote: Hi, I've an array list called fruits. And, I want to count the number of fruit. How can I do it to write out the number? logic:iterate id=fruit name=fruits indexId=index %=index% /logic:iterate Thanks. --MM CONFIDENTIALITY NOTICE: The information in this e-mail is privileged and confidential. Any use, copying or dissemination of any portion of this e-mail by or to anyone other than the intended recipient(s) is unauthorized. If you have received this e-mail in error, please reply to sender and delete it from your system immediately. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] CONFIDENTIALITY NOTICE: The information in this e-mail is privileged and confidential. Any use, copying or dissemination of any portion of this e-mail by or to anyone other than the intended recipient(s) is unauthorized. If you have received this e-mail in error, please reply to sender and delete it from your system immediately. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
am I able to check null value in List??
Hi, I want to check a null vale in a list. I try to find all struts-tag libraries for doing it. But, not working yet. logic:presentlogic:notPresent is for checking non-null logic:emptylogic:notEmpty is for checking empty string. Does anyone can tell me how to check a null value in tag library? Thanks. --MM CONFIDENTIALITY NOTICE: The information in this e-mail is privileged and confidential. Any use, copying or dissemination of any portion of this e-mail by or to anyone other than the intended recipient(s) is unauthorized. If you have received this e-mail in error, please reply to sender and delete it from your system immediately. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
validation - mask help
Hi, Please help. I want to use strut's validation to validate a form field called number. This field allows to input text, number and -. The code bellows right now is only to validate text and number without space. How can I make it work with '-'? Thanks. form name=NumEditForm field property=value depends=mask msg name=mask key=errors.maskmsg/ arg0 key=errors.maskmsg.form.num.edit.value/ var var-namemask/var-name var-value^[0-9a-zA-Z]*$/var-value /var /field /form --M CONFIDENTIALITY NOTICE: The information in this e-mail is privileged and confidential. Any use, copying or dissemination of any portion of this e-mail by or to anyone other than the intended recipient(s) is unauthorized. If you have received this e-mail in error, please reply to sender and delete it from your system immediately. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: OT - RE: validation - mask help
Yeah. I know. But, I can't do anything about it. It attaches to all my outgoing emails automatically. -Original Message- From: Brantley Hobbs [mailto:[EMAIL PROTECTED] Sent: Friday, October 01, 2004 12:54 PM To: Struts Users Mailing List Subject: OT - RE: validation - mask help CONFIDENTIALITY NOTICE: The information in this e-mail is privileged and confidential. Any use, copying or dissemination of any portion of this e-mail by or to anyone other than the intended recipient(s) is unauthorized. If you have received this e-mail in error, please reply to sender and delete it from your system immediately. That's hilarious for something being posted to a public mailing list.. Brantley - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] CONFIDENTIALITY NOTICE: The information in this e-mail is privileged and confidential. Any use, copying or dissemination of any portion of this e-mail by or to anyone other than the intended recipient(s) is unauthorized. If you have received this e-mail in error, please reply to sender and delete it from your system immediately. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: validation - mask help
Thanks. I just make it work by doing this. var-value^[0-9a-zA-Z-\-]*$/var-value I couldn't find info on any strut books. But, here is the original validation package. Cheers! http://jakarta.apache.org/regexp/apidocs/org/apache/regexp/RE.html -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Jeff Beal Sent: Friday, October 01, 2004 1:25 PM To: [EMAIL PROTECTED] Subject: Re: validation - mask help Peng, Meimin wrote: Hi, Please help. I want to use strut's validation to validate a form field called number. This field allows to input text, number and -. The code bellows right now is only to validate text and number without space. How can I make it work with '-'? Thanks. form name=NumEditForm field property=value depends=mask msg name=mask key=errors.maskmsg/ arg0 key=errors.maskmsg.form.num.edit.value/ var var-namemask/var-name var-value^[0-9a-zA-Z]*$/var-value /var /field /form --M CONFIDENTIALITY NOTICE: The information in this e-mail is privileged and confidential. Any use, copying or dissemination of any portion of this e-mail by or to anyone other than the intended recipient(s) is unauthorized. If you have received this e-mail in error, please reply to sender and delete it from your system immediately. What about var-value^-?[0-9a-zA-Z]+$/var-value That will allow you to enter any positive or negative hexadecimal number. If you want to allow any of the following: a-- 612-6a-3461 --bc391 you'll need to do something different. CONFIDENTIALITY NOTICE: The information in this e-mail is privileged and confidential. Any use, copying or dissemination of any portion of this e-mail by or to anyone other than the intended recipient(s) is unauthorized. If you have received this e-mail in error, please reply to sender and delete it from your system immediately. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: validation - mask help
You're right. I want to do '1-800-Struts-Help' or '1-111-' I was very confused about the mask values in struts validation. clear now... Thanks. --M -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Jeff Beal Sent: Friday, October 01, 2004 3:26 PM To: [EMAIL PROTECTED] Subject: Re: validation - mask help Peng, Meimin wrote: Thanks. I just make it work by doing this. var-value^[0-9a-zA-Z-\-]*$/var-value I couldn't find info on any strut books. But, here is the original validation package. Cheers! http://jakarta.apache.org/regexp/apidocs/org/apache/regexp/RE.html That will allow any number of '-' signs to be valid: '--' 'a---b' '398-439-4381' '39123951283' will all be valid inputs. Is that what you want, or do you want something like a serial number with any size fields, like: dd---d-ddd d-dd--ddd -d- (where 'd' is any hex digit). -- Jeff CONFIDENTIALITY NOTICE: The information in this e-mail is privileged and confidential. Any use, copying or dissemination of any portion of this e-mail by or to anyone other than the intended recipient(s) is unauthorized. If you have received this e-mail in error, please reply to sender and delete it from your system immediately. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
iterate help - it might config issue??
Hi, Please help. I have a form-bean called aForm. I try to get the 'city' out of AddressView. But, it fails. All the beans have been set/get properly. Please help. form-bean name=aForm type=org.apache.struts.action.DynaActionForm form-property name=aView type=com.abc.view.AddressView/ /form-bean Inside AddressView have address which contains street(String), city(ArrayList)... I try to iterate the loop like this: logic:iterate name=aForm property=aView id=myView bean:write name=myView property=address.city/ /logic:iterate It seems the struts didn't take it. Does form-property needs to fix such as form-property name= cityView type=java.util.ArrayList/ What can I do? Thanks. --Zoe CONFIDENTIALITY NOTICE: The information in this e-mail is privileged and confidential. Any use, copying or dissemination of any portion of this e-mail by or to anyone other than the intended recipient(s) is unauthorized. If you have received this e-mail in error, please reply to sender and delete it from your system immediately. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]