Re: HashMap with String as key

2019-03-18 Thread Lukasz Lenart
czw., 14 mar 2019 o 21:38 Prasanth napisał(a): > > Sorry if I caused any confusion. This thread was meant to discuss String > keys. I do have forms where I am using numeric keys and they work fine. > > I think I found a solution to my problem. Struts seems to expect single > quotes for the keys

Re: HashMap with String as key

2019-03-14 Thread Prasanth
Sorry if I caused any confusion. This thread was meant to discuss String keys.  I do have forms where I am using numeric keys and they work fine. I think I found a solution to my problem. Struts seems to expect single quotes for the keys when the key is string. Updated code is shown below. Also

Re: HashMap with String as key

2019-03-14 Thread Lukasz Lenart
czw., 14 mar 2019 o 20:11 Prasanth napisał(a): > If there a setting for struts that need to be changed to allow non numeric > keys? Nothing like that, but I suggest to start over because you first reported that you want to have a numeric key and now you say you don't. So maybe start a new topic

Re: HashMap with String as key

2019-03-14 Thread Prasanth
. I was under the impression >> that struts would set a new hash map with just the keys present in the form. >> >> Thanks, >> Prasanth >> >> On 3/12/19 4:12 AM, Yasser Zamani wrote: >>> (regarding your previous emails background) Please also consider that the

Re: HashMap with String as key

2019-03-13 Thread Prasanth
;> >>> -Original Message- >>> From: Lukasz Lenart >>> Sent: Tuesday, March 12, 2019 10:52 AM >>> To: Struts Users Mailing List >>> Subject: Re: HashMap with String as key >>> >>> pon., 11 mar 2019 o 18:41 Prasanth napisał(a

Re: HashMap with String as key

2019-03-12 Thread Prasanth Pasala
Message- >> From: Lukasz Lenart >> Sent: Tuesday, March 12, 2019 10:52 AM >> To: Struts Users Mailing List >> Subject: Re: HashMap with String as key >> >> pon., 11 mar 2019 o 18:41 Prasanth napisał(a): >>> When you have a HashMap backed form and String

RE: HashMap with String as key

2019-03-12 Thread Yasser Zamani
(regarding your previous emails background) Please also consider that the key 2432-123 is not further Long. It's String. Regards. >-Original Message- >From: Lukasz Lenart >Sent: Tuesday, March 12, 2019 10:52 AM >To: Struts Users Mailing List >Subject: Re: HashMa

Re: HashMap with String as key

2019-03-12 Thread Lukasz Lenart
pon., 11 mar 2019 o 18:41 Prasanth napisał(a): > When you have a HashMap backed form and String as key, are there any > restrictions on the characters allowed? > > I have keys like "2432-123" as I have to incorporate two ids in the key. When > I have these keys the HashMap is not getting populat

Re: HashMap< String, ArrayList >: Unable to populate the Array List from JSP

2008-05-08 Thread ravi_eze
hi, Thanks for he help. i am using as follows: < s:checkboxlist name="mapOfList['key']" /> I see that this is not working and the mapOfList is not getting populated at all. I tried out StrutsTypeConverter... then only convertToString() method is being called. Any ideas as how to go with this is

Re: HashMap< String, ArrayList >: Unable to populate the Array List from JSP

2008-04-29 Thread Wes Wannemacher
Assuming you have appropriate getters and setters on your action for the HashMap of ArrayLists, you should be able to set them using indexing like this - or (where "i" is an integer representing the index where you want the String set) http://www.ognl.org/2.6.9/Documentation/html/LanguageGui

Re: HashMap and updates

2008-03-25 Thread Laurie Harper
Kalpesh Modi wrote: Hi, I am having a problem in updates. I have a base class Employee.java. I have subclasses HourlyEmployee.java, ContractEmployee.java, FullTimeEmployee.java. I display these three types of employees under 3 tabs on my JSP. I create 3 lists for each type of employees and put

Re: hashmap

2007-05-09 Thread Lance
Hi, I'm making the assumption that you are using struts1 and you want to access the map in a struts tag. I couldn't find a way of accessing properties mapped by anything else but a string Therefore, try hashMap.put(String.valueOf(questionId), new Integer(testDAO.getMarks(catid, typeid, pattern

Re: HashMap with

2006-03-27 Thread Ahmed Hashim
Sure, I prefer to use JSTL rather than Struts taglib, but should be replaced too by JSTL or Struts tags. using this way is best case for me, I have added a Map to the action form to get it works. Thanks Mark for your help. On 3/26/06, Mark Lowe <[EMAIL PROTECTED]> wrote: > > On 3/26/06, Ah

Re: HashMap with

2006-03-26 Thread Mark Lowe
On 3/26/06, Ahmed Hashim <[EMAIL PROTECTED]> wrote: > Thanks Mark, > I tried it and it is working fine with Valid XHTML output, It is the best > solution I have till now. > But I hope that I can make it using Struts Tags if anyone know. I dont think there is, the handy thing with jstl is the way t

Re: HashMap with

2006-03-26 Thread Ahmed Hashim
Thanks Mark, I tried it and it is working fine with Valid XHTML output, It is the best solution I have till now. But I hope that I can make it using Struts Tags if anyone know. Thanks. On 3/26/06, Mark Lowe <[EMAIL PROTECTED]> wrote: > > On 3/26/06, Ahmed Hashim <[EMAIL PROTECTED]> wrote: > > De

Re: HashMap with

2006-03-26 Thread Mark Lowe
On 3/26/06, Ahmed Hashim <[EMAIL PROTECTED]> wrote: > Dear All, > > <% > java.util.HashMap rawSourceMap=new java.util.HashMap(); > rawSourceMap.put("id", "123"); > rawSourceMap.put("name", "ahmed"); > pageContext.setAttribute("ourrefLink",rawSourceMap); > %> > > > > > > I want to

Re: HashMap of Vectors and Indexed Properies

2004-04-07 Thread Craig Tataryn
Adam, the problem is not so much with displaying the values in the nested objects, it's having struts update the nested values from a form control to the actual nested object. That is, if I have a textbox which represents the value for address(texas)[0].street1, when the user submits a value fo

Re: HashMap of Vectors and Indexed Properies

2004-04-05 Thread Craig R. McClanahan
Craig Tataryn wrote: Thanks, I'll check that out. Hey, did the mailing list address change or something? I've always mailed to [EMAIL PROTECTED] and now I see the reply-to generated by the list manager is now [EMAIL PROTECTED] Craig Yes, it did. At the March 2004 meeting of the Apache Soft

Re: HashMap of Vectors and Indexed Properies

2004-04-04 Thread Adam Hardy
Yes, and the website's now at http://struts.apache.org On 04/05/2004 02:09 AM Craig Tataryn wrote: Thanks, I'll check that out. Hey, did the mailing list address change or something? I've always mailed to [EMAIL PROTECTED] and now I see the reply-to generated by the list manager is now [EMAIL

Re: HashMap of Vectors and Indexed Properies

2004-04-04 Thread Craig Tataryn
Thanks, I'll check that out. Hey, did the mailing list address change or something? I've always mailed to [EMAIL PROTECTED] and now I see the reply-to generated by the list manager is now [EMAIL PROTECTED] Craig On Sun, 04 Apr 2004 23:05:42 +0200, Adam Hardy wrote: > > Craig, > why don't y

Re: HashMap of Vectors and Indexed Properies

2004-04-04 Thread Mark Lowe
Perhaps (again I have no tried) might render to On 4 Apr 2004, at 23:06, Mark Lowe wrote: Never tried what you're doing but. may render to On 4 Apr 2004, at 23:02, Craig Tataryn wrote: Just realized I missprinted something, my code now looks like: not as the "get" is not needed

Re: HashMap of Vectors and Indexed Properies

2004-04-04 Thread Mark Lowe
Never tried what you're doing but. may render to On 4 Apr 2004, at 23:02, Craig Tataryn wrote: Just realized I missprinted something, my code now looks like: not as the "get" is not needed. But again, let me know if anyone has any ideas on how I can get this working without subclassin

Re: HashMap of Vectors and Indexed Properies

2004-04-04 Thread Adam Hardy
Craig, why don't you use the nested:text tag and iterate over the address(texas) property? Adam On 04/04/2004 11:02 PM Craig Tataryn wrote: Just realized I missprinted something, my code now looks like: not as the "get" is not needed. But again, let me know if anyone has any ideas on how I ca

Re: HashMap of Vectors and Indexed Properies

2004-04-04 Thread Craig Tataryn
Just realized I missprinted something, my code now looks like: not as the "get" is not needed. But again, let me know if anyone has any ideas on how I can get this working without subclassing Vector. Thanks, Craig. On Sun, 04 Apr 2004 15:41:37 -0500 (CDT), "Craig Tataryn" wrote: > > I ha

RE: HashMap and tiles

2004-03-31 Thread Wendy Smoak
> From: Mario St-Gelais [mailto:[EMAIL PROTECTED] > I am using Tomcat 5.0.19 and Struts 1.1. I made a small application > using a hashmap to store user entry from a form. That works fine in > itself. Then to make the thing nicer, I added tiles. All the pages > work but the one with the form