Re: Action Form: HashMap

2003-06-06 Thread Erik Price
Ray Madigan wrote: I have a form that has elements that I do not know the names of ahead of time. I want to have struts scrape the form into a map so the key is the name of the element and the value is the value of the element when it was submitted. I looked for an action form that acted like

Re: Action Form: HashMap

2003-06-06 Thread David Graham
Read the mapped properties section here: http://jakarta.apache.org/struts/faqs/indexedprops.html David From: Ray Madigan [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: Action Form: HashMap Date: Thu, 5 Jun 2003

RE: Action Form: HashMap

2003-06-06 Thread Ray Madigan
}'/ /c:forEach ... /thml:form When I look at the form in my DispatchAction map is always empty. Any help would be appreciated! -Original Message- From: David Graham [mailto:[EMAIL PROTECTED] Sent: Thursday, June 05, 2003 11:13 AM To: [EMAIL PROTECTED] Subject: Re: Action Form: HashMap

Re: Action Form: HashMap

2003-06-06 Thread Zhu He
, 2003 9:37 AM Subject: RE: Action Form: HashMap OK, I made the following changes, and it didn't do what I expected. HELP! I added to the ActionForm: /** * The form HashMap */ private HashMap map = new HashMap ( ); public Object getStringMapped ( String key

RE: Action Form: HashMap

2003-06-06 Thread Ray Madigan
? Is this correct, or am i confused? I appreciate your help! -Original Message- From: Zhu He [mailto:[EMAIL PROTECTED] Sent: Friday, June 06, 2003 7:04 AM To: Struts Users Mailing List Subject: Re: Action Form: HashMap if you are using map backed actionForm, make sure getXXX() setXXX() where XXX

Re: Action Form: HashMap

2003-06-06 Thread Zhu He
Mailing List [EMAIL PROTECTED] Sent: Friday, June 06, 2003 10:23 AM Subject: RE: Action Form: HashMap I tried this and it also didn't work. The get and set methods do not call the HashMap directly, cause a HashMap uses get and put. The geters and setters that I supply are the interface

RE: Action Form: HashMap

2003-06-06 Thread Ray Madigan
. Is there anything else I have to do to make the HashMap work? Like use a different Base Form class? This seems easy enough? I'm losing my mind! -Original Message- From: Zhu He [mailto:[EMAIL PROTECTED] Sent: Friday, June 06, 2003 8:13 AM To: Struts Users Mailing List Subject: Re: Action Form: HashMap

Re: Action Form: HashMap

2003-06-06 Thread Zhu He
PROTECTED] Sent: Friday, June 06, 2003 11:54 AM Subject: RE: Action Form: HashMap Thanks for your response. It still doesn't work. I looked at the page you refered me to and the HashMap is names values and the getter/setter's are named getValue, and setValue. Is the s at the end of the map name

RE: Action Form: HashMap

2003-06-06 Thread Erez Efrati
, 2003 4:04 PM To: Struts Users Mailing List Subject: Re: Action Form: HashMap if you are using map backed actionForm, make sure getXXX() setXXX() where XXX matches the name of the map. In you case function names should be getMap() setMap() - Original Message - From: Ray Madigan [EMAIL PROTECTED

RE: Action Form: HashMap

2003-06-06 Thread Erez Efrati
To: 'Struts Users Mailing List' Subject: RE: Action Form: HashMap Try looking at the source of the generate page. See that all looks correct. I am also not sure if leading spaces between the name of the property name 'stringMapped' and the () chars are legal... -- Erez -Original Message- From

RE: Action Form: HashMap

2003-06-06 Thread Ray Madigan
PROTECTED] Sent: Friday, June 06, 2003 10:31 AM To: 'Struts Users Mailing List' Subject: RE: Action Form: HashMap I mean the HTML view source after the page has been generated. I am working with the Mapped Properties methods and it works fine so hang on there, it will work at the end

RE: Action Form: HashMap

2003-06-06 Thread Craig R. McClanahan
On Fri, 6 Jun 2003, Ray Madigan wrote: I am using frames so i can't look at the source. For Netscape, IE, and Mozilla, right click inside the frame ... you'll be amazed at what you can actually do :-). Craig - To

RE: Action Form: HashMap

2003-06-06 Thread Erez Efrati
Well I am glad it works now... and all I can say is that SPACE problems are truly invisible sometimes :) -Original Message- From: Ray Madigan [mailto:[EMAIL PROTECTED] Sent: Friday, June 06, 2003 6:49 PM To: Struts Users Mailing List Subject: RE: Action Form: HashMap I am using frames

RE: Action Form: HashMap

2003-06-06 Thread Ray Madigan
: RE: Action Form: HashMap Well I am glad it works now... and all I can say is that SPACE problems are truly invisible sometimes :) -Original Message- From: Ray Madigan [mailto:[EMAIL PROTECTED] Sent: Friday, June 06, 2003 6:49 PM To: Struts Users Mailing List Subject: RE: Action Form