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
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
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
. 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
;>
>>> -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
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
(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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
> 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
25 matches
Mail list logo