When HashMap will replace ActionForm ?
Hi, Is there any move to support HashMap in place of ActionForm ?. I dont want to start any argument. I have read a lot on ActionForm in this archive. rgds Antony Paul. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: When HashMap will replace ActionForm ?
DynaValidator forms stores data in Hashmap internally if you dont want to define norma action forms. -Original Message- From: Antony Paul [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 10, 2003 2:40 PM To: struts Subject: When HashMap will replace ActionForm ? Hi, Is there any move to support HashMap in place of ActionForm ?. I dont want to start any argument. I have read a lot on ActionForm in this archive. rgds Antony Paul. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This message contains information that may be privileged or confidential and is the property of the Cap Gemini Ernst Young Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorised to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: When HashMap will replace ActionForm ?
I can't say there will be any move or not. But MAP backed ActionForms are alreadt there, If you are not interested in using the actionforms and be contended with just hashmaps. Mostly, not always, I treat ActionForm as HashMap but with getter setter already classcasted and defined for properties. not more than that. -Original Message- From: Antony Paul [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 10, 2003 2:40 PM To: struts Subject: When HashMap will replace ActionForm ? Hi, Is there any move to support HashMap in place of ActionForm ?. I dont want to start any argument. I have read a lot on ActionForm in this archive. rgds Antony Paul. - 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]
Re: When HashMap will replace ActionForm ?
I know that but one have to define 10 to 30 elements in struts-config.xml for that. With a hash map one have to say whether it is needed ot not. It could be accessed like DynaValidator form. And my requirement is to store simple text field values. rgds Antony Paul. - Original Message - From: Kalra, Ashwani [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, December 10, 2003 4:05 PM Subject: RE: When HashMap will replace ActionForm ? DynaValidator forms stores data in Hashmap internally if you dont want to define norma action forms. -Original Message- From: Antony Paul [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 10, 2003 2:40 PM To: struts Subject: When HashMap will replace ActionForm ? Hi, Is there any move to support HashMap in place of ActionForm ?. I dont want to start any argument. I have read a lot on ActionForm in this archive. rgds Antony Paul. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This message contains information that may be privileged or confidential and is the property of the Cap Gemini Ernst Young Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorised to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. - 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]
RE: When HashMap will replace ActionForm ?
That's where a map-backed Hashmap is useful. -Original Message- From: Antony Paul [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 10, 2003 6:02 AM To: Struts Users Mailing List Subject: Re: When HashMap will replace ActionForm ? I know that but one have to define 10 to 30 elements in struts-config.xml for that. With a hash map one have to say whether it is needed ot not. It could be accessed like DynaValidator form. And my requirement is to store simple text field values. rgds Antony Paul. - Original Message - From: Kalra, Ashwani [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, December 10, 2003 4:05 PM Subject: RE: When HashMap will replace ActionForm ? DynaValidator forms stores data in Hashmap internally if you dont want to define norma action forms. -Original Message- From: Antony Paul [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 10, 2003 2:40 PM To: struts Subject: When HashMap will replace ActionForm ? Hi, Is there any move to support HashMap in place of ActionForm ?. I dont want to start any argument. I have read a lot on ActionForm in this archive. rgds Antony Paul. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This message contains information that may be privileged or confidential and is the property of the Cap Gemini Ernst Young Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorised to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. - 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]
Re: When HashMap will replace ActionForm ?
but it prints the form field name like this map(username). I want to get the key as name of form field. here username. possible ? rgds Antony Paul. - Original Message - From: Fullam, Jonathan [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Wednesday, December 10, 2003 7:30 PM Subject: RE: When HashMap will replace ActionForm ? That's where a map-backed Hashmap is useful. -Original Message- From: Antony Paul [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 10, 2003 6:02 AM To: Struts Users Mailing List Subject: Re: When HashMap will replace ActionForm ? I know that but one have to define 10 to 30 elements in struts-config.xml for that. With a hash map one have to say whether it is needed ot not. It could be accessed like DynaValidator form. And my requirement is to store simple text field values. rgds Antony Paul. - Original Message - From: Kalra, Ashwani [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, December 10, 2003 4:05 PM Subject: RE: When HashMap will replace ActionForm ? DynaValidator forms stores data in Hashmap internally if you dont want to define norma action forms. -Original Message- From: Antony Paul [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 10, 2003 2:40 PM To: struts Subject: When HashMap will replace ActionForm ? Hi, Is there any move to support HashMap in place of ActionForm ?. I dont want to start any argument. I have read a lot on ActionForm in this archive. rgds Antony Paul. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This message contains information that may be privileged or confidential and is the property of the Cap Gemini Ernst Young Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorised to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: When HashMap will replace ActionForm ?
I don't want to offense any one, and all though HashMap or DynaWhatever are convenience, but isn't it anti OO? Meaning there are no type checking, and you are just passing a bag of chunk around? Danny Trieu Internet Business Group Downey Savings and Loan Association, F.A. [EMAIL PROTECTED] The beginning of knowledge is the discovery of something we do not understand. - Frank Herbert (1920-1986) The essence of knowledge is, having it, to apply it; not having it, to confess your ignorance. - Confucius (551-479 BC) -Original Message- From: Navjot Singh [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 10, 2003 2:43 AM To: Struts Users Mailing List Subject: RE: When HashMap will replace ActionForm ? I can't say there will be any move or not. But MAP backed ActionForms are alreadt there, If you are not interested in using the actionforms and be contended with just hashmaps. Mostly, not always, I treat ActionForm as HashMap but with getter setter already classcasted and defined for properties. not more than that. -Original Message- From: Antony Paul [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 10, 2003 2:40 PM To: struts Subject: When HashMap will replace ActionForm ? Hi, Is there any move to support HashMap in place of ActionForm ?. I dont want to start any argument. I have read a lot on ActionForm in this archive. rgds Antony Paul. - 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] This message and any attachments are for the intended recipient(s) only and may contain privileged, confidential and/or proprietary information about Downey Savings or its customers, which Downey Savings does not intend to disclose to the public. If you received this message by mistake, please notify the sender by reply e-mail and delete the message and attachments. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: When HashMap will replace ActionForm ?
Anyone who's done major business application development knows that academic arguments on programming 'style' get thrown right out the window in favor of efficient progress ;-) -Original Message- From: Trieu, Danny [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 10, 2003 10:38 AM To: 'Struts Users Mailing List' Subject: RE: When HashMap will replace ActionForm ? I don't want to offense any one, and all though HashMap or DynaWhatever are convenience, but isn't it anti OO? Meaning there are no type checking, and you are just passing a bag of chunk around? Danny Trieu Internet Business Group Downey Savings and Loan Association, F.A. [EMAIL PROTECTED] The beginning of knowledge is the discovery of something we do not understand. - Frank Herbert (1920-1986) The essence of knowledge is, having it, to apply it; not having it, to confess your ignorance. - Confucius (551-479 BC) -Original Message- From: Navjot Singh [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 10, 2003 2:43 AM To: Struts Users Mailing List Subject: RE: When HashMap will replace ActionForm ? I can't say there will be any move or not. But MAP backed ActionForms are alreadt there, If you are not interested in using the actionforms and be contended with just hashmaps. Mostly, not always, I treat ActionForm as HashMap but with getter setter already classcasted and defined for properties. not more than that. -Original Message- From: Antony Paul [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 10, 2003 2:40 PM To: struts Subject: When HashMap will replace ActionForm ? Hi, Is there any move to support HashMap in place of ActionForm ?. I dont want to start any argument. I have read a lot on ActionForm in this archive. rgds Antony Paul. - 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] This message and any attachments are for the intended recipient(s) only and may contain privileged, confidential and/or proprietary information about Downey Savings or its customers, which Downey Savings does not intend to disclose to the public. If you received this message by mistake, please notify the sender by reply e-mail and delete the message and attachments. - 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]
Re: When HashMap will replace ActionForm ?
or philosophical purity should always yield to pragmatism Hookom, Jacob wrote: Anyone who's done major business application development knows that academic arguments on programming 'style' get thrown right out the window in favor of efficient progress ;-) -Original Message- From: Trieu, Danny [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 10, 2003 10:38 AM To: 'Struts Users Mailing List' Subject: RE: When HashMap will replace ActionForm ? I don't want to offense any one, and all though HashMap or DynaWhatever are convenience, but isn't it anti OO? Meaning there are no type checking, and you are just passing a bag of chunk around? Danny Trieu Internet Business Group Downey Savings and Loan Association, F.A. [EMAIL PROTECTED] The beginning of knowledge is the discovery of something we do not understand. - Frank Herbert (1920-1986) The essence of knowledge is, having it, to apply it; not having it, to confess your ignorance. - Confucius (551-479 BC) -Original Message- From: Navjot Singh [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 10, 2003 2:43 AM To: Struts Users Mailing List Subject: RE: When HashMap will replace ActionForm ? I can't say there will be any move or not. But MAP backed ActionForms are alreadt there, If you are not interested in using the actionforms and be contended with just hashmaps. Mostly, not always, I treat ActionForm as HashMap but with getter setter already classcasted and defined for properties. not more than that. -Original Message- From: Antony Paul [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 10, 2003 2:40 PM To: struts Subject: When HashMap will replace ActionForm ? Hi, Is there any move to support HashMap in place of ActionForm ?. I dont want to start any argument. I have read a lot on ActionForm in this archive. rgds Antony Paul. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: When HashMap will replace ActionForm ?
In my experience (with Ant mostly) the best way to get anything started in an apache project is with a patch submitted in the bugzilla :) Gus Antony Paul wrote: Hi, Is there any move to support HashMap in place of ActionForm ?. I dont want to start any argument. I have read a lot on ActionForm in this archive. rgds Antony Paul. - 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]
Re: When HashMap will replace ActionForm ?
As mentioned, you can use a map-backed ActionForm to store whatever fields you need without defining them elsewhere. http://tinyurl.com/ymkr You do need to code the forms a little differently, and your forms still need to know what properties/entries to ask for. Personally, I would strongly recommnend using DynaActionForms. The overhead of defining the elements in the configuration is negligable in practice, and it clearly defines which properties are used with which forms. In practice, what really costs projects time is miscommunication. For example, is the entry name in the Map userName or username? With DynaActionForms all the entry names are documented in the configuration. Otherwise, you will have to document them elsewhere and redo what has already been done. I *am* a big fan of using Maps for Contexts, especially between application layers, and with the Commons Chain influence, we're sure to see more of that. The thing about DynaActionForms is that you get the agility of a Map with the documentation of a JavaBean. HTH, Ted. Antony Paul wrote: but it prints the form field name like this map(username). I want to get the key as name of form field. here username. possible ? rgds Antony Paul. - Original Message - From: Fullam, Jonathan [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Wednesday, December 10, 2003 7:30 PM Subject: RE: When HashMap will replace ActionForm ? That's where a map-backed Hashmap is useful. -Original Message- From: Antony Paul [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 10, 2003 6:02 AM To: Struts Users Mailing List Subject: Re: When HashMap will replace ActionForm ? I know that but one have to define 10 to 30 elements in struts-config.xml for that. With a hash map one have to say whether it is needed ot not. It could be accessed like DynaValidator form. And my requirement is to store simple text field values. rgds Antony Paul. - Original Message - From: Kalra, Ashwani [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, December 10, 2003 4:05 PM Subject: RE: When HashMap will replace ActionForm ? DynaValidator forms stores data in Hashmap internally if you dont want to define norma action forms. -Original Message- From: Antony Paul [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 10, 2003 2:40 PM To: struts Subject: When HashMap will replace ActionForm ? Hi, Is there any move to support HashMap in place of ActionForm ?. I dont want to start any argument. I have read a lot on ActionForm in this archive. rgds Antony Paul. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This message contains information that may be privileged or confidential and is the property of the Cap Gemini Ernst Young Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorised to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. - 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] - 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]